From 818d0b2a38a1bac40c3a08d203e4cd3effeffd74 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 9 Jan 2024 17:11:09 -0500 Subject: [PATCH 1/3] cleanup extensibility configs and protractor e2e --- .github/workflows/pull-request.yml | 2 +- .../context-submenus-ext.json | 1681 ----------------- .../document-presets-ext.json | 1609 ---------------- .../extensibility-configs/header-ext.json | 1636 ---------------- .../info-drawer-ext.json | 1623 ---------------- .../info-drawer-no-tabs-ext.json | 1568 --------------- .../extensibility-configs/metadata-ext.json | 1639 ---------------- .../extensibility-configs/viewer-ext.json | 1633 ---------------- .../extensions/ext-context-submenus.test.ts | 109 -- .../extensions/ext-document-list.test.ts | 91 - .../suites/extensions/ext-header.test.ts | 72 - .../suites/extensions/ext-info-drawer.test.ts | 170 -- .../suites/extensions/ext-metadata.test.ts | 116 -- .../suites/extensions/ext-viewer.test.ts | 165 -- .../datetime-picker/datetime-picker.ts | 65 - .../dialog/manage-versions-dialog.ts | 2 +- .../src/components/dialog/share-dialog.ts | 55 +- .../dialog/upload-new-version-dialog.ts | 4 +- .../src/components/header/header.ts | 11 +- .../src/components/info-drawer/index.ts | 1 - .../info-drawer/info-drawer-comments-tab.ts | 2 +- .../info-drawer-metadata-content.ts | 53 - .../info-drawer-metadata-library.ts | 2 +- .../src/components/info-drawer/info-drawer.ts | 29 +- projects/aca-testing-shared/src/configs.ts | 10 - .../src/pages/browsing-page.ts | 9 +- .../src/pages/login-page.ts | 4 +- .../aca-testing-shared/src/utilities/utils.ts | 11 - 28 files changed, 16 insertions(+), 12356 deletions(-) delete mode 100644 e2e/protractor/resources/extensibility-configs/context-submenus-ext.json delete mode 100644 e2e/protractor/resources/extensibility-configs/document-presets-ext.json delete mode 100644 e2e/protractor/resources/extensibility-configs/header-ext.json delete mode 100644 e2e/protractor/resources/extensibility-configs/info-drawer-ext.json delete mode 100644 e2e/protractor/resources/extensibility-configs/info-drawer-no-tabs-ext.json delete mode 100644 e2e/protractor/resources/extensibility-configs/metadata-ext.json delete mode 100644 e2e/protractor/resources/extensibility-configs/viewer-ext.json delete mode 100644 e2e/protractor/suites/extensions/ext-context-submenus.test.ts delete mode 100644 e2e/protractor/suites/extensions/ext-document-list.test.ts delete mode 100755 e2e/protractor/suites/extensions/ext-header.test.ts delete mode 100755 e2e/protractor/suites/extensions/ext-info-drawer.test.ts delete mode 100644 e2e/protractor/suites/extensions/ext-metadata.test.ts delete mode 100755 e2e/protractor/suites/extensions/ext-viewer.test.ts delete mode 100755 projects/aca-testing-shared/src/components/datetime-picker/datetime-picker.ts delete mode 100755 projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-content.ts diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 1a1eb7d775..0f6e4200e9 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -103,7 +103,7 @@ jobs: id: 1 - name: "search" id: 2 - - name: "viewer,infoDrawer,extensions" + - name: "viewer,infoDrawer" id: 3 - name: "copyMoveActions" id: 6 diff --git a/e2e/protractor/resources/extensibility-configs/context-submenus-ext.json b/e2e/protractor/resources/extensibility-configs/context-submenus-ext.json deleted file mode 100644 index 336f324a71..0000000000 --- a/e2e/protractor/resources/extensibility-configs/context-submenus-ext.json +++ /dev/null @@ -1,1681 +0,0 @@ -{ - "$schema": "../../../../extension.schema.json", - "$id": "app.core", - "$name": "app.core", - "$version": "1.0.0", - "$vendor": "Hyland Software, Inc. and its affiliates", - "$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.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.notification-center", - "type": "custom", - "component": "app.notification-center", - "order": 50 - }, - { - "id": "app.header.more", - "type": "custom", - "order": 10000, - "component": "app.user.menu", - "title": "APP.ACTIONS.MORE", - "data": { - "items": [ - { - "id": "app.header.user", - "type": "custom", - "component": "app.user", - "order": 100 - }, - { - "id": "user.separator", - "type": "separator", - "order": 100 - }, - { - "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.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.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.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.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.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.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": "supervisor_account", - "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.submenu.test1", - "type": "menu", - "order": 50, - "title": "Test Menu1", - "icon": "more_vert", - "rules": { - "visible": "canCopyNode" - }, - "children": [ - { - "id": "item1", - "order": 100, - "title": "Test submenu1", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "canCopyNode" - } - }, - { - "id": "item2", - "order": 200, - "title": "Test submenu2", - "icon": "content_copy", - "actions": { - "click": "COPY_NODES" - }, - "rules": { - "visible": "canCopyNode" - } - }, - { - "id": "item3", - "type": "custom", - "order": 400, - "data": { - "iconButton": false - }, - "component": "app.shared-link.toggleSharedLink", - "rules": { - "visible": "canToggleSharedLink" - } - } - ] - }, - { - "id": "app.context.submenu.test2", - "type": "menu", - "order": 51, - "title": "Test Menu2", - "icon": "more_vert", - "rules": { - "visible": "app.toolbar.canCopyNode" - }, - "children": [ - { - "id": "item3", - "type": "custom", - "order": 400, - "data": { - "iconButton": false - }, - "component": "app.shared-link.toggleSharedLink", - "rules": { - "visible": "app.selection.file.canShare" - } - } - ] - }, - { - "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": "supervisor_account", - "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": "supervisor_account", - "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" - } - ] - }, - "sidebar": { - "tabs": [ - { - "id": "app.sidebar.properties", - "order": 100, - "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "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", - "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" - } - } - ] - }, - "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: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/protractor/resources/extensibility-configs/document-presets-ext.json b/e2e/protractor/resources/extensibility-configs/document-presets-ext.json deleted file mode 100644 index 84229b582a..0000000000 --- a/e2e/protractor/resources/extensibility-configs/document-presets-ext.json +++ /dev/null @@ -1,1609 +0,0 @@ -{ - "$schema": "../../../../extension.schema.json", - "$id": "app.core", - "$name": "app.core", - "$version": "1.0.0", - "$vendor": "Hyland Software, Inc. and its affiliates", - "$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.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.notification-center", - "type": "custom", - "component": "app.notification-center", - "order": 50 - }, - { - "id": "app.header.more", - "type": "custom", - "order": 10000, - "component": "app.user.menu", - "title": "APP.ACTIONS.MORE", - "data": { - "items": [ - { - "id": "app.header.user", - "type": "custom", - "component": "app.user", - "order": 100 - }, - { - "id": "user.separator", - "type": "separator", - "order": 100 - }, - { - "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.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.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.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.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.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.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": "supervisor_account", - "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": "supervisor_account", - "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": "supervisor_account", - "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" - } - ] - }, - "sidebar": { - "tabs": [ - { - "id": "app.sidebar.properties", - "order": 100, - "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "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", - "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" - } - } - ] - }, - "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: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.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.thumbnail", - "key": "$thumbnail", - "type": "image", - "sortable": false, - "desktopOnly": false - }, - { - "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, - "disabled": true, - "order": 30 - }, - { - "id": "app.files.modifiedBy", - "key": "modifiedByUser.displayName", - "sortingKey": "modifiedByUser", - "title": "Test header", - "type": "text", - "class": "adf-ellipsis-cell adf-no-grow-cell", - "sortable": true, - "desktopOnly": true, - "order": 50 - }, - { - "id": "some.id.createdBy", - "key": "createdByUser.displayName", - "sortingKey": "createdByUser", - "title": "New column", - "type": "text", - "class": "adf-ellipsis-cell", - "sortable": true, - "desktopOnly": true, - "order": 60 - } - ], - "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/protractor/resources/extensibility-configs/header-ext.json b/e2e/protractor/resources/extensibility-configs/header-ext.json deleted file mode 100644 index 7d265f8289..0000000000 --- a/e2e/protractor/resources/extensibility-configs/header-ext.json +++ /dev/null @@ -1,1636 +0,0 @@ -{ - "$schema": "../../../../extension.schema.json", - "$id": "app.core", - "$name": "app.core", - "$version": "1.0.0", - "$vendor": "Hyland Software, Inc. and its affiliates", - "$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.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.notification-center", - "type": "custom", - "component": "app.notification-center", - "order": 50 - }, - { - "id": "app.header.more", - "type": "custom", - "order": 10000, - "component": "app.user.menu", - "title": "APP.ACTIONS.MORE", - "data": { - "items": [ - { - "id": "app.header.user", - "type": "custom", - "component": "app.user", - "order": 100 - }, - { - "id": "user.separator", - "type": "separator", - "order": 100 - }, - { - "id": "app.languagePicker", - "order": 100, - "type": "custom", - "component": "app.languagePicker" - }, - { - "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": "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.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.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.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.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.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.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": "supervisor_account", - "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": "supervisor_account", - "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": "supervisor_account", - "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" - } - ] - }, - "sidebar": { - "tabs": [ - { - "id": "app.sidebar.properties", - "order": 100, - "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "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", - "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" - } - } - ] - }, - "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: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/protractor/resources/extensibility-configs/info-drawer-ext.json b/e2e/protractor/resources/extensibility-configs/info-drawer-ext.json deleted file mode 100644 index 3339338772..0000000000 --- a/e2e/protractor/resources/extensibility-configs/info-drawer-ext.json +++ /dev/null @@ -1,1623 +0,0 @@ -{ - "$schema": "../../../../extension.schema.json", - "$id": "app.core", - "$name": "app.core", - "$version": "1.0.0", - "$vendor": "Hyland Software, Inc. and its affiliates", - "$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.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.notification-center", - "type": "custom", - "component": "app.notification-center", - "order": 50 - }, - { - "id": "app.header.more", - "type": "custom", - "order": 10000, - "component": "app.user.menu", - "title": "APP.ACTIONS.MORE", - "data": { - "items": [ - { - "id": "app.header.user", - "type": "custom", - "component": "app.user", - "order": 100 - }, - { - "id": "user.separator", - "type": "separator", - "order": 100 - }, - { - "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.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.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.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.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.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.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": "supervisor_account", - "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": "supervisor_account", - "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": "supervisor_account", - "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" - } - ] - }, - "sidebar": { - "tabs": [ - { - "id": "app.sidebar.properties", - "order": 1, - "title": "MY PROPERTIES", - "component": "app.components.tabs.metadata", - "rules": { - "visible": "app.navigation.isNotLibraries" - } - }, - { - "id": "app.sidebar.custom", - "order": 2, - "icon": "mood", - "title": "MY CUSTOM TITLE", - "component": "app.toolbar.toggleFavorite" - }, - { - "id": "app.sidebar.no_title", - "order": 3, - "icon": "check_circle", - "component": "app.components.tabs.metadata" - }, - { - "id": "app.sidebar.comments", - "order": 4, - "disabled": true, - "title": "APP.INFO_DRAWER.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" - } - } - ] - }, - "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: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/protractor/resources/extensibility-configs/info-drawer-no-tabs-ext.json b/e2e/protractor/resources/extensibility-configs/info-drawer-no-tabs-ext.json deleted file mode 100644 index 531c134f54..0000000000 --- a/e2e/protractor/resources/extensibility-configs/info-drawer-no-tabs-ext.json +++ /dev/null @@ -1,1568 +0,0 @@ -{ - "$schema": "../../../../extension.schema.json", - "$id": "app.core", - "$name": "app.core", - "$version": "1.0.0", - "$vendor": "Hyland Software, Inc. and its affiliates", - "$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.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.notification-center", - "type": "custom", - "component": "app.notification-center", - "order": 50 - }, - { - "id": "app.header.more", - "type": "custom", - "order": 10000, - "component": "app.user.menu", - "title": "APP.ACTIONS.MORE", - "data": { - "items": [ - { - "id": "app.header.user", - "type": "custom", - "component": "app.user", - "order": 100 - }, - { - "id": "user.separator", - "type": "separator", - "order": 100 - }, - { - "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.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.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.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.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.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.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": "supervisor_account", - "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": "supervisor_account", - "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": "supervisor_account", - "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: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/protractor/resources/extensibility-configs/metadata-ext.json b/e2e/protractor/resources/extensibility-configs/metadata-ext.json deleted file mode 100644 index 3fc4312a94..0000000000 --- a/e2e/protractor/resources/extensibility-configs/metadata-ext.json +++ /dev/null @@ -1,1639 +0,0 @@ -{ - "$schema": "../../../../extension.schema.json", - "$id": "app.core", - "$name": "app.core", - "$version": "1.0.0", - "$vendor": "Hyland Software, Inc. and its affiliates", - "$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.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.notification-center", - "type": "custom", - "component": "app.notification-center", - "order": 50 - }, - { - "id": "app.header.more", - "type": "custom", - "order": 10000, - "component": "app.user.menu", - "title": "APP.ACTIONS.MORE", - "data": { - "items": [ - { - "id": "app.header.user", - "type": "custom", - "component": "app.user", - "order": 100 - }, - { - "id": "user.separator", - "type": "separator", - "order": 100 - }, - { - "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.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.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.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.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.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.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": "supervisor_account", - "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": "supervisor_account", - "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": "supervisor_account", - "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" - } - ] - }, - "sidebar": { - "tabs": [ - { - "id": "app.sidebar.properties", - "order": 100, - "title": "APP.INFO_DRAWER.TABS.PROPERTIES", - "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", - "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" - } - } - ] - }, - "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:likesRatingSchemeRollups", - "cm:lockable", - "cm:ownable" - ] - }, - { - "id": "a.testGroup", - "title": "A Test Group of Properties", - "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" - ] - } - ] - }, - { - "id": "another.testGroup", - "title": "Another Test Group of Properties", - "disabled": false, - "items": [ - { - "id": "testAspects", - "aspect": "exif:exif", - "properties": [ - "exif:pixelXDimension", - "exif:pixelYDimension" - ] - } - ] - }, - { - "id": "disabled.testGroup", - "title": "Hidden Group of Properties", - "disabled": true, - "items": [ - { - "id": "testAspects", - "aspect": "exif:exif", - "properties": [ - "exif:pixelXDimension", - "exif:pixelYDimension" - ] - } - ] - } - ] - } - ], - "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/protractor/resources/extensibility-configs/viewer-ext.json b/e2e/protractor/resources/extensibility-configs/viewer-ext.json deleted file mode 100644 index 141e1c8c31..0000000000 --- a/e2e/protractor/resources/extensibility-configs/viewer-ext.json +++ /dev/null @@ -1,1633 +0,0 @@ -{ - "$schema": "../../../../extension.schema.json", - "$id": "app.core", - "$name": "app.core", - "$version": "1.0.0", - "$vendor": "Hyland Software, Inc. and its affiliates", - "$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.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.notification-center", - "type": "custom", - "component": "app.notification-center", - "order": 50 - }, - { - "id": "app.header.more", - "type": "custom", - "order": 10000, - "component": "app.user.menu", - "title": "APP.ACTIONS.MORE", - "data": { - "items": [ - { - "id": "app.header.user", - "type": "custom", - "component": "app.user", - "order": 100 - }, - { - "id": "user.separator", - "type": "separator", - "order": 100 - }, - { - "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.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.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.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.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.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.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": "supervisor_account", - "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": "supervisor_account", - "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.my-action", - "order": 150, - "title": "My action", - "icon": "http", - "actions": { - "click": "SHARE_NODE" - }, - "rules": { - "visible": "canToggleSharedLink" - } - }, - { - "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": "My custom title", - "icon": "get_app", - "actions": { - "click": "DOWNLOAD_NODES" - }, - "rules": { - "visible": "app.selection.canDownload" - } - }, - { - "id": "app.viewer.print", - "order": 400, - "title": "APP.ACTIONS.PRINT", - "icon": "print", - "disabled": true, - "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.viewer.my-secondary-action", - "order": 150, - "title": "My secondary action", - "icon": "alarm", - "actions": { - "click": "PRINT_FILE" - }, - "rules": { - "visible": "canViewFile" - } - }, - { - "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": "My new title", - "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", - "disabled": true, - "icon": "supervisor_account", - "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", - "fileExtension": "pdf", - "component": "app.components.tabs.metadata" - }, - { - "id": "app.viewer.docx", - "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", - "rules": { - "visible": "app.navigation.isNotLibraries" - } - }, - { - "id": "app.sidebar.comments", - "order": 200, - "title": "APP.INFO_DRAWER.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" - } - } - ] - }, - "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: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/protractor/suites/extensions/ext-context-submenus.test.ts b/e2e/protractor/suites/extensions/ext-context-submenus.test.ts deleted file mode 100644 index 3b8a4ecf97..0000000000 --- a/e2e/protractor/suites/extensions/ext-context-submenus.test.ts +++ /dev/null @@ -1,109 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * from Hyland Software. If not, see . - */ - -import { AdminActions, LoginPage, BrowsingPage, EXTENSIBILITY_CONFIGS, RepoClient, Utils, UserActions } from '@alfresco/aca-testing-shared'; - -describe('Extensions - Context submenu', () => { - const username = `user-${Utils.random()}`; - const file = `file-${Utils.random()}.txt`; - let fileId: string; - const folder = `folder-${Utils.random()}`; - let folderId: string; - - const restrictedPermissionsItem = 'Share'; - - const menuItem1 = { - label: 'Test Menu1', - submenu: ['Test submenu1', 'Test submenu2', restrictedPermissionsItem] - }; - const menuItem2 = { - label: 'Test Menu2', - submenu: [restrictedPermissionsItem] - }; - - const apis = { - user: new RepoClient(username, username) - }; - - const loginPage = new LoginPage(); - const page = new BrowsingPage(); - const { dataTable } = page; - const contextMenu = dataTable.menu; - - const adminApiActions = new AdminActions(); - const userActions = new UserActions(); - - beforeAll(async () => { - await adminApiActions.createUser({ username }); - await userActions.login(username, username); - - fileId = await apis.user.createFile(file); - folderId = await apis.user.createFolder(folder); - - await loginPage.load(); - await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.CONTEXT_SUBMENUS); - await loginPage.loginWith(username); - }); - - beforeEach(async () => { - await Utils.pressEscape(); - await dataTable.clearSelection(); - await page.clickPersonalFilesAndWait(); - }); - - afterAll(async () => { - await userActions.deleteNodes([fileId, folderId]); - }); - - it('[C286717] Displays the submenu actions set from config', async () => { - await dataTable.rightClickOnItem(file); - expect(await contextMenu.isMenuItemPresent(menuItem1.label)).toBe(true, `${menuItem1.label} is not displayed for ${file}`); - expect(await contextMenu.hasSubMenu(menuItem1.label)).toBe(true, 'Menu does not have submenu'); - await contextMenu.mouseOverMenuItem(menuItem1.label); - - expect(await contextMenu.getSubmenuItemsCount()).toBe(3, 'submenu has wrong number of items'); - expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[0])).toBe(true, `${menuItem1.submenu[0]} is not displayed for ${file}`); - expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[1])).toBe(true, `${menuItem1.submenu[1]} is not displayed for ${file}`); - expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[2])).toBe(true, `${restrictedPermissionsItem} is not displayed for ${file}`); - }); - - it('[C286718] Does not display submenu actions without permissions', async () => { - await dataTable.rightClickOnItem(folder); - expect(await contextMenu.isMenuItemPresent(menuItem1.label)).toBe(true, `${menuItem1.label} is not displayed for ${folder}`); - await contextMenu.mouseOverMenuItem(menuItem1.label); - - expect(await contextMenu.getSubmenuItemsCount()).toBe(2, 'submenu has wrong number of items'); - expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[0])).toBe(true, `${menuItem1.submenu[0]} is not displayed for ${file}`); - expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[1])).toBe(true, `${menuItem1.submenu[1]} is not displayed for ${file}`); - expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[2])).toBe( - false, - `no permission submenu ${restrictedPermissionsItem} is displayed` - ); - }); - - it('[C287784] The parent item is not displayed if all its children have no permission to be displayed', async () => { - await dataTable.rightClickOnItem(folder); - expect(await contextMenu.isMenuItemPresent(menuItem2.label)).toBe(false, `${menuItem2.label} menu is displayed for ${folder}`); - }); -}); diff --git a/e2e/protractor/suites/extensions/ext-document-list.test.ts b/e2e/protractor/suites/extensions/ext-document-list.test.ts deleted file mode 100644 index ce736d6794..0000000000 --- a/e2e/protractor/suites/extensions/ext-document-list.test.ts +++ /dev/null @@ -1,91 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * from Hyland Software. If not, see . - */ - -import { AdminActions, BrowsingPage, LoginPage, RepoClient, EXTENSIBILITY_CONFIGS, Utils } from '@alfresco/aca-testing-shared'; - -describe('Extensions - DocumentList presets', () => { - const username = `user-${Utils.random()}`; - const file = `file-${Utils.random()}.txt`; - let fileId: string; - - const testData = [ - { - id: 'app.files.name', - label: 'Name' - }, - { - id: 'app.files.size', - label: 'Size', - disabled: true - }, - { - id: 'app.files.modifiedBy', - label: 'Test header' - }, - { - id: 'some.id.createdBy', - label: 'New column' - } - ]; - - const apis = { - user: new RepoClient(username, username) - }; - - const loginPage = new LoginPage(); - const page = new BrowsingPage(); - const { dataTable } = page; - const adminApiActions = new AdminActions(); - - beforeAll(async () => { - await adminApiActions.createUser({ username }); - fileId = (await apis.user.nodes.createFile(file)).entry.id; - - await loginPage.load(); - await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.DOCUMENT_LIST_PRESETS); - await loginPage.loginWith(username); - }); - - beforeEach(async () => { - await page.clickPersonalFilesAndWait(); - }); - - afterAll(async () => { - await apis.user.nodes.deleteNodeById(fileId); - }); - - it('[C286700] Sets the columns to display', async () => { - const expectedColumns = testData.filter((item) => !item.disabled).map((data) => data.label); - const actualColumns = await dataTable.getColumnHeadersText(); - - await expect(actualColumns).toEqual(expectedColumns); - }); - - it('[C286699] Disabled items are not shown', async () => { - const noColumnLabel = testData.find((item) => item.disabled).label; - const element = dataTable.getColumnHeaderByLabel(noColumnLabel); - - expect(await element.isPresent()).toBe(false, `"${noColumnLabel}" is displayed`); - }); -}); diff --git a/e2e/protractor/suites/extensions/ext-header.test.ts b/e2e/protractor/suites/extensions/ext-header.test.ts deleted file mode 100755 index d32f108fe1..0000000000 --- a/e2e/protractor/suites/extensions/ext-header.test.ts +++ /dev/null @@ -1,72 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * from Hyland Software. If not, see . - */ - -import { AdminActions, LoginPage, EXTENSIBILITY_CONFIGS, Utils, Header, Menu } from '@alfresco/aca-testing-shared'; - -describe('Extensions - Header', () => { - const username = `user-${Utils.random()}`; - - const disabledMenu = { - id: 'settings', - title: 'App settings', - description: 'Application settings', - icon: 'settings' - }; - - const enabledMenu = { - id: 'button', - title: 'New Button', - description: 'new button description', - icon: 'alarm_on' - }; - - const header = new Header(); - const toolbarMenu = new Menu(); - - const loginPage = new LoginPage(); - const adminApiActions = new AdminActions(); - - beforeAll(async () => { - await adminApiActions.createUser({ username }); - await loginPage.load(); - await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.HEADER); - await loginPage.loginWith(username); - }); - - afterEach(async () => { - await header.closeMoreMenu(); - }); - - it('[C286474] Add a new button in the header', async () => { - await header.openMoreMenu(); - expect(await toolbarMenu.isMenuItemPresent(enabledMenu.title)).toBe(true, 'menu item not present'); - expect(await toolbarMenu.getItemIconText(enabledMenu.title)).toEqual(enabledMenu.icon); - }); - - it('[C286477] Disable a button from the header', async () => { - await header.openMoreMenu(); - expect(await toolbarMenu.isMenuItemPresent(disabledMenu.title)).toBe(true, `${disabledMenu.title} menu item not present`); - expect(await toolbarMenu.isMenuItemDisabled(disabledMenu.title)).toEqual('true', `${disabledMenu.title} is not disabled`); - }); -}); diff --git a/e2e/protractor/suites/extensions/ext-info-drawer.test.ts b/e2e/protractor/suites/extensions/ext-info-drawer.test.ts deleted file mode 100755 index 769ea77a9e..0000000000 --- a/e2e/protractor/suites/extensions/ext-info-drawer.test.ts +++ /dev/null @@ -1,170 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * from Hyland Software. If not, see . - */ - -import { - AdminActions, - LoginPage, - BrowsingPage, - InfoDrawer, - RepoClient, - EXTENSIBILITY_CONFIGS, - Utils, - UserActions -} from '@alfresco/aca-testing-shared'; -import { BrowserActions } from '@alfresco/adf-testing'; - -describe('Extensions - Info Drawer', () => { - const username = `user-${Utils.random()}`; - - const file = `file-${Utils.random()}.txt`; - let fileId: string; - const fileRemove = `file-${Utils.random()}.txt`; - let fileIdRemove: string; - - const PROPERTIES_TAB = { - order: 1, - title: 'MY PROPERTIES' - }; - - const CUSTOM_TAB = { - order: 2, - icon: 'mood', - title: 'MY CUSTOM TITLE', - component: 'app.toolbar.toggleFavorite' - }; - - const NO_TITLE_TAB = { - order: 3, - icon: 'check_circle', - title: '' - }; - - const COMMENTS_TAB = { - title: 'COMMENTS' - }; - - const apis = { - user: new RepoClient(username, username) - }; - - const infoDrawer = new InfoDrawer(); - - const loginPage = new LoginPage(); - const page = new BrowsingPage(); - - const adminApiActions = new AdminActions(); - const userActions = new UserActions(); - - beforeAll(async () => { - await adminApiActions.createUser({ username }); - await userActions.login(username, username); - - fileId = await apis.user.createFile(file); - fileIdRemove = await apis.user.createFile(fileRemove); - }); - - describe('', () => { - beforeAll(async () => { - await loginPage.load(); - await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.INFO_DRAWER); - await loginPage.loginWith(username); - }); - - beforeEach(async () => { - await page.clickPersonalFilesAndWait(); - await page.dataTable.clearSelection(); - }); - - afterAll(async () => { - await apis.user.nodes.deleteNodesById([fileId]); - }); - - it('[C284646] Add a new tab with icon and title ', async () => { - await page.dataTable.selectItem(file); - await BrowserActions.click(page.toolbar.viewDetailsButton); - await infoDrawer.waitForInfoDrawerToOpen(); - - const val = await infoDrawer.getTabTitle(CUSTOM_TAB.order); - expect(await infoDrawer.isTabPresent(CUSTOM_TAB.title)).toBe(true, `${CUSTOM_TAB.title} tab is not present`); - expect(val.trim()).toEqual(`${CUSTOM_TAB.icon}\n${CUSTOM_TAB.title}`.trim()); - }); - - it('[C284647] Remove existing tab', async () => { - await page.dataTable.selectItem(file); - await BrowserActions.click(page.toolbar.viewDetailsButton); - await infoDrawer.waitForInfoDrawerToOpen(); - - expect(await infoDrawer.isTabPresent(COMMENTS_TAB.title)).toBe(false, `${COMMENTS_TAB.title} tab should not be present!`); - }); - - it('[C284648] Change tab title', async () => { - await page.dataTable.selectItem(file); - await BrowserActions.click(page.toolbar.viewDetailsButton); - await infoDrawer.waitForInfoDrawerToOpen(); - - expect(await infoDrawer.isTabPresent(PROPERTIES_TAB.title)).toBe(true, `${PROPERTIES_TAB.title} tab is not present`); - expect(await infoDrawer.getTabTitle(PROPERTIES_TAB.order)).toEqual(PROPERTIES_TAB.title); - }); - - it('[C284649] Tab with icon and no title', async () => { - await page.dataTable.selectItem(file); - await BrowserActions.click(page.toolbar.viewDetailsButton); - await infoDrawer.waitForInfoDrawerToOpen(); - - expect(await infoDrawer.isTabPresent(NO_TITLE_TAB.title)).toBe(true, `${NO_TITLE_TAB.title} tab is not present`); - expect((await infoDrawer.getTabTitle(NO_TITLE_TAB.order)).trim()).toEqual(`${NO_TITLE_TAB.icon}`.trim()); - }); - - it('[C284651] Insert new component in tab', async () => { - await page.dataTable.selectItem(file); - await BrowserActions.click(page.toolbar.viewDetailsButton); - await infoDrawer.waitForInfoDrawerToOpen(); - - expect(await infoDrawer.isTabDisplayed(CUSTOM_TAB.title)).toBe(true, `${CUSTOM_TAB.title} tab is not displayed`); - await infoDrawer.clickTab(CUSTOM_TAB.title); - expect(await infoDrawer.getComponentIdOfTab()).toEqual(CUSTOM_TAB.component); - }); - }); - - describe('', () => { - beforeAll(async () => { - await loginPage.load(); - await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.INFO_DRAWER_EMPTY); - await loginPage.loginWith(username); - await page.clickPersonalFilesAndWait(); - }); - - afterAll(async () => { - await apis.user.nodes.deleteNodesById([fileIdRemove]); - }); - - it('[C284650] Remove all tabs', async () => { - await page.dataTable.selectItem(fileRemove); - await BrowserActions.click(page.toolbar.viewDetailsButton); - await infoDrawer.waitForInfoDrawerToOpen(); - - expect(await infoDrawer.isEmpty()).toBe(true, 'Info Drawer is not empty'); - }); - }); -}); diff --git a/e2e/protractor/suites/extensions/ext-metadata.test.ts b/e2e/protractor/suites/extensions/ext-metadata.test.ts deleted file mode 100644 index 82acc58da8..0000000000 --- a/e2e/protractor/suites/extensions/ext-metadata.test.ts +++ /dev/null @@ -1,116 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * from Hyland Software. If not, see . - */ - -import { - AdminActions, - BrowsingPage, - LoginPage, - RepoClient, - EXTENSIBILITY_CONFIGS, - Utils, - InfoDrawer, - MetadataCard, - UserActions -} from '@alfresco/aca-testing-shared'; -import { BrowserActions } from '@alfresco/adf-testing'; - -describe('Extensions - Metadata presets', () => { - const username = `user-${Utils.random()}`; - - const file = `file-${Utils.random()}.png`; - - let fileId: string; - - const PROPERTIES_TAB = { - title: 'Properties', - component: 'app.components.tabs.metadata' - }; - - const customGroup1 = { - id: 'a.testGroup', - title: 'A Test Group of Properties' - }; - - const customGroup2 = { - id: 'another.testGroup', - title: 'Another Test Group of Properties' - }; - - const disabledGroup = { - id: 'disabled.testGroup', - title: 'Hidden Group of Properties' - }; - - const apis = { - user: new RepoClient(username, username) - }; - - const infoDrawer = new InfoDrawer(); - const metadataCard = new MetadataCard(); - - const loginPage = new LoginPage(); - const page = new BrowsingPage(); - - const adminApiActions = new AdminActions(); - const userActions = new UserActions(); - - beforeAll(async () => { - await adminApiActions.createUser({ username }); - await userActions.login(username, username); - - fileId = (await apis.user.nodes.createImage(file)).entry.id; - - await loginPage.load(); - await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.METADATA_PRESETS); - await loginPage.loginWith(username); - }); - - beforeEach(async () => { - await page.refresh(); - - await page.dataTable.selectItem(file); - await BrowserActions.click(page.toolbar.viewDetailsButton); - await infoDrawer.waitForInfoDrawerToOpen(); - - await infoDrawer.clickTab(PROPERTIES_TAB.title); - await metadataCard.waitForFirstExpansionPanel(); - }); - - afterAll(async () => { - await userActions.deleteNodes([fileId]); - }); - - it('[C286636] Set groups of properties to display', async () => { - expect(await metadataCard.isExpansionPanelPresent(0)).toBe(true, `expansion panel is not present`); - expect(await metadataCard.getComponentIdOfPanel(0)).toEqual(`adf-metadata-group-${customGroup1.title}`); - expect(await metadataCard.isExpansionPanelPresent(1)).toBe(true, `expansion panel is not present`); - expect(await metadataCard.getComponentIdOfPanel(1)).toEqual(`adf-metadata-group-${customGroup2.title}`); - }); - - it('[C286637] Disabled group is not displayed', async () => { - expect(await metadataCard.isExpansionPanelPresent(2)).toBe(false, `disabled group is displayed`); - expect(await metadataCard.getComponentIdOfPanel(1)).not.toEqual(`adf-metadata-group-${disabledGroup.title}`); - expect(await metadataCard.getComponentIdOfPanel(0)).not.toEqual(`adf-metadata-group-${disabledGroup.title}`); - }); -}); diff --git a/e2e/protractor/suites/extensions/ext-viewer.test.ts b/e2e/protractor/suites/extensions/ext-viewer.test.ts deleted file mode 100755 index b714899b31..0000000000 --- a/e2e/protractor/suites/extensions/ext-viewer.test.ts +++ /dev/null @@ -1,165 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * from Hyland Software. If not, see . - */ - -import { AdminActions, LoginPage, BrowsingPage, Viewer, RepoClient, EXTENSIBILITY_CONFIGS, FILES, Utils } from '@alfresco/aca-testing-shared'; -import { BrowserActions } from '@alfresco/adf-testing'; - -describe('Extensions - Viewer', () => { - const username = `user-${Utils.random()}`; - - const pdfFile = { - fileName: FILES.pdfFile, - component: 'app.components.tabs.metadata' - }; - let pdfFileId: string; - - const docxFile = { - fileName: FILES.docxFile, - component: 'app.components.tabs.comments' - }; - let docxFileId: string; - - const customAction = { - id: 'app.viewer.my-action', - title: 'My action', - icon: 'http' - }; - - const customSecondaryAction = { - id: 'app.viewer.my-secondary-action', - title: 'My secondary action', - icon: 'alarm' - }; - - const downloadButton = { - id: 'app.viewer.download', - title: 'My custom title' - }; - - const moveAction = { - id: 'app.viewer.move', - title: 'My new title' - }; - - const apis = { - user: new RepoClient(username, username) - }; - - const loginPage = new LoginPage(); - const page = new BrowsingPage(); - - const viewer = new Viewer(); - const { toolbar } = viewer; - const adminApiActions = new AdminActions(); - - beforeAll(async () => { - await adminApiActions.createUser({ username }); - pdfFileId = (await apis.user.upload.uploadFile(pdfFile.fileName)).entry.id; - docxFileId = (await apis.user.upload.uploadFile(docxFile.fileName)).entry.id; - - await loginPage.load(); - await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.VIEWER); - await loginPage.loginWith(username); - }); - - afterAll(async () => { - await apis.user.nodes.deleteNodesById([pdfFileId, docxFileId]); - }); - - beforeEach(async () => { - await page.clickPersonalFilesAndWait(); - }); - - afterEach(async () => { - await Utils.pressEscape(); - }); - - describe('content', () => { - it('[C284659] Insert new component in a content viewer', async () => { - await page.dataTable.doubleClickOnRowByName(pdfFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - expect(await viewer.isCustomContentPresent()).toBe(true, 'Custom content is not present'); - expect(await viewer.getComponentIdOfView()).toEqual(pdfFile.component); - await BrowserActions.click(viewer.closeButton); - - await page.dataTable.doubleClickOnRowByName(docxFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - expect(await viewer.isCustomContentPresent()).toBe(true, 'Custom content is not present'); - expect(await viewer.getComponentIdOfView()).toEqual(docxFile.component); - }); - }); - - describe('toolbar actions', () => { - it('[C286416] Add a new action in the toolbar', async () => { - await page.dataTable.doubleClickOnRowByName(pdfFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - - expect(await toolbar.isButtonPresent(customAction.title)).toBe(true, 'Custom action is not present'); - expect(await BrowserActions.getAttribute(toolbar.getButtonByTitleAttribute(customAction.title), 'id')).toEqual(customAction.id); - expect(await toolbar.getButtonByTitleAttribute(customAction.title).getText()).toEqual(customAction.icon); - }); - - it('[C286417] Modify title of action from toolbar', async () => { - await page.dataTable.doubleClickOnRowByName(pdfFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - - expect(await BrowserActions.getAttribute(toolbar.getButtonById(downloadButton.id), 'title')).toEqual(downloadButton.title); - }); - - it('[C286419] Remove action from toolbar', async () => { - await page.dataTable.doubleClickOnRowByName(pdfFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - - expect(await toolbar.isPrintPresent()).toBe(false, 'Print button is still displayed'); - }); - }); - - describe('toolbar More actions menu', () => { - it('[C286420] Add a new action', async () => { - await page.dataTable.doubleClickOnRowByName(pdfFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - - await toolbar.openViewerMoreMenu(); - expect(await toolbar.menu.isMenuItemPresent(customSecondaryAction.title)).toBe(true, 'action is not present'); - expect(await toolbar.menu.getItemIconText(customSecondaryAction.title)).toEqual(customSecondaryAction.icon); - expect(await toolbar.menu.getItemIdAttribute(customSecondaryAction.title)).toEqual(customSecondaryAction.id); - }); - - it('[C286421] Modify title of action from More actions menu', async () => { - await page.dataTable.doubleClickOnRowByName(pdfFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - - await toolbar.openViewerMoreMenu(); - expect(await BrowserActions.getAttribute(toolbar.menu.getItemById(moveAction.id), 'title')).toEqual(moveAction.title); - }); - - it('[C286423] Remove action from More actions menu', async () => { - await page.dataTable.doubleClickOnRowByName(pdfFile.fileName); - expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened'); - - await toolbar.openViewerMoreMenu(); - expect(await toolbar.menu.managePermissionsAction.isPresent()).toBe(false, 'Action is still displayed'); - }); - }); -}); diff --git a/projects/aca-testing-shared/src/components/datetime-picker/datetime-picker.ts b/projects/aca-testing-shared/src/components/datetime-picker/datetime-picker.ts deleted file mode 100755 index ee11e4332e..0000000000 --- a/projects/aca-testing-shared/src/components/datetime-picker/datetime-picker.ts +++ /dev/null @@ -1,65 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - */ - -import { by, browser } from 'protractor'; -import { Component } from '../component'; -import { isPresentAndDisplayed, waitForStaleness } from '../../utilities/utils'; -import { BrowserActions } from '@alfresco/adf-testing'; - -export class DateTimePicker extends Component { - calendar = this.byCss('.mat-datepicker-popup', browser); - dayPicker = this.byCss('mat-month-view'); - nextMonthBtn = this.byCss('.mat-calendar-next-button'); - rootElemLocator = by.css('.mat-datepicker-popup'); - - constructor(ancestor?: string) { - super('.mat-datepicker-popup', ancestor); - } - - async waitForDateTimePickerToClose(): Promise { - return waitForStaleness(this.calendar); - } - - async isCalendarOpen(): Promise { - const element = browser.element(this.rootElemLocator); - - return isPresentAndDisplayed(element); - } - - async pickDateTime(): Promise { - const today = new Date(); - const nextAvailableDay = new Date(); - nextAvailableDay.setDate(today.getDate() + 2); - if (nextAvailableDay.getMonth() !== today.getMonth()) { - await BrowserActions.click(this.nextMonthBtn); - } - await this.selectDay(nextAvailableDay.getDate()); - } - - async selectDay(day: number): Promise { - const firstActiveDay = '.mat-calendar-body-cell-content'; - const firstActiveDayElem = this.dayPicker.element(by.cssContainingText(firstActiveDay, `${day}`)); - await BrowserActions.click(firstActiveDayElem); - } -} diff --git a/projects/aca-testing-shared/src/components/dialog/manage-versions-dialog.ts b/projects/aca-testing-shared/src/components/dialog/manage-versions-dialog.ts index 01f16dc030..3dc229e804 100755 --- a/projects/aca-testing-shared/src/components/dialog/manage-versions-dialog.ts +++ b/projects/aca-testing-shared/src/components/dialog/manage-versions-dialog.ts @@ -23,7 +23,7 @@ */ import { by } from 'protractor'; -import { GenericDialog } from '../dialog/generic-dialog'; +import { GenericDialog } from './generic-dialog'; import { BrowserActions } from '@alfresco/adf-testing'; import { Menu } from '../menu/menu'; diff --git a/projects/aca-testing-shared/src/components/dialog/share-dialog.ts b/projects/aca-testing-shared/src/components/dialog/share-dialog.ts index 23e0c7c8ee..0b9a37cdb7 100755 --- a/projects/aca-testing-shared/src/components/dialog/share-dialog.ts +++ b/projects/aca-testing-shared/src/components/dialog/share-dialog.ts @@ -23,72 +23,19 @@ */ import { by } from 'protractor'; -import { DateTimePicker } from '../../components/datetime-picker/datetime-picker'; -import { GenericDialog } from '../dialog/generic-dialog'; -import { isPresentAndEnabled } from '../../utilities/utils'; -import { BrowserActions } from '@alfresco/adf-testing'; +import { GenericDialog } from './generic-dialog'; export class ShareDialog extends GenericDialog { - dateTimePicker = new DateTimePicker(); - - dialogTitle = this.childElement(by.css(`[data-automation-id='adf-share-dialog-title']`)); - infoText = this.childElement(by.css('.adf-share-link__info')); labels = this.rootElem.all(by.css('.adf-share-link__label')); - shareToggle = this.childElement(by.css(`[data-automation-id='adf-share-toggle']`)); url = this.childElement(by.css(`[data-automation-id='adf-share-link']`)); - urlAction = this.childElement(by.css('.adf-input-action')); - expireToggle = this.childElement(by.css(`[data-automation-id='adf-expire-toggle']`)); - expireInput = this.childElement(by.css('input[formcontrolname="time"]')); - datetimePickerButton = this.childElement(by.css('.mat-datepicker-toggle')); - closeButton = this.childElement(by.css(`[data-automation-id='adf-share-dialog-close']`)); constructor() { super('.adf-share-dialog'); } - async getDialogTitle(): Promise { - return this.dialogTitle.getText(); - } - - async getInfoText(): Promise { - return this.infoText.getText(); - } - - async getLinkUrl(): Promise { - return BrowserActions.getInputValue(this.url); - } - - async isUrlReadOnly(): Promise { - const urlAttr = await this.url.getAttribute('readonly'); - return urlAttr === 'true'; - } - - async isCloseEnabled(): Promise { - return isPresentAndEnabled(this.closeButton); - } - async clickClose(): Promise { await this.closeButton.click(); await this.waitForDialogToClose(); } - - async isShareToggleChecked(): Promise { - const toggleClass = await this.shareToggle.getAttribute('class'); - return toggleClass.includes('checked'); - } - - async isShareToggleDisabled(): Promise { - const toggleClass = await this.shareToggle.getAttribute('class'); - return toggleClass.includes('mat-disabled'); - } - - async isExpireToggleEnabled(): Promise { - const toggleClass = await this.expireToggle.getAttribute('class'); - return toggleClass.includes('checked'); - } - - async getExpireDate(): Promise { - return BrowserActions.getInputValue(this.expireInput); - } } diff --git a/projects/aca-testing-shared/src/components/dialog/upload-new-version-dialog.ts b/projects/aca-testing-shared/src/components/dialog/upload-new-version-dialog.ts index 9eba41df01..f257b32c64 100755 --- a/projects/aca-testing-shared/src/components/dialog/upload-new-version-dialog.ts +++ b/projects/aca-testing-shared/src/components/dialog/upload-new-version-dialog.ts @@ -23,8 +23,8 @@ */ import { by } from 'protractor'; -import { GenericDialog } from '../dialog/generic-dialog'; -import { isPresentAndEnabled, typeText } from '../../utilities/utils'; +import { GenericDialog } from './generic-dialog'; +import { isPresentAndEnabled, typeText } from '../../utilities'; export class UploadNewVersionDialog extends GenericDialog { cancelButton = this.childElement(by.cssContainingText('.mat-button-wrapper', 'Cancel')); diff --git a/projects/aca-testing-shared/src/components/header/header.ts b/projects/aca-testing-shared/src/components/header/header.ts index f5a53c74a8..07f2886f1d 100755 --- a/projects/aca-testing-shared/src/components/header/header.ts +++ b/projects/aca-testing-shared/src/components/header/header.ts @@ -25,9 +25,9 @@ import { by, browser } from 'protractor'; import { Component } from '../component'; import { Menu } from '../menu/menu'; -import { Toolbar } from './../toolbar/toolbar'; -import { SearchInput } from '../search/search-input'; -import { waitElement } from '../../utilities/utils'; +import { Toolbar } from '../toolbar/toolbar'; +import { SearchInput } from '../search'; +import { waitElement } from '../../utilities'; import { BrowserActions } from '@alfresco/adf-testing'; export class Header extends Component { @@ -47,11 +47,6 @@ export class Header extends Component { await this.menu.waitForMenuToOpen(); } - async closeMoreMenu(): Promise { - await BrowserActions.click(this.userMenuButton); - await this.menu.waitForMenuToClose(); - } - async isSidenavExpanded(): Promise { return browser.isElementPresent(by.css(`[data-automation-id='expanded']`)); } diff --git a/projects/aca-testing-shared/src/components/info-drawer/index.ts b/projects/aca-testing-shared/src/components/info-drawer/index.ts index 296b005adb..cfebd761c4 100644 --- a/projects/aca-testing-shared/src/components/info-drawer/index.ts +++ b/projects/aca-testing-shared/src/components/info-drawer/index.ts @@ -23,6 +23,5 @@ */ export * from './info-drawer-comments-tab'; -export * from './info-drawer-metadata-content'; export * from './info-drawer-metadata-library'; export * from './info-drawer'; diff --git a/projects/aca-testing-shared/src/components/info-drawer/info-drawer-comments-tab.ts b/projects/aca-testing-shared/src/components/info-drawer/info-drawer-comments-tab.ts index 016bca96a4..20e6816022 100755 --- a/projects/aca-testing-shared/src/components/info-drawer/info-drawer-comments-tab.ts +++ b/projects/aca-testing-shared/src/components/info-drawer/info-drawer-comments-tab.ts @@ -25,7 +25,7 @@ import { by, browser, until } from 'protractor'; import { Component } from '../component'; import { BROWSER_WAIT_TIMEOUT } from '../../configs'; -import { typeText } from '../../utilities/utils'; +import { typeText } from '../../utilities'; import { BrowserActions, BrowserVisibility } from '@alfresco/adf-testing'; export class CommentsTab extends Component { diff --git a/projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-content.ts b/projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-content.ts deleted file mode 100755 index 04dbbbf0a3..0000000000 --- a/projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-content.ts +++ /dev/null @@ -1,53 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - */ - -import { browser } from 'protractor'; -import { Component } from '../component'; -import { isPresentAndEnabled } from '../../utilities/utils'; - -export class ContentMetadata extends Component { - expandedPanel = this.byCss('.mat-expansion-panel.mat-expanded'); - lessInfoButton = this.byCssText(`[data-automation-id='meta-data-card-toggle-expand']`, 'Less information'); - moreInfoButton = this.byCssText(`[data-automation-id='meta-data-card-toggle-expand']`, 'More information'); - - constructor(ancestor?: string) { - super('adf-content-metadata-card', ancestor); - } - - async isPropertiesListExpanded(): Promise { - return browser.isElementPresent(this.expandedPanel); - } - - async isLessInfoButtonEnabled(): Promise { - return isPresentAndEnabled(this.lessInfoButton); - } - - async isMoreInfoButtonEnabled(): Promise { - return isPresentAndEnabled(this.moreInfoButton); - } - - async isMoreInfoButtonDisplayed(): Promise { - return browser.isElementPresent(this.moreInfoButton); - } -} diff --git a/projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-library.ts b/projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-library.ts index ac71e3ba8c..f775503b70 100755 --- a/projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-library.ts +++ b/projects/aca-testing-shared/src/components/info-drawer/info-drawer-metadata-library.ts @@ -25,7 +25,7 @@ import { by, browser } from 'protractor'; import { BrowserActions, Logger } from '@alfresco/adf-testing'; import { Component } from '../component'; -import { waitForPresence, waitForStaleness, typeText } from '../../utilities/utils'; +import { waitForPresence, waitForStaleness, typeText } from '../../utilities'; export class LibraryMetadata extends Component { visibilityDropDown = this.component.element(by.css('.mat-select')); diff --git a/projects/aca-testing-shared/src/components/info-drawer/info-drawer.ts b/projects/aca-testing-shared/src/components/info-drawer/info-drawer.ts index b3300cd4db..10d67609b3 100755 --- a/projects/aca-testing-shared/src/components/info-drawer/info-drawer.ts +++ b/projects/aca-testing-shared/src/components/info-drawer/info-drawer.ts @@ -22,24 +22,20 @@ * along with Alfresco. If not, see . */ -import { by, browser } from 'protractor'; +import { browser } from 'protractor'; import { BrowserActions, BrowserVisibility, Logger, TestElement } from '@alfresco/adf-testing'; import { Component } from '../component'; import { CommentsTab } from './info-drawer-comments-tab'; import { LibraryMetadata } from './info-drawer-metadata-library'; -import { ContentMetadata } from './info-drawer-metadata-content'; -import { waitForPresence } from '../../utilities/utils'; +import { waitForPresence } from '../../utilities'; import { Toolbar } from '../toolbar/toolbar'; export class InfoDrawer extends Component { commentsTab = new CommentsTab('adf-info-drawer'); aboutTab = new LibraryMetadata('adf-info-drawer'); - propertiesTab = new ContentMetadata('adf-info-drawer'); header = this.byCss('.adf-info-drawer-layout-header'); headerTitle = this.byCss('.adf-info-drawer-layout-header-title > div'); - tabLabelsList = this.allByCss('.mat-tab-label-content'); tabActiveLabel = this.byCss('.mat-tab-label-active'); - tabActiveContent = this.byCss('.mat-tab-body-active .mat-tab-body-content adf-dynamic-tab'); expandDetailsButton = TestElement.byCss(`button[title='Expand panel']`); selectedTab = TestElement.byCss(`.mat-tab-list [aria-selected='true'] div`); expandedDetailsPermissionsTab = TestElement.byText('.aca-details-container .mat-tab-label-content', 'Permissions'); @@ -58,10 +54,6 @@ export class InfoDrawer extends Component { return browser.isElementPresent(this.header); } - async isEmpty() { - return !(await browser.isElementPresent(by.css('.adf-info-drawer-tabs'))); - } - getTabByTitle(title: string) { return this.byCssText('.mat-tab-label-content', title); } @@ -70,10 +62,6 @@ export class InfoDrawer extends Component { return this.allByCss('.mat-tab-label-content').count(); } - async isTabPresent(title: string) { - return this.getTabByTitle(title).isPresent(); - } - async isTabDisplayed(title: string): Promise { if (await browser.isElementPresent(this.getTabByTitle(title))) { return this.getTabByTitle(title).isDisplayed(); @@ -82,23 +70,10 @@ export class InfoDrawer extends Component { return false; } - async getTabTitle(index: number): Promise { - const attributeValue: string = await browser.executeScript(`return arguments[0].innerText`, this.tabLabelsList.get(index - 1)); - return attributeValue || ''; - } - async getActiveTabTitle(): Promise { return this.tabActiveLabel.getText(); } - async clickTab(title: string) { - await BrowserActions.click(this.getTabByTitle(title)); - } - - async getComponentIdOfTab(): Promise { - return this.tabActiveContent.getAttribute('data-automation-id'); - } - async getHeaderTitle(): Promise { return this.headerTitle.getText(); } diff --git a/projects/aca-testing-shared/src/configs.ts b/projects/aca-testing-shared/src/configs.ts index 91958deb04..eb484aab99 100755 --- a/projects/aca-testing-shared/src/configs.ts +++ b/projects/aca-testing-shared/src/configs.ts @@ -94,13 +94,3 @@ export const FILES = { }, jpgFile: 'file-jpg.jpg' }; - -export const EXTENSIBILITY_CONFIGS = { - INFO_DRAWER: 'info-drawer-ext.json', - INFO_DRAWER_EMPTY: 'info-drawer-no-tabs-ext.json', - VIEWER: 'viewer-ext.json', - HEADER: 'header-ext.json', - METADATA_PRESETS: 'metadata-ext.json', - DOCUMENT_LIST_PRESETS: 'document-presets-ext.json', - CONTEXT_SUBMENUS: 'context-submenus-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 4f692067a1..5ffce09cbf 100755 --- a/projects/aca-testing-shared/src/pages/browsing-page.ts +++ b/projects/aca-testing-shared/src/pages/browsing-page.ts @@ -22,8 +22,8 @@ * along with Alfresco. If not, see . */ -import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav, PageLayoutHeader } from '../components/components'; -import { SIDEBAR_LABELS } from './../configs'; +import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav, PageLayoutHeader } from '../components'; +import { SIDEBAR_LABELS } from '../configs'; import { Page } from './page'; export class BrowsingPage extends Page { @@ -48,11 +48,6 @@ export class BrowsingPage extends Page { await this.sidenav.clickLink(SIDEBAR_LABELS.FAVORITE_LIBRARIES); } - async goToFavoriteLibrariesAndWait(): Promise { - await this.goToFavoriteLibraries(); - await this.dataTable.waitForHeader(); - } - async goToMyLibraries(): Promise { await this.sidenav.clickLink(SIDEBAR_LABELS.MY_LIBRARIES); } diff --git a/projects/aca-testing-shared/src/pages/login-page.ts b/projects/aca-testing-shared/src/pages/login-page.ts index 94f13dd95d..a2c2d0ca49 100755 --- a/projects/aca-testing-shared/src/pages/login-page.ts +++ b/projects/aca-testing-shared/src/pages/login-page.ts @@ -23,10 +23,10 @@ */ import { browser } from 'protractor'; -import { LoginComponent } from '../components/components'; +import { LoginComponent } from '../components'; import { Page } from './page'; import { APP_ROUTES } from '../configs'; -import { waitForPresence } from '../utilities/utils'; +import { waitForPresence } from '../utilities'; import { BrowserActions, Logger } from '@alfresco/adf-testing'; export class LoginPage extends Page { diff --git a/projects/aca-testing-shared/src/utilities/utils.ts b/projects/aca-testing-shared/src/utilities/utils.ts index 74931f54a1..950268af96 100644 --- a/projects/aca-testing-shared/src/utilities/utils.ts +++ b/projects/aca-testing-shared/src/utilities/utils.ts @@ -86,13 +86,6 @@ export class Utils { return crypto.getRandomValues(new Uint32Array(1))[0].toString(36).substring(0, 5).toLowerCase(); } - static async setSessionStorageFromConfig(configFileName: string): Promise { - const configFile = `${browser.params.e2eRootPath}/resources/extensibility-configs/${configFileName}`; - const fileContent = JSON.stringify(fs.readFileSync(configFile, { encoding: 'utf8' })); - - await browser.executeScript(`window.sessionStorage.setItem('app.extension.config', ${fileContent});`); - } - static retryCall(fn: () => Promise, retry: number = 30, delay: number = 1500): Promise { const pause = (duration: number) => new Promise((res) => setTimeout(res, duration)); @@ -184,10 +177,6 @@ export class Utils { await browser.actions().sendKeys(protractor.Key.NULL).perform(); } - static formatDate(date: string): string { - return new Date(date).toLocaleDateString('en-US'); - } - static async uploadFileNewVersion(fileFromOS: string): Promise { const el = browser.element(by.id('app-upload-file-version')); await el.sendKeys(`${browser.params.e2eRootPath}/resources/test-files/${fileFromOS}`); From 28cb8e782df77d0b40634f49050953e665be5673 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 9 Jan 2024 17:32:40 -0500 Subject: [PATCH 2/3] cleanup --- .../src/components/breadcrumb/breadcrumb.ts | 1 - .../breadcrumb/dropdown-breadcrumb.ts | 60 ---------- .../src/components/component.ts | 2 +- .../src/components/data-table/data-table.ts | 105 +----------------- .../src/components/dialog/confirm-dialog.ts | 13 +-- .../dialog/content-node-selector-dialog.ts | 12 +- .../dialog/create-edit-folder-dialog.ts | 4 +- .../src/components/index.ts | 3 - .../src/components/login/login.ts | 2 +- .../src/components/menu/menu.ts | 71 +----------- .../components/metadata-card/metadata-card.ts | 47 -------- .../src/components/sidenav/sidenav.ts | 13 +-- .../src/components/toolbar/toolbar.ts | 40 +------ .../src/components/viewer/viewer.ts | 49 +------- projects/aca-testing-shared/src/pages/page.ts | 2 - .../src/pages/search-results-page.ts | 3 +- 16 files changed, 20 insertions(+), 407 deletions(-) delete mode 100755 projects/aca-testing-shared/src/components/breadcrumb/dropdown-breadcrumb.ts delete mode 100644 projects/aca-testing-shared/src/components/metadata-card/metadata-card.ts diff --git a/projects/aca-testing-shared/src/components/breadcrumb/breadcrumb.ts b/projects/aca-testing-shared/src/components/breadcrumb/breadcrumb.ts index 4ee63adee0..cdd5fa9d39 100755 --- a/projects/aca-testing-shared/src/components/breadcrumb/breadcrumb.ts +++ b/projects/aca-testing-shared/src/components/breadcrumb/breadcrumb.ts @@ -26,7 +26,6 @@ import { Component } from '../component'; export class Breadcrumb extends Component { items = this.allByCss('.adf-breadcrumb-item'); - currentItem = this.byCss('.adf-breadcrumb-item-current'); constructor(ancestor?: string) { super('adf-breadcrumb', ancestor); diff --git a/projects/aca-testing-shared/src/components/breadcrumb/dropdown-breadcrumb.ts b/projects/aca-testing-shared/src/components/breadcrumb/dropdown-breadcrumb.ts deleted file mode 100755 index 7dff4b064b..0000000000 --- a/projects/aca-testing-shared/src/components/breadcrumb/dropdown-breadcrumb.ts +++ /dev/null @@ -1,60 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - */ - -import { browser, by } from 'protractor'; -import { Component } from '../component'; -import { waitForPresence } from '../../utilities/utils'; -import { BrowserActions } from '@alfresco/adf-testing'; - -export class DropDownBreadcrumb extends Component { - pathOptionCss = '.adf-dropdown-breadcrumb-path-option .mat-option-text'; - trigger = this.byCss('.adf-dropdown-breadcrumb-trigger'); - pathItems = browser.$$(this.pathOptionCss); - pathItemsContainer = this.byCss('.mat-select-panel', browser); - currentFolder = this.byCss('.adf-current-folder'); - - constructor(ancestor?: string) { - super('.adf-dropdown-breadcrumb', ancestor); - } - - async waitForPathListDropdownToOpen(): Promise { - return waitForPresence(this.pathItemsContainer, 'Timeout waiting for breadcrumb dropdown to open'); - } - - async openPath(): Promise { - await BrowserActions.click(this.trigger); - await this.waitForPathListDropdownToOpen(); - } - - async clickPathItem(name: string): Promise { - const elem = browser.element(by.cssContainingText(this.pathOptionCss, name)); - await BrowserActions.click(elem); - } - - async getPathItems(): Promise { - return this.pathItems.map(async (elem) => { - return elem.getText(); - }); - } -} diff --git a/projects/aca-testing-shared/src/components/component.ts b/projects/aca-testing-shared/src/components/component.ts index 7ce61c6eb7..ca30262e2d 100755 --- a/projects/aca-testing-shared/src/components/component.ts +++ b/projects/aca-testing-shared/src/components/component.ts @@ -23,7 +23,7 @@ */ import { ElementFinder, browser, by, ElementArrayFinder, ProtractorBrowser } from 'protractor'; -import { waitForPresence } from '../utilities/utils'; +import { waitForPresence } from '../utilities'; export abstract class Component { component: ElementFinder; diff --git a/projects/aca-testing-shared/src/components/data-table/data-table.ts b/projects/aca-testing-shared/src/components/data-table/data-table.ts index 274fa1e28c..7d9ae820e4 100755 --- a/projects/aca-testing-shared/src/components/data-table/data-table.ts +++ b/projects/aca-testing-shared/src/components/data-table/data-table.ts @@ -22,12 +22,11 @@ * along with Alfresco. If not, see . */ -import { browser, by, ElementArrayFinder, ElementFinder, protractor } from 'protractor'; +import { browser, by, ElementArrayFinder, ElementFinder } from 'protractor'; import { BrowserVisibility, Logger } from '@alfresco/adf-testing'; -import { BROWSER_WAIT_TIMEOUT } from '../../configs'; import { Component } from '../component'; import { Menu } from '../menu/menu'; -import { Utils, waitForPresence } from '../../utilities/utils'; +import { Utils, waitForPresence } from '../../utilities'; export class DataTable extends Component { private static selectors = { @@ -65,15 +64,6 @@ export class DataTable extends Component { return waitForPresence(this.body, '--- timeout waitForBody ---'); } - async waitForEmptyState(): Promise { - return waitForPresence(this.emptyList); - } - - async waitForFirstElementToChange(name: string): Promise { - const firstElementWithName = this.byCss(`[data-automation-id='datatable-row-0'][aria-label='${name}']`); - await BrowserVisibility.waitUntilElementIsNotVisible(firstElementWithName); - } - private getColumnHeaders(): ElementArrayFinder { const locator = by.css(DataTable.selectors.columnHeader); return this.head.all(locator); @@ -83,46 +73,6 @@ export class DataTable extends Component { return this.getColumnHeaders().getText(); } - getColumnHeaderByLabel(label: string): ElementFinder { - const locator = by.cssContainingText(DataTable.selectors.columnHeader, label); - return this.head.element(locator); - } - - async sortBy(label: string, order: 'asc' | 'desc'): Promise { - const sortColumn = await this.getSortedColumnHeaderText(); - let sortOrder = await this.getSortingOrder(); - if (sortColumn !== label) { - await browser.actions().mouseMove(this.getColumnHeaderByLabel(label)).perform(); - await this.getColumnHeaderByLabel(label).click(); - sortOrder = await this.getSortingOrder(); - } - if (sortOrder !== order) { - await this.getColumnHeaderByLabel(label).click(); - } - } - - private getSortedColumnHeader(): ElementFinder { - const locator = by.css(DataTable.selectors.sortedColumnHeader); - return this.head.element(locator); - } - - async getSortedColumnHeaderText(): Promise { - return this.getSortedColumnHeader().getText(); - } - - async getSortingOrder(): Promise { - const str = await this.getSortedColumnHeader().element(by.xpath('../..')).getAttribute('class'); - if (str.includes('asc')) { - return 'asc'; - } - - if (str.includes('desc')) { - return 'desc'; - } - - return 'none'; - } - private getRows(): ElementArrayFinder { return this.body.all(by.css(DataTable.selectors.row)); } @@ -157,18 +107,6 @@ export class DataTable extends Component { return this.getRowCells(name, location).get(0); } - private getRowNameCell(name: string, location: string = ''): ElementFinder { - return this.getRowCells(name, location).get(1); - } - - private getRowNameCellSpan(name: string, location: string = ''): ElementFinder { - return this.getRowNameCell(name, location).$('span'); - } - - async getItemNameTooltip(name: string, location: string = ''): Promise { - return this.getRowNameCellSpan(name, location).getAttribute('title'); - } - async hasCheckMarkIcon(itemName: string, location: string = ''): Promise { Logger.info(`--- check if item already selected : ${itemName} ${location}`); const row = this.getRowByName(itemName, location); @@ -250,30 +188,10 @@ export class DataTable extends Component { } } - async rightClickOnItem(itemName: string): Promise { - const item = this.getRowFirstCell(itemName); - await browser.actions().mouseMove(item).perform(); - await browser.actions().click(protractor.Button.RIGHT).perform(); - } - private getItemLocationEl(name: string): ElementFinder { return this.getRowByName(name).element(by.css('.aca-location-link')); } - async getItemLocation(name: string): Promise { - return this.getItemLocationEl(name).getText(); - } - - async getItemLocationTooltip(name: string): Promise { - const location = this.getItemLocationEl(name).$('a'); - const condition = () => location.getAttribute('title').then((value) => value && value.length > 0); - - await browser.actions().mouseMove(location).perform(); - - await browser.wait(condition, BROWSER_WAIT_TIMEOUT); - return location.getAttribute('title'); - } - async clickItemLocation(name: string): Promise { await this.getItemLocationEl(name).click(); } @@ -298,25 +216,6 @@ export class DataTable extends Component { return ''; } - async getEmptyListText(): Promise { - const isEmpty = await this.isEmpty(); - if (isEmpty) { - return this.byCss('adf-custom-empty-content-template').getText(); - } - return ''; - } - - async getCellsContainingName(name: string): Promise { - const rows = this.getRows().all(by.cssContainingText(DataTable.selectors.cell, name)); - return rows.map(async (cell) => { - return cell.getText(); - }); - } - - async getLibraryRole(name: string): Promise { - return this.getRowByName(name).element(by.css('adf-library-role-column')).getText(); - } - async isItemPresent(name: string, location?: string): Promise { return this.getRowByName(name, location).isPresent(); } diff --git a/projects/aca-testing-shared/src/components/dialog/confirm-dialog.ts b/projects/aca-testing-shared/src/components/dialog/confirm-dialog.ts index b601478a45..5d1154b988 100755 --- a/projects/aca-testing-shared/src/components/dialog/confirm-dialog.ts +++ b/projects/aca-testing-shared/src/components/dialog/confirm-dialog.ts @@ -23,14 +23,13 @@ */ import { by } from 'protractor'; -import { GenericDialog } from '../dialog/generic-dialog'; -import { isPresentAndEnabled } from '../../utilities/utils'; +import { GenericDialog } from './generic-dialog'; +import { isPresentAndEnabled } from '../../utilities'; export class ConfirmDialog extends GenericDialog { cancelButton = this.childElement(by.buttonText('Cancel')); keepButton = this.childElement(by.buttonText('Keep')); deleteButton = this.childElement(by.buttonText('Delete')); - removeButton = this.childElement(by.buttonText('Remove')); constructor() { super('adf-confirm-dialog'); @@ -40,10 +39,6 @@ export class ConfirmDialog extends GenericDialog { return this.content.getText(); } - async isCancelEnabled(): Promise { - return isPresentAndEnabled(this.cancelButton); - } - async isKeepEnabled(): Promise { return isPresentAndEnabled(this.keepButton); } @@ -51,8 +46,4 @@ export class ConfirmDialog extends GenericDialog { async isDeleteEnabled(): Promise { return isPresentAndEnabled(this.deleteButton); } - - async isRemoveEnabled(): Promise { - return isPresentAndEnabled(this.removeButton); - } } diff --git a/projects/aca-testing-shared/src/components/dialog/content-node-selector-dialog.ts b/projects/aca-testing-shared/src/components/dialog/content-node-selector-dialog.ts index 895714eb7a..4d4f64da5c 100755 --- a/projects/aca-testing-shared/src/components/dialog/content-node-selector-dialog.ts +++ b/projects/aca-testing-shared/src/components/dialog/content-node-selector-dialog.ts @@ -22,9 +22,9 @@ * along with Alfresco. If not, see . */ -import { by, browser, protractor } from 'protractor'; -import { GenericDialog } from '../dialog/generic-dialog'; -import { waitForStaleness, waitForPresence } from '../../utilities/utils'; +import { by, browser } from 'protractor'; +import { GenericDialog } from './generic-dialog'; +import { waitForStaleness, waitForPresence } from '../../utilities'; import { DataTable } from '../data-table/data-table'; import { BrowserActions } from '@alfresco/adf-testing'; @@ -68,10 +68,4 @@ export class ContentNodeSelectorDialog extends GenericDialog { await BrowserActions.click(row); await waitForPresence(browser.element(by.css('.adf-is-selected'))); } - - async searchFor(text: string): Promise { - await BrowserActions.clearWithBackSpace(this.searchInput); - await this.searchInput.sendKeys(text); - await this.searchInput.sendKeys(protractor.Key.ENTER); - } } diff --git a/projects/aca-testing-shared/src/components/dialog/create-edit-folder-dialog.ts b/projects/aca-testing-shared/src/components/dialog/create-edit-folder-dialog.ts index 843ed412e3..259a8c81ba 100755 --- a/projects/aca-testing-shared/src/components/dialog/create-edit-folder-dialog.ts +++ b/projects/aca-testing-shared/src/components/dialog/create-edit-folder-dialog.ts @@ -23,8 +23,8 @@ */ import { by } from 'protractor'; -import { GenericDialog } from '../dialog/generic-dialog'; -import { isPresentAndDisplayed, isPresentAndEnabled, typeText } from '../../utilities/utils'; +import { GenericDialog } from './generic-dialog'; +import { isPresentAndDisplayed, isPresentAndEnabled, typeText } from '../../utilities'; import { BrowserActions, BrowserVisibility } from '@alfresco/adf-testing'; export class CreateOrEditFolderDialog extends GenericDialog { diff --git a/projects/aca-testing-shared/src/components/index.ts b/projects/aca-testing-shared/src/components/index.ts index 29d6ac7c1f..f5bea41b8b 100644 --- a/projects/aca-testing-shared/src/components/index.ts +++ b/projects/aca-testing-shared/src/components/index.ts @@ -23,15 +23,12 @@ */ export * from './breadcrumb/breadcrumb'; -export * from './breadcrumb/dropdown-breadcrumb'; export * from './data-table/data-table'; -export * from './datetime-picker/datetime-picker'; export * from './dialog'; export * from './header/header'; export * from './info-drawer'; export * from './login/login'; export * from './menu/menu'; -export * from './metadata-card/metadata-card'; export * from './pagination/pagination'; export * from './search'; export * from './sidenav/sidenav'; diff --git a/projects/aca-testing-shared/src/components/login/login.ts b/projects/aca-testing-shared/src/components/login/login.ts index 22244740ea..1891ae49bb 100755 --- a/projects/aca-testing-shared/src/components/login/login.ts +++ b/projects/aca-testing-shared/src/components/login/login.ts @@ -23,7 +23,7 @@ */ import { Component } from '../component'; -import { typeText } from '../../utilities/utils'; +import { typeText } from '../../utilities'; export class LoginComponent extends Component { usernameInput = this.byCss('input#username'); diff --git a/projects/aca-testing-shared/src/components/menu/menu.ts b/projects/aca-testing-shared/src/components/menu/menu.ts index 95b60e3b2e..cde07c169a 100755 --- a/projects/aca-testing-shared/src/components/menu/menu.ts +++ b/projects/aca-testing-shared/src/components/menu/menu.ts @@ -25,22 +25,15 @@ import { ElementFinder, by, browser } from 'protractor'; import { Logger, BrowserVisibility, BrowserActions } from '@alfresco/adf-testing'; import { Component } from '../component'; -import { Utils, waitForPresence, waitForStaleness } from '../../utilities/utils'; +import { waitForPresence, waitForStaleness } from '../../utilities'; export class Menu extends Component { items = this.allByCss('.mat-menu-item'); - uploadFilesInput = this.byId('app-upload-files', browser); - submenus = browser.element.all(by.css('app-context-menu-item .mat-menu-item')); - createFolderAction = this.byId('app.create.folder'); - cancelEditingAction = this.byCss(`.mat-menu-item[title='Cancel Editing']`); copyAction = this.byTitleAttr('Copy'); editFolderAction = this.byCss(`.mat-menu-item[id$='editFolder']`); editOfflineAction = this.byCss(`.mat-menu-item[title='Edit Offline']`); - managePermissionsAction = this.byCssText('.mat-menu-item', 'Permissions'); - shareAction = this.byCssText('.mat-menu-item', 'Share'); - shareEditAction = this.byCssText('.mat-menu-item', 'Shared Link Settings'); constructor(ancestor?: string) { super('.mat-menu-panel', ancestor); @@ -55,11 +48,6 @@ export class Menu extends Component { await waitForStaleness(browser.element(by.css('.cdk-overlay-container .mat-menu-panel'))); } - async closeMenu(): Promise { - await Utils.pressEscape(); - await this.waitForMenuToClose(); - } - getNthItem(nth: number): ElementFinder { return this.items.get(nth - 1); } @@ -68,22 +56,10 @@ export class Menu extends Component { return this.byCssText('.mat-menu-item', menuItem); } - getItemById(id: string): ElementFinder { - return this.byId(id); - } - async getItemIconText(menuItem: string): Promise { return this.getItemByLabel(menuItem).element(by.css('.mat-icon')).getText(); } - async getItemIdAttribute(menuItem: string): Promise { - return this.getItemByLabel(menuItem).getAttribute('id'); - } - - async getItemsCount(): Promise { - return this.items.count(); - } - async clickNthItem(nth: number): Promise { try { const elem = this.getNthItem(nth); @@ -104,49 +80,4 @@ export class Menu extends Component { Logger.error(`___click menu item catch : failed to click on ${menuItem}___`, e); } } - - async mouseOverMenuItem(menuItem: string): Promise { - try { - const elem = this.getItemByLabel(menuItem); - await BrowserVisibility.waitUntilElementIsClickable(elem); - await browser.actions().mouseMove(elem).perform(); - await browser.sleep(500); - } catch (error) { - Logger.error(`----- mouse over error : failed to mouse over ${menuItem} : `, error); - } - } - - async hasSubMenu(menuItem: string): Promise { - try { - const elem = this.getItemByLabel(menuItem); - await BrowserVisibility.waitUntilElementIsClickable(elem); - const elemClass = await elem.getAttribute('class'); - return elemClass.includes('mat-menu-item-submenu-trigger'); - } catch (error) { - Logger.error('---- has submenu error: ', error); - return false; - } - } - - async isMenuItemPresent(title: string): Promise { - return browser.element(by.cssContainingText('.mat-menu-item', title)).isPresent(); - } - - async isSubMenuItemPresent(title: string): Promise { - return browser.element(by.cssContainingText('app-context-menu-item .mat-menu-item', title)).isPresent(); - } - - async getSubmenuItemsCount(): Promise { - return this.submenus.count(); - } - - async isMenuItemDisabled(title: string): Promise { - try { - const item = this.getItemByLabel(title); - return await item.getAttribute('disabled'); - } catch (error) { - Logger.error('----- isMenuItemDisabled catch: ', error); - return null; - } - } } diff --git a/projects/aca-testing-shared/src/components/metadata-card/metadata-card.ts b/projects/aca-testing-shared/src/components/metadata-card/metadata-card.ts deleted file mode 100644 index b69145ba84..0000000000 --- a/projects/aca-testing-shared/src/components/metadata-card/metadata-card.ts +++ /dev/null @@ -1,47 +0,0 @@ -/*! - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Alfresco Example Content Application - * - * This file is part of the Alfresco Example Content Application. - * If the software was purchased under a paid Alfresco license, the terms of - * the paid license agreement will prevail. Otherwise, the software is - * provided under the following open source license terms: - * - * The Alfresco Example Content Application is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * The Alfresco Example Content Application is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - */ - -import { Component } from '../component'; -import { waitForPresence } from '../../utilities/utils'; - -export class MetadataCard extends Component { - expandButton = this.byCss('[data-automation-id="meta-data-card-toggle-expand"]'); - expansionPanels = this.allByCss('.adf-metadata-grouped-properties-container mat-expansion-panel'); - - constructor(ancestor?: string) { - super('adf-content-metadata', ancestor); - } - - async waitForFirstExpansionPanel() { - await waitForPresence(this.expansionPanels.get(0)); - } - - async isExpansionPanelPresent(index: number) { - return this.expansionPanels.get(index).isPresent(); - } - - async getComponentIdOfPanel(index: number) { - return this.expansionPanels.get(index).getAttribute('data-automation-id'); - } -} diff --git a/projects/aca-testing-shared/src/components/sidenav/sidenav.ts b/projects/aca-testing-shared/src/components/sidenav/sidenav.ts index f7d6b4a918..473127c106 100755 --- a/projects/aca-testing-shared/src/components/sidenav/sidenav.ts +++ b/projects/aca-testing-shared/src/components/sidenav/sidenav.ts @@ -22,14 +22,13 @@ * along with Alfresco. If not, see . */ -import { ElementFinder, by, element, browser, By } from 'protractor'; +import { ElementFinder, by, browser } from 'protractor'; import { Logger, BrowserActions } from '@alfresco/adf-testing'; import { Menu } from '../menu/menu'; import { Component } from '../component'; export class Sidenav extends Component { links = this.component.all(by.css('.item')); - newButton = element(By.css('[id="app.toolbar.create"]')); personalFiles = this.byCss(`[data-automation-id='app.navbar.personalFiles']`); fileLibraries = this.byCss(`[data-automation-id='app.navbar.libraries.menu']`); myLibraries = this.byCss(`[data-automation-id='app.navbar.libraries.files']`, browser); @@ -45,16 +44,6 @@ export class Sidenav extends Component { super('app-sidenav', ancestor); } - async openNewMenu(): Promise { - await BrowserActions.click(this.newButton); - await this.menu.waitForMenuToOpen(); - } - - async openCreateFolderDialog(): Promise { - await this.openNewMenu(); - await BrowserActions.click(this.menu.createFolderAction); - } - async isActive(name: string): Promise { const cssClass = await this.getLinkLabel(name).getAttribute('class'); return cssClass.includes('action-button--active'); diff --git a/projects/aca-testing-shared/src/components/toolbar/toolbar.ts b/projects/aca-testing-shared/src/components/toolbar/toolbar.ts index be161dc46b..57d0436424 100755 --- a/projects/aca-testing-shared/src/components/toolbar/toolbar.ts +++ b/projects/aca-testing-shared/src/components/toolbar/toolbar.ts @@ -22,11 +22,11 @@ * along with Alfresco. If not, see . */ -import { ElementFinder, by, browser, By, element } from 'protractor'; +import { by, browser, By, element } from 'protractor'; import { BrowserActions } from '@alfresco/adf-testing'; import { Menu } from '../menu/menu'; import { Component } from '../component'; -import { Utils } from '../../utilities/utils'; +import { Utils } from '../../utilities'; export class Toolbar extends Component { menu = new Menu(); @@ -34,10 +34,8 @@ export class Toolbar extends Component { buttons = this.allByCss('button'); createButton = element(By.css('[id="app.toolbar.create"]')); uploadButton = element(By.css('[id="app.toolbar.upload"]')); - shareButton = element(By.css('button[data-automation-id="share-action-button"]')); downloadButton = element(By.css(`.mat-icon-button[title='Download']`)); viewDetailsButton = element(By.css(`button[title='View Details']`)); - printButton = element(By.css(`button[title='Print']`)); permanentlyDeleteButton = element(By.css(`button[title='Permanently Delete']`)); restoreButton = element(By.css(`button[title='Restore']`)); searchIconButton = element(By.css(`button[title='Search']`)); @@ -52,27 +50,10 @@ export class Toolbar extends Component { return element.isPresent(); } - getButtonByTitleAttribute(title: string) { - return this.byCss(`button[title="${title}"]`); - } - - getButtonById(id: string) { - return this.component.element(by.id(id)); - } - async clickSearchIconButton() { await BrowserActions.click(this.searchIconButton); } - async openViewerMoreMenu(): Promise { - const btnMoreActions = element(By.css('button[id="app.viewer.toolbar.more"]')); - await btnMoreActions.isPresent(); - await BrowserActions.click(btnMoreActions); - - await this.menu.waitForMenuToOpen(); - await browser.sleep(500); - } - async openMoreMenu(): Promise { const btnMoreActions = element(By.css('button[id="app.toolbar.more"]')); await btnMoreActions.isPresent(); @@ -86,18 +67,6 @@ export class Toolbar extends Component { await Utils.pressEscape(); } - async getButtonTooltip(button: ElementFinder): Promise { - return button.getAttribute('title'); - } - - async clickButton(title: string): Promise { - await BrowserActions.click(this.getButtonByTitleAttribute(title)); - } - - async isPrintPresent() { - return browser.isElementPresent(this.printButton); - } - async openUploadMenu(): Promise { await BrowserActions.click(this.uploadButton); await this.menu.waitForMenuToOpen(); @@ -128,11 +97,6 @@ export class Toolbar extends Component { await this.menu.clickMenuItem('Manage Versions'); } - async clickMoreActionsMove(): Promise { - await this.openMoreMenu(); - await this.menu.clickMenuItem('Move'); - } - async clickMoreActionsCopy(): Promise { await this.openMoreMenu(); await this.menu.copyAction.click(); diff --git a/projects/aca-testing-shared/src/components/viewer/viewer.ts b/projects/aca-testing-shared/src/components/viewer/viewer.ts index 0d04617c4f..a629571e41 100755 --- a/projects/aca-testing-shared/src/components/viewer/viewer.ts +++ b/projects/aca-testing-shared/src/components/viewer/viewer.ts @@ -22,11 +22,10 @@ * along with Alfresco. If not, see . */ -import { browser, by, element, ElementFinder } from 'protractor'; -import { BrowserActions, Logger } from '@alfresco/adf-testing'; +import { browser } from 'protractor'; import { Component } from '../component'; import { Toolbar } from '../toolbar/toolbar'; -import { waitForPresence } from '../../utilities/utils'; +import { waitForPresence } from '../../utilities'; export class Viewer extends Component { root = browser.$('adf-viewer'); @@ -34,8 +33,6 @@ export class Viewer extends Component { viewerContainer = this.byCss('.adf-viewer-render-content-container'); closeButton = this.byCss('.adf-viewer-close-button'); fileTitle = this.byCss('.adf-viewer__file-title'); - viewerExtensionContent = this.byCss('adf-preview-extension'); - txtViewerContent = this.byCss('.adf-txt-viewer-content'); toolbar = new Toolbar('adf-viewer'); @@ -48,7 +45,7 @@ export class Viewer extends Component { await waitForPresence(this.viewerContainer); await waitForPresence(this.viewerLayout); } catch (error) { - Logger.error('\n-----> catch waitForViewerToOpen <-----\n', error); + console.error('\n-----> catch waitForViewerToOpen <-----\n', error); } } @@ -57,16 +54,7 @@ export class Viewer extends Component { const fileName = this.byCssText('.adf-viewer__display-name', `${fileTitle}`); await waitForPresence(fileName); } catch (error) { - Logger.error('\n-----> catch waitForFileTitle <-----\n', error); - } - } - - async waitForTxtViewerToLoad(): Promise { - try { - await this.waitForViewerToOpen(); - await waitForPresence(this.txtViewerContent); - } catch (error) { - Logger.error('\n-----> catch waitForTxtViewerToLoad <-----\n', error); + console.error('\n-----> catch waitForFileTitle <-----\n', error); } } @@ -74,36 +62,7 @@ export class Viewer extends Component { return browser.isElementPresent(this.viewerLayout); } - async isViewerToolbarDisplayed() { - return browser.isElementPresent(this.toolbar.component); - } - - async isCloseButtonDisplayed() { - return browser.isElementPresent(this.closeButton); - } - - async isFileTitleDisplayed() { - return browser.isElementPresent(this.fileTitle); - } - async getFileTitle(): Promise { return this.fileTitle.getText(); } - - async isCustomContentPresent() { - return browser.isElementPresent(this.viewerExtensionContent); - } - - async getComponentIdOfView(): Promise { - if (await this.isCustomContentPresent()) { - return this.viewerExtensionContent.getAttribute('data-automation-id'); - } - - return ''; - } - - async clickCloseButton(): Promise { - const closeButton: ElementFinder = element(by.css('button.adf-viewer-close-button')); - await BrowserActions.click(closeButton); - } } diff --git a/projects/aca-testing-shared/src/pages/page.ts b/projects/aca-testing-shared/src/pages/page.ts index 665e2ef31d..7b3d35ea13 100755 --- a/projects/aca-testing-shared/src/pages/page.ts +++ b/projects/aca-testing-shared/src/pages/page.ts @@ -36,8 +36,6 @@ export abstract class Page { overlay = this.byCss('.cdk-overlay-container'); snackBar = this.byCss(`[data-automation-id='adf-snackbar-message-content-action-button']`); dialogContainer = this.byCss('.mat-dialog-container'); - genericError = this.byCss('aca-generic-error'); - genericErrorTitle = this.byCss('.generic-error__title'); uploadFilesDialog = new UploadFilesDialog(); diff --git a/projects/aca-testing-shared/src/pages/search-results-page.ts b/projects/aca-testing-shared/src/pages/search-results-page.ts index 94d753a279..f2323b1f7f 100755 --- a/projects/aca-testing-shared/src/pages/search-results-page.ts +++ b/projects/aca-testing-shared/src/pages/search-results-page.ts @@ -23,8 +23,7 @@ */ import { BrowsingPage } from './browsing-page'; -import { SearchSortingPicker } from '../components/search/search-sorting-picker'; -import { SearchFilters } from '../components/search/search-filters'; +import { SearchSortingPicker, SearchFilters } from '../components'; export class SearchResultsPage extends BrowsingPage { root = this.byCss('aca-search-results'); From c93174cdc0a11f046d44df2c52c36e0e2560f286 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 9 Jan 2024 17:37:52 -0500 Subject: [PATCH 3/3] cleanup --- .../src/components/pagination/pagination.ts | 74 ------------------- 1 file changed, 74 deletions(-) diff --git a/projects/aca-testing-shared/src/components/pagination/pagination.ts b/projects/aca-testing-shared/src/components/pagination/pagination.ts index 3f1ef86454..57c11375d9 100755 --- a/projects/aca-testing-shared/src/components/pagination/pagination.ts +++ b/projects/aca-testing-shared/src/components/pagination/pagination.ts @@ -22,8 +22,6 @@ * along with Alfresco. If not, see . */ -import { browser } from 'protractor'; -import { BrowserActions, Logger } from '@alfresco/adf-testing'; import { Menu } from '../menu/menu'; import { Component } from '../component'; @@ -34,8 +32,6 @@ export class Pagination extends Component { totalPages = this.byCss('.adf-pagination__total-pages'); previousButton = this.byCss('.adf-pagination__previous-button'); nextButton = this.byCss('.adf-pagination__next-button'); - maxItemsButton = this.byCss('.adf-pagination__max-items + button[mat-icon-button]'); - pagesButton = this.byCss('.adf-pagination__current-page + button[mat-icon-button]'); menu: Menu = new Menu(); @@ -43,64 +39,6 @@ export class Pagination extends Component { super('adf-pagination', ancestor); } - async openMaxItemsMenu() { - try { - await BrowserActions.click(this.maxItemsButton); - await this.menu.waitForMenuToOpen(); - } catch (error) { - Logger.error('____ open max items catch ___', error); - } - } - - async openCurrentPageMenu() { - try { - await BrowserActions.click(this.pagesButton); - await this.menu.waitForMenuToOpen(); - } catch (error) { - Logger.error('____ open current page menu ___', error); - } - } - - async resetToDefaultPageSize() { - try { - await this.openMaxItemsMenu(); - await this.menu.clickNthItem(1); - await this.menu.waitForMenuToClose(); - } catch (error) { - Logger.error('___ reset to default page size catch ___', error); - } - } - - async resetToDefaultPageNumber() { - try { - await this.openCurrentPageMenu(); - await this.menu.clickNthItem(1); - await this.menu.waitForMenuToClose(); - } catch (error) { - Logger.error('____ reset to default page number catch ___', error); - } - } - - async clickNext() { - await BrowserActions.click(this.nextButton); - } - - async clickPrevious() { - await BrowserActions.click(this.previousButton); - } - - async isNextEnabled() { - return this.nextButton.isEnabled(); - } - - async isPreviousEnabled() { - return this.previousButton.isEnabled(); - } - - async isPagesButtonPresent() { - return browser.isElementPresent(this.pagesButton); - } - async isRangePresent() { return this.range.isPresent(); } @@ -125,19 +63,7 @@ export class Pagination extends Component { return this.nextButton.isPresent(); } - async getCurrentPage() { - return this.currentPage.getText(); - } - async getRange() { return this.range.getText(); } - - async getMaxItems() { - return this.maxItems.getText(); - } - - async getTotalPages() { - return this.totalPages.getText(); - } }