From 5c288261d4d3db3b5c2d9d08e8126a234aa45558 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 1 Mar 2023 17:58:25 +0000 Subject: [PATCH] remove header actions as no longer needed --- .../favorite-libraries.component.html | 1 - .../favorites/favorites.component.html | 1 - .../lib/components/files/files.component.html | 1 - .../header-actions.component.html | 3 -- .../header-actions.component.scss | 18 ------- .../header-actions.component.ts | 52 ------------------- .../header-actions/header-actions.module.ts | 40 -------------- .../libraries/libraries.component.html | 1 - .../recent-files/recent-files.component.html | 1 - .../search/search-results.module.ts | 4 +- .../shared-files/shared-files.component.html | 1 - .../trashcan/trashcan.component.html | 1 - .../components/trashcan/trashcan.module.ts | 4 +- 13 files changed, 2 insertions(+), 126 deletions(-) delete mode 100644 projects/aca-content/src/lib/components/header-actions/header-actions.component.html delete mode 100644 projects/aca-content/src/lib/components/header-actions/header-actions.component.scss delete mode 100644 projects/aca-content/src/lib/components/header-actions/header-actions.component.ts delete mode 100644 projects/aca-content/src/lib/components/header-actions/header-actions.module.ts diff --git a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.html b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.html index 96becc211..383479fed 100644 --- a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.html +++ b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.html @@ -1,7 +1,6 @@ - diff --git a/projects/aca-content/src/lib/components/favorites/favorites.component.html b/projects/aca-content/src/lib/components/favorites/favorites.component.html index d7128b9b1..d2fbd1e54 100644 --- a/projects/aca-content/src/lib/components/favorites/favorites.component.html +++ b/projects/aca-content/src/lib/components/favorites/favorites.component.html @@ -1,7 +1,6 @@ - diff --git a/projects/aca-content/src/lib/components/files/files.component.html b/projects/aca-content/src/lib/components/files/files.component.html index 1084b433b..dfe848f09 100644 --- a/projects/aca-content/src/lib/components/files/files.component.html +++ b/projects/aca-content/src/lib/components/files/files.component.html @@ -1,7 +1,6 @@ - diff --git a/projects/aca-content/src/lib/components/header-actions/header-actions.component.html b/projects/aca-content/src/lib/components/header-actions/header-actions.component.html deleted file mode 100644 index a77eb5210..000000000 --- a/projects/aca-content/src/lib/components/header-actions/header-actions.component.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/projects/aca-content/src/lib/components/header-actions/header-actions.component.scss b/projects/aca-content/src/lib/components/header-actions/header-actions.component.scss deleted file mode 100644 index 82bb090ab..000000000 --- a/projects/aca-content/src/lib/components/header-actions/header-actions.component.scss +++ /dev/null @@ -1,18 +0,0 @@ -.aca-page-layout-header { - .app-search-input { - background: none; - } - - .mat-flat-button { - min-width: auto; - margin-left: 4px; - } - - .app-search-input { - padding-bottom: 0 !important; - - .app-search-container { - padding-top: 0; - } - } -} diff --git a/projects/aca-content/src/lib/components/header-actions/header-actions.component.ts b/projects/aca-content/src/lib/components/header-actions/header-actions.component.ts deleted file mode 100644 index 39d6af1cd..000000000 --- a/projects/aca-content/src/lib/components/header-actions/header-actions.component.ts +++ /dev/null @@ -1,52 +0,0 @@ -/*! - * @license - * Alfresco Example Content Application - * - * Copyright (C) 2005 - 2020 Alfresco Software Limited - * - * 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, OnDestroy, ViewEncapsulation } from '@angular/core'; -import { Store } from '@ngrx/store'; -import { SetCurrentFolderAction, AppStore } from '@alfresco/aca-shared/store'; -import { ContentActionRef } from '@alfresco/adf-extensions'; -import { Subject } from 'rxjs'; - -@Component({ - selector: 'aca-header-actions', - templateUrl: './header-actions.component.html', - styleUrls: ['./header-actions.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class HeaderActionsComponent implements OnDestroy { - private onDestroy$ = new Subject(); - - constructor(private store: Store) {} - - ngOnDestroy() { - this.onDestroy$.next(true); - this.onDestroy$.complete(); - this.store.dispatch(new SetCurrentFolderAction(null)); - } - - trackByActionId(_: number, action: ContentActionRef) { - return action.id; - } -} diff --git a/projects/aca-content/src/lib/components/header-actions/header-actions.module.ts b/projects/aca-content/src/lib/components/header-actions/header-actions.module.ts deleted file mode 100644 index 7a0be9c6b..000000000 --- a/projects/aca-content/src/lib/components/header-actions/header-actions.module.ts +++ /dev/null @@ -1,40 +0,0 @@ -/*! - * @license - * Alfresco Example Content Application - * - * Copyright (C) 2005 - 2020 Alfresco Software Limited - * - * 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 { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { CoreModule } from '@alfresco/adf-core'; -import { AppToolbarModule } from '../toolbar/toolbar.module'; -import { AppSearchInputModule } from '../search/search-input.module'; -import { HeaderActionsComponent } from './header-actions.component'; -import { MatButtonModule } from '@angular/material/button'; -import { MatIconModule } from '@angular/material/icon'; - -@NgModule({ - imports: [CommonModule, CoreModule.forChild(), AppToolbarModule, AppSearchInputModule, MatButtonModule, MatIconModule], - declarations: [HeaderActionsComponent], - exports: [HeaderActionsComponent] -}) -export class AppHeaderActionsModule {} diff --git a/projects/aca-content/src/lib/components/libraries/libraries.component.html b/projects/aca-content/src/lib/components/libraries/libraries.component.html index d917f5123..d77967f44 100644 --- a/projects/aca-content/src/lib/components/libraries/libraries.component.html +++ b/projects/aca-content/src/lib/components/libraries/libraries.component.html @@ -1,7 +1,6 @@ - diff --git a/projects/aca-content/src/lib/components/recent-files/recent-files.component.html b/projects/aca-content/src/lib/components/recent-files/recent-files.component.html index 9004b2d2f..55d17fb25 100644 --- a/projects/aca-content/src/lib/components/recent-files/recent-files.component.html +++ b/projects/aca-content/src/lib/components/recent-files/recent-files.component.html @@ -1,7 +1,6 @@ - diff --git a/projects/aca-content/src/lib/components/search/search-results.module.ts b/projects/aca-content/src/lib/components/search/search-results.module.ts index 266657e46..06e9c5987 100644 --- a/projects/aca-content/src/lib/components/search/search-results.module.ts +++ b/projects/aca-content/src/lib/components/search/search-results.module.ts @@ -39,7 +39,6 @@ import { ContextMenuModule } from '../context-menu/context-menu.module'; import { SearchActionMenuComponent } from './search-action-menu/search-action-menu.component'; import { DocumentListCustomComponentsModule } from '../dl-custom-components/document-list-custom-components.module'; import { AppSearchInputModule } from './search-input.module'; -import { AppHeaderActionsModule } from '../header-actions/header-actions.module'; @NgModule({ imports: [ @@ -54,8 +53,7 @@ import { AppHeaderActionsModule } from '../header-actions/header-actions.module' ContextMenuModule, LockedByModule, DocumentListCustomComponentsModule, - AppSearchInputModule, - AppHeaderActionsModule + AppSearchInputModule ], declarations: [SearchResultsComponent, SearchLibrariesResultsComponent, SearchResultsRowComponent, SearchActionMenuComponent], exports: [SearchResultsComponent, SearchLibrariesResultsComponent, SearchResultsRowComponent, SearchActionMenuComponent] diff --git a/projects/aca-content/src/lib/components/shared-files/shared-files.component.html b/projects/aca-content/src/lib/components/shared-files/shared-files.component.html index 05607dbc7..0bafecb5e 100644 --- a/projects/aca-content/src/lib/components/shared-files/shared-files.component.html +++ b/projects/aca-content/src/lib/components/shared-files/shared-files.component.html @@ -1,7 +1,6 @@ - diff --git a/projects/aca-content/src/lib/components/trashcan/trashcan.component.html b/projects/aca-content/src/lib/components/trashcan/trashcan.component.html index d09c65102..26b035988 100644 --- a/projects/aca-content/src/lib/components/trashcan/trashcan.component.html +++ b/projects/aca-content/src/lib/components/trashcan/trashcan.component.html @@ -1,7 +1,6 @@ - diff --git a/projects/aca-content/src/lib/components/trashcan/trashcan.module.ts b/projects/aca-content/src/lib/components/trashcan/trashcan.module.ts index d77b4d905..23922aee3 100644 --- a/projects/aca-content/src/lib/components/trashcan/trashcan.module.ts +++ b/projects/aca-content/src/lib/components/trashcan/trashcan.module.ts @@ -33,7 +33,6 @@ import { AppToolbarModule } from '../toolbar/toolbar.module'; import { DirectivesModule } from '../../directives/directives.module'; import { ContextMenuModule } from '../context-menu/context-menu.module'; import { AppSearchInputModule } from '../search/search-input.module'; -import { AppHeaderActionsModule } from '../header-actions/header-actions.module'; import { PageLayoutModule } from '@alfresco/aca-shared'; @NgModule({ @@ -46,8 +45,7 @@ import { PageLayoutModule } from '@alfresco/aca-shared'; AppToolbarModule, ContextMenuModule, PageLayoutModule, - AppSearchInputModule, - AppHeaderActionsModule + AppSearchInputModule ], declarations: [TrashcanComponent], exports: [TrashcanComponent]