From f6f432ab284250eac3871538743a82f9f2a02b1b Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 28 Jun 2024 11:45:22 -0400 Subject: [PATCH] Update imports for new ADF standalone components (#3903) --- .../context-menu/context-menu-item.component.ts | 6 +++--- .../context-menu/context-menu.component.ts | 10 +++++----- .../name-column/name-column.component.ts | 8 ++++---- .../favorite-libraries.component.ts | 10 +++++----- .../lib/components/favorites/favorites.component.ts | 10 +++++----- .../src/lib/components/files/files.component.html | 2 +- .../src/lib/components/files/files.component.ts | 6 +++--- .../lib/components/libraries/libraries.component.ts | 10 +++++----- .../recent-files/recent-files.component.ts | 10 +++++----- .../search-libraries-results.component.ts | 6 +++--- .../search-results/search-results.component.ts | 8 ++++---- .../shared-files/shared-files.component.ts | 10 +++++----- .../src/lib/components/sidenav/sidenav.component.ts | 4 ++-- .../toggle-favorite-library.component.ts | 4 ++-- .../toggle-favorite/toggle-favorite.component.ts | 4 ++-- .../toggle-join-library-button.component.ts | 4 ++-- .../toggle-join-library-menu.component.ts | 4 ++-- .../lib/components/trashcan/trashcan.component.ts | 10 +++++----- .../toolbar-action/toolbar-action.component.ts | 4 ++-- .../toolbar-menu-item.component.ts | 6 +++--- .../toolbar/toolbar-menu/toolbar-menu.component.ts | 6 +++--- .../src/lib/deprecated/shared-toolbar.module.ts | 13 +------------ 22 files changed, 72 insertions(+), 83 deletions(-) diff --git a/projects/aca-content/src/lib/components/context-menu/context-menu-item.component.ts b/projects/aca-content/src/lib/components/context-menu/context-menu-item.component.ts index 6bb7c2a423..c42f516a37 100644 --- a/projects/aca-content/src/lib/components/context-menu/context-menu-item.component.ts +++ b/projects/aca-content/src/lib/components/context-menu/context-menu-item.component.ts @@ -23,17 +23,17 @@ */ import { Component, Input, ViewEncapsulation } from '@angular/core'; -import { ContentActionRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions'; import { AppExtensionService } from '@alfresco/aca-shared'; import { CommonModule } from '@angular/common'; import { MatMenuModule } from '@angular/material/menu'; import { TranslateModule } from '@ngx-translate/core'; -import { IconModule } from '@alfresco/adf-core'; import { MatDividerModule } from '@angular/material/divider'; +import { IconComponent } from '@alfresco/adf-core'; @Component({ standalone: true, - imports: [CommonModule, TranslateModule, MatMenuModule, IconModule, MatDividerModule, ExtensionsModule], + imports: [CommonModule, TranslateModule, MatMenuModule, MatDividerModule, IconComponent, DynamicExtensionComponent], selector: 'app-context-menu-item', templateUrl: './context-menu-item.component.html', encapsulation: ViewEncapsulation.None, diff --git a/projects/aca-content/src/lib/components/context-menu/context-menu.component.ts b/projects/aca-content/src/lib/components/context-menu/context-menu.component.ts index f466516fdf..01321cd966 100644 --- a/projects/aca-content/src/lib/components/context-menu/context-menu.component.ts +++ b/projects/aca-content/src/lib/components/context-menu/context-menu.component.ts @@ -26,7 +26,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy, HostListener, ViewChil import { MatMenuModule, MatMenuTrigger } from '@angular/material/menu'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; -import { ContentActionRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions'; import { ContextMenuOverlayRef } from './context-menu-overlay'; import { CONTEXT_MENU_DIRECTION } from './direction.token'; import { Direction } from '@angular/cdk/bidi'; @@ -34,7 +34,7 @@ import { AppExtensionService } from '@alfresco/aca-shared'; import { CommonModule } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; import { MatDividerModule } from '@angular/material/divider'; -import { IconModule } from '@alfresco/adf-core'; +import { IconComponent } from '@alfresco/adf-core'; import { ContextMenuItemComponent } from './context-menu-item.component'; import { OutsideEventDirective } from './context-menu-outside-event.directive'; @@ -45,10 +45,10 @@ import { OutsideEventDirective } from './context-menu-outside-event.directive'; TranslateModule, MatMenuModule, MatDividerModule, - IconModule, ContextMenuItemComponent, - ExtensionsModule, - OutsideEventDirective + OutsideEventDirective, + IconComponent, + DynamicExtensionComponent ], selector: 'aca-context-menu', templateUrl: './context-menu.component.html', diff --git a/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts b/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts index 3b7fb6c73b..c85da82c43 100644 --- a/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts +++ b/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts @@ -22,7 +22,7 @@ * from Hyland Software. If not, see . */ -import { ContentPipeModule, NameColumnComponent, NodesApiService } from '@alfresco/adf-content-services'; +import { NameColumnComponent, NodeNameTooltipPipe, NodesApiService } from '@alfresco/adf-content-services'; import { ChangeDetectorRef, Component, ElementRef, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core'; import { Actions, ofType } from '@ngrx/effects'; import { Subject } from 'rxjs'; @@ -31,12 +31,12 @@ import { NodeActionTypes } from '@alfresco/aca-shared/store'; import { LockedByComponent, isLocked, AppExtensionService, Badge } from '@alfresco/aca-shared'; import { CommonModule } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; -import { IconModule } from '@alfresco/adf-core'; -import { ExtensionsModule } from '@alfresco/adf-extensions'; +import { IconComponent } from '@alfresco/adf-core'; +import { DynamicExtensionComponent } from '@alfresco/adf-extensions'; @Component({ standalone: true, - imports: [CommonModule, TranslateModule, LockedByComponent, ContentPipeModule, IconModule, ExtensionsModule], + imports: [CommonModule, TranslateModule, LockedByComponent, IconComponent, NodeNameTooltipPipe, DynamicExtensionComponent], selector: 'aca-custom-name-column', templateUrl: './name-column.component.html', styleUrls: ['./name-column.component.scss'], diff --git a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts index 382e56b8c1..5e3f848041 100644 --- a/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts +++ b/projects/aca-content/src/lib/components/favorite-libraries/favorite-libraries.component.ts @@ -34,8 +34,8 @@ import { ToolbarComponent } from '@alfresco/aca-shared'; import { NavigateLibraryAction } from '@alfresco/aca-shared/store'; -import { DataTableModule, PaginationComponent, TemplateModule, UserPreferencesService } from '@alfresco/adf-core'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DataTableModule, EmptyContentComponent, PaginationComponent, UserPreferencesService } from '@alfresco/adf-core'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; import { CommonModule } from '@angular/common'; import { DocumentListModule } from '@alfresco/adf-content-services'; import { DocumentListDirective } from '../../directives/document-list.directive'; @@ -48,14 +48,14 @@ import { TranslateModule } from '@ngx-translate/core'; DocumentListModule, DocumentListDirective, ContextActionsDirective, - TemplateModule, DataTableModule, - ExtensionsModule, PaginationComponent, InfoDrawerComponent, PageLayoutComponent, TranslateModule, - ToolbarComponent + ToolbarComponent, + EmptyContentComponent, + DynamicColumnComponent ], templateUrl: './favorite-libraries.component.html', encapsulation: ViewEncapsulation.None diff --git a/projects/aca-content/src/lib/components/favorites/favorites.component.ts b/projects/aca-content/src/lib/components/favorites/favorites.component.ts index 131f2874dd..c0be53d421 100644 --- a/projects/aca-content/src/lib/components/favorites/favorites.component.ts +++ b/projects/aca-content/src/lib/components/favorites/favorites.component.ts @@ -34,10 +34,10 @@ import { import { NodeEntry, Node, PathElement, PathInfo } from '@alfresco/js-api'; import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { debounceTime, map } from 'rxjs/operators'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; import { CommonModule } from '@angular/common'; import { DocumentListModule } from '@alfresco/adf-content-services'; -import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core'; +import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core'; import { DocumentListDirective } from '../../directives/document-list.directive'; import { TranslateModule } from '@ngx-translate/core'; @@ -48,15 +48,15 @@ import { TranslateModule } from '@ngx-translate/core'; DocumentListModule, DocumentListDirective, ContextActionsDirective, - TemplateModule, DataTableModule, - ExtensionsModule, PaginationComponent, PaginationDirective, InfoDrawerComponent, PageLayoutComponent, TranslateModule, - ToolbarComponent + ToolbarComponent, + EmptyContentComponent, + DynamicColumnComponent ], templateUrl: './favorites.component.html', encapsulation: ViewEncapsulation.None 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 af6d4ec325..d3d377852f 100644 --- a/projects/aca-content/src/lib/components/files/files.component.html +++ b/projects/aca-content/src/lib/components/files/files.component.html @@ -51,7 +51,7 @@ [resizable]="column.resizable" > - + diff --git a/projects/aca-content/src/lib/components/files/files.component.ts b/projects/aca-content/src/lib/components/files/files.component.ts index 4826809776..71be16e0d5 100644 --- a/projects/aca-content/src/lib/components/files/files.component.ts +++ b/projects/aca-content/src/lib/components/files/files.component.ts @@ -40,7 +40,7 @@ import { import { SetCurrentFolderAction, isAdmin, UploadFileVersionAction, showLoaderSelector } from '@alfresco/aca-shared/store'; import { debounceTime, takeUntil } from 'rxjs/operators'; import { BreadcrumbModule, DocumentListModule, FileUploadEvent, FilterSearch, ShareDataRow, UploadModule } from '@alfresco/adf-content-services'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; import { CommonModule } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; import { DocumentListDirective } from '../../directives/document-list.directive'; @@ -58,13 +58,13 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; DocumentListDirective, ContextActionsDirective, DataTableModule, - ExtensionsModule, PaginationComponent, MatProgressSpinnerModule, InfoDrawerComponent, PaginationDirective, PageLayoutComponent, - ToolbarComponent + ToolbarComponent, + DynamicColumnComponent ], templateUrl: './files.component.html', encapsulation: ViewEncapsulation.None diff --git a/projects/aca-content/src/lib/components/libraries/libraries.component.ts b/projects/aca-content/src/lib/components/libraries/libraries.component.ts index 194c93c2d9..f0d81d9089 100644 --- a/projects/aca-content/src/lib/components/libraries/libraries.component.ts +++ b/projects/aca-content/src/lib/components/libraries/libraries.component.ts @@ -34,10 +34,10 @@ import { PaginationDirective, ToolbarComponent } from '@alfresco/aca-shared'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; import { CommonModule } from '@angular/common'; import { DocumentListModule } from '@alfresco/adf-content-services'; -import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core'; +import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core'; import { DocumentListDirective } from '../../directives/document-list.directive'; import { TranslateModule } from '@ngx-translate/core'; @@ -48,15 +48,15 @@ import { TranslateModule } from '@ngx-translate/core'; DocumentListModule, DocumentListDirective, ContextActionsDirective, - TemplateModule, DataTableModule, - ExtensionsModule, PaginationComponent, PaginationDirective, InfoDrawerComponent, PageLayoutComponent, TranslateModule, - ToolbarComponent + ToolbarComponent, + EmptyContentComponent, + DynamicColumnComponent ], templateUrl: './libraries.component.html', encapsulation: ViewEncapsulation.None diff --git a/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts b/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts index 2080af920b..8db29b52c5 100644 --- a/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts +++ b/projects/aca-content/src/lib/components/recent-files/recent-files.component.ts @@ -33,10 +33,10 @@ import { PaginationDirective, ToolbarComponent } from '@alfresco/aca-shared'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; import { CommonModule } from '@angular/common'; import { DocumentListModule } from '@alfresco/adf-content-services'; -import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core'; +import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core'; import { DocumentListDirective } from '../../directives/document-list.directive'; import { TranslateModule } from '@ngx-translate/core'; @@ -47,15 +47,15 @@ import { TranslateModule } from '@ngx-translate/core'; DocumentListModule, DocumentListDirective, ContextActionsDirective, - TemplateModule, DataTableModule, - ExtensionsModule, PaginationComponent, PaginationDirective, InfoDrawerComponent, PageLayoutComponent, TranslateModule, - ToolbarComponent + ToolbarComponent, + EmptyContentComponent, + DynamicColumnComponent ], templateUrl: './recent-files.component.html', encapsulation: ViewEncapsulation.None diff --git a/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.ts b/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.ts index 48bf8866bd..3b3114ec81 100644 --- a/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.ts +++ b/projects/aca-content/src/lib/components/search/search-libraries-results/search-libraries-results.component.ts @@ -37,7 +37,7 @@ import { PaginationDirective, ToolbarComponent } from '@alfresco/aca-shared'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; import { CommonModule } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; import { SearchInputComponent } from '../search-input/search-input.component'; @@ -55,14 +55,14 @@ import { DocumentListDirective } from '../../../directives/document-list.directi MatProgressBarModule, DocumentListModule, DataTableModule, - ExtensionsModule, PaginationComponent, InfoDrawerComponent, ContextActionsDirective, DocumentListDirective, PaginationDirective, PageLayoutComponent, - ToolbarComponent + ToolbarComponent, + DynamicColumnComponent ], selector: 'aca-search-results', templateUrl: './search-libraries-results.component.html', diff --git a/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts b/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts index c1fe70c0e2..981e97b499 100644 --- a/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts +++ b/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts @@ -25,7 +25,7 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { NodeEntry, Pagination, ResultSetPaging } from '@alfresco/js-api'; import { ActivatedRoute, Params } from '@angular/router'; -import { AlfrescoViewerModule, DocumentListModule, SearchModule, SearchQueryBuilderService, TagService } from '@alfresco/adf-content-services'; +import { AlfrescoViewerComponent, DocumentListModule, SearchModule, SearchQueryBuilderService, TagService } from '@alfresco/adf-content-services'; import { infoDrawerPreview, NavigateToFolder, @@ -59,7 +59,7 @@ import { SearchActionMenuComponent } from '../search-action-menu/search-action-m import { TagsColumnComponent } from '../../dl-custom-components/tags-column/tags-column.component'; import { MatIconModule } from '@angular/material/icon'; import { SearchResultsRowComponent } from '../search-results-row/search-results-row.component'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; @Component({ standalone: true, @@ -79,7 +79,6 @@ import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extension SearchActionMenuComponent, TagsColumnComponent, PaginationComponent, - AlfrescoViewerModule, MatIconModule, InfoDrawerComponent, SearchResultsRowComponent, @@ -87,7 +86,8 @@ import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extension ViewerModule, PageLayoutComponent, ToolbarComponent, - ExtensionsModule + AlfrescoViewerComponent, + DynamicColumnComponent ], selector: 'aca-search-results', templateUrl: './search-results.component.html', diff --git a/projects/aca-content/src/lib/components/shared-files/shared-files.component.ts b/projects/aca-content/src/lib/components/shared-files/shared-files.component.ts index 5e71b2bbf8..3c8793aadf 100644 --- a/projects/aca-content/src/lib/components/shared-files/shared-files.component.ts +++ b/projects/aca-content/src/lib/components/shared-files/shared-files.component.ts @@ -34,10 +34,10 @@ import { PaginationDirective, ToolbarComponent } from '@alfresco/aca-shared'; -import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions'; +import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions'; import { CommonModule } from '@angular/common'; import { DocumentListModule } from '@alfresco/adf-content-services'; -import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core'; +import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core'; import { DocumentListDirective } from '../../directives/document-list.directive'; import { TranslateModule } from '@ngx-translate/core'; @@ -48,15 +48,15 @@ import { TranslateModule } from '@ngx-translate/core'; DocumentListModule, DocumentListDirective, ContextActionsDirective, - TemplateModule, DataTableModule, - ExtensionsModule, PaginationComponent, InfoDrawerComponent, PaginationDirective, PageLayoutComponent, TranslateModule, - ToolbarComponent + ToolbarComponent, + EmptyContentComponent, + DynamicColumnComponent ], templateUrl: './shared-files.component.html', encapsulation: ViewEncapsulation.None diff --git a/projects/aca-content/src/lib/components/sidenav/sidenav.component.ts b/projects/aca-content/src/lib/components/sidenav/sidenav.component.ts index 690465a264..3a306d5848 100755 --- a/projects/aca-content/src/lib/components/sidenav/sidenav.component.ts +++ b/projects/aca-content/src/lib/components/sidenav/sidenav.component.ts @@ -23,7 +23,7 @@ */ import { Component, Input, OnInit, ViewEncapsulation, OnDestroy } from '@angular/core'; -import { ExtensionsModule, NavBarGroupRef, NavBarLinkRef } from '@alfresco/adf-extensions'; +import { DynamicExtensionComponent, NavBarGroupRef, NavBarLinkRef } from '@alfresco/adf-extensions'; import { Store } from '@ngrx/store'; import { AppStore, getSideNavState } from '@alfresco/aca-shared/store'; import { Subject } from 'rxjs'; @@ -37,7 +37,7 @@ import { ExpandMenuComponent } from './components/expand-menu.component'; @Component({ standalone: true, - imports: [CommonModule, SidenavHeaderComponent, MatListModule, ExpandMenuComponent, ExtensionsModule], + imports: [CommonModule, SidenavHeaderComponent, MatListModule, ExpandMenuComponent, DynamicExtensionComponent], selector: 'app-sidenav', templateUrl: './sidenav.component.html', styleUrls: ['./sidenav.component.scss'], diff --git a/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts b/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts index 9ab6f6dbd6..b36c7a0e65 100644 --- a/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts +++ b/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts @@ -32,13 +32,13 @@ import { Router } from '@angular/router'; import { Subject } from 'rxjs'; import { CommonModule } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; -import { ContentDirectiveModule } from '@alfresco/adf-content-services'; +import { LibraryFavoriteDirective } from '@alfresco/adf-content-services'; import { MatIconModule } from '@angular/material/icon'; import { MatMenuModule } from '@angular/material/menu'; @Component({ standalone: true, - imports: [CommonModule, TranslateModule, ContentDirectiveModule, MatIconModule, MatMenuModule], + imports: [CommonModule, TranslateModule, MatIconModule, MatMenuModule, LibraryFavoriteDirective], selector: 'app-toggle-favorite-library', template: `