mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
AAE-36484 upgrade to standalone api (#4661)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
import { HammerModule } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { AuthGuardEcm, LanguagePickerComponent, NotificationHistoryComponent, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
||||
import { AuthGuardEcm, LanguagePickerComponent, NotificationHistoryComponent, provideTranslations } from '@alfresco/adf-core';
|
||||
import {
|
||||
ContentModule,
|
||||
ContentVersionService,
|
||||
@@ -105,14 +105,7 @@ import { SaveSearchSidenavComponent } from './components/search/search-save/side
|
||||
providers: [
|
||||
{ provide: ContentVersionService, useClass: ContentUrlService },
|
||||
{ provide: DocumentBasePageService, useExisting: ContentManagementService },
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
useValue: {
|
||||
name: 'app',
|
||||
source: 'assets'
|
||||
}
|
||||
},
|
||||
provideTranslations('app', 'assets'),
|
||||
{ provide: SHELL_NAVBAR_MIN_WIDTH, useValue: 0 },
|
||||
{
|
||||
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
||||
|
@@ -104,270 +104,272 @@ const createViewRoutes = (navigateSource: string, additionalData: Data = {}): Ro
|
||||
}
|
||||
];
|
||||
|
||||
export const CONTENT_LAYOUT_ROUTES: Route = {
|
||||
path: '',
|
||||
canActivate: [ExtensionsDataLoaderGuard],
|
||||
children: [
|
||||
{
|
||||
path: 'profile',
|
||||
canActivate: [ViewProfileRuleGuard],
|
||||
component: ViewProfileComponent
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
component: HomeComponent
|
||||
},
|
||||
{
|
||||
path: 'personal-files',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
sortingPreferenceKey: 'personal-files',
|
||||
title: 'APP.BROWSE.PERSONAL.TITLE',
|
||||
defaultNodeId: '-my-'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'details/:nodeId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: DetailsComponent,
|
||||
data: {
|
||||
navigateSource: 'personal-files'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: ':activeTab',
|
||||
component: DetailsComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.PERSONAL.PERMISSIONS.TITLE',
|
||||
navigateSource: 'personal-files'
|
||||
}
|
||||
export const CONTENT_LAYOUT_ROUTES: Route[] = [
|
||||
{
|
||||
path: '',
|
||||
canActivate: [ExtensionsDataLoaderGuard],
|
||||
children: [
|
||||
{
|
||||
path: 'profile',
|
||||
canActivate: [ViewProfileRuleGuard],
|
||||
component: ViewProfileComponent
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
component: HomeComponent
|
||||
},
|
||||
{
|
||||
path: 'personal-files',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
sortingPreferenceKey: 'personal-files',
|
||||
title: 'APP.BROWSE.PERSONAL.TITLE',
|
||||
defaultNodeId: '-my-'
|
||||
}
|
||||
]
|
||||
},
|
||||
...createViewRoutes('personal-files')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'personal-files/:folderId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.PERSONAL.TITLE',
|
||||
sortingPreferenceKey: 'personal-files'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('personal-files')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'libraries',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: LibrariesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'libraries'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'libraries/:folderId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'libraries-files'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('libraries', {
|
||||
data: {
|
||||
navigateSource: 'libraries'
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'favorite',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
pathMatch: 'full',
|
||||
redirectTo: 'libraries'
|
||||
},
|
||||
{
|
||||
path: 'libraries',
|
||||
component: FavoriteLibrariesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'favorite-libraries'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'favorite/libraries/:folderId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'libraries-files'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('libraries')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'favorites',
|
||||
data: {
|
||||
sortingPreferenceKey: 'favorites'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FavoritesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.FAVORITES.TITLE',
|
||||
sortingPreferenceKey: 'favorites'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('favorites')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'recent-files',
|
||||
data: {
|
||||
sortingPreferenceKey: 'recent-files'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: RecentFilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.RECENT.TITLE'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('recent-files')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'shared',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
data: {
|
||||
title: 'APP.BROWSE.SHARED.TITLE',
|
||||
sortingPreferenceKey: 'shared-files'
|
||||
},
|
||||
component: SharedFilesComponent
|
||||
},
|
||||
...createViewRoutes('shared')
|
||||
],
|
||||
canActivateChild: [AppSharedRuleGuard],
|
||||
canActivate: [AppSharedRuleGuard]
|
||||
},
|
||||
{
|
||||
path: 'trashcan',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: TrashcanComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.TRASHCAN.TITLE',
|
||||
sortingPreferenceKey: 'trashcan'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SearchResultsComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.SEARCH.TITLE',
|
||||
sortingPreferenceKey: 'search'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('search')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'search-libraries',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SearchLibrariesResultsComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.SEARCH.TITLE',
|
||||
sortingPreferenceKey: 'search-libraries'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'view/:nodeId',
|
||||
outlet: 'viewer',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
data: {
|
||||
navigateSource: 'search'
|
||||
{
|
||||
path: 'details/:nodeId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: DetailsComponent,
|
||||
data: {
|
||||
navigateSource: 'personal-files'
|
||||
}
|
||||
},
|
||||
loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'nodes/:nodeId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => import('@alfresco/aca-content/folder-rules').then((m) => m.AcaFolderRulesModule)
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'knowledge-retrieval',
|
||||
canDeactivate: [UnsavedChangesGuard],
|
||||
canActivate: [PluginEnabledGuard],
|
||||
data: {
|
||||
plugin: 'plugins.knowledgeRetrievalEnabled'
|
||||
{
|
||||
path: ':activeTab',
|
||||
component: DetailsComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.PERSONAL.PERMISSIONS.TITLE',
|
||||
navigateSource: 'personal-files'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
...createViewRoutes('personal-files')
|
||||
]
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SearchAiResultsComponent
|
||||
{
|
||||
path: 'personal-files/:folderId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.PERSONAL.TITLE',
|
||||
sortingPreferenceKey: 'personal-files'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('personal-files')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'libraries',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: LibrariesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'libraries'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'libraries/:folderId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'libraries-files'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('libraries', {
|
||||
data: {
|
||||
navigateSource: 'libraries'
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'favorite',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
pathMatch: 'full',
|
||||
redirectTo: 'libraries'
|
||||
},
|
||||
{
|
||||
path: 'libraries',
|
||||
component: FavoriteLibrariesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'favorite-libraries'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'favorite/libraries/:folderId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE',
|
||||
sortingPreferenceKey: 'libraries-files'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('libraries')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'favorites',
|
||||
data: {
|
||||
sortingPreferenceKey: 'favorites'
|
||||
},
|
||||
...createViewRoutes('knowledge-retrieval')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'saved-searches',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SavedSearchesSmartListComponent
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
component: GenericErrorComponent
|
||||
}
|
||||
],
|
||||
canActivateChild: [AuthGuard]
|
||||
};
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: FavoritesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.FAVORITES.TITLE',
|
||||
sortingPreferenceKey: 'favorites'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('favorites')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'recent-files',
|
||||
data: {
|
||||
sortingPreferenceKey: 'recent-files'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: RecentFilesComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.RECENT.TITLE'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('recent-files')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'shared',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
data: {
|
||||
title: 'APP.BROWSE.SHARED.TITLE',
|
||||
sortingPreferenceKey: 'shared-files'
|
||||
},
|
||||
component: SharedFilesComponent
|
||||
},
|
||||
...createViewRoutes('shared')
|
||||
],
|
||||
canActivateChild: [AppSharedRuleGuard],
|
||||
canActivate: [AppSharedRuleGuard]
|
||||
},
|
||||
{
|
||||
path: 'trashcan',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: TrashcanComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.TRASHCAN.TITLE',
|
||||
sortingPreferenceKey: 'trashcan'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SearchResultsComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.SEARCH.TITLE',
|
||||
sortingPreferenceKey: 'search'
|
||||
}
|
||||
},
|
||||
...createViewRoutes('search')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'search-libraries',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SearchLibrariesResultsComponent,
|
||||
data: {
|
||||
title: 'APP.BROWSE.SEARCH.TITLE',
|
||||
sortingPreferenceKey: 'search-libraries'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'view/:nodeId',
|
||||
outlet: 'viewer',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
data: {
|
||||
navigateSource: 'search'
|
||||
},
|
||||
loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'nodes/:nodeId',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => import('@alfresco/aca-content/folder-rules').then((m) => m.AcaFolderRulesModule)
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'knowledge-retrieval',
|
||||
canDeactivate: [UnsavedChangesGuard],
|
||||
canActivate: [PluginEnabledGuard],
|
||||
data: {
|
||||
plugin: 'plugins.knowledgeRetrievalEnabled'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SearchAiResultsComponent
|
||||
},
|
||||
...createViewRoutes('knowledge-retrieval')
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'saved-searches',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SavedSearchesSmartListComponent
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
component: GenericErrorComponent
|
||||
}
|
||||
],
|
||||
canActivateChild: [AuthGuard]
|
||||
}
|
||||
];
|
||||
|
@@ -28,7 +28,7 @@ import { CommonModule } from '@angular/common';
|
||||
import { Component, DestroyRef, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { combineLatest, Observable } from 'rxjs';
|
||||
import { IconComponent, TranslationService } from '@alfresco/adf-core';
|
||||
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
@@ -40,7 +40,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
selector: 'aca-bulk-actions-dropdown',
|
||||
templateUrl: './bulk-actions-dropdown.component.html',
|
||||
styleUrls: ['./bulk-actions-dropdown.component.scss'],
|
||||
imports: [CommonModule, TranslateModule, MatSelectModule, IconComponent, ReactiveFormsModule],
|
||||
imports: [CommonModule, TranslatePipe, MatSelectModule, IconComponent, ReactiveFormsModule],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class BulkActionsDropdownComponent implements OnInit {
|
||||
|
@@ -22,14 +22,14 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { LanguageMenuModule } from '@alfresco/adf-core';
|
||||
import { LanguageMenuComponent } from '@alfresco/adf-core';
|
||||
import { Component, ViewEncapsulation } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
imports: [TranslateModule, MatIconModule, MatMenuModule, LanguageMenuModule],
|
||||
imports: [TranslatePipe, MatIconModule, MatMenuModule, LanguageMenuComponent],
|
||||
selector: 'aca-language-picker',
|
||||
template: `
|
||||
<button mat-menu-item [matMenuTriggerFor]="langMenu">
|
||||
|
@@ -30,10 +30,10 @@ import { NavigateToParentFolder } from '@alfresco/aca-shared/store';
|
||||
import { ContentApiService } from '@alfresco/aca-shared';
|
||||
import { TranslationService } from '@alfresco/adf-core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule],
|
||||
imports: [CommonModule, TranslatePipe],
|
||||
selector: 'aca-location-link',
|
||||
template: `
|
||||
<a
|
||||
|
@@ -25,13 +25,13 @@
|
||||
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { SetSelectedNodesAction } from '@alfresco/aca-shared/store';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatMenuItem, MatMenuModule } from '@angular/material/menu';
|
||||
import { LogoutDirective } from '@alfresco/adf-core';
|
||||
|
||||
@Component({
|
||||
imports: [TranslateModule, MatIconModule, MatMenuModule, LogoutDirective],
|
||||
imports: [TranslatePipe, MatIconModule, MatMenuModule, LogoutDirective],
|
||||
selector: 'aca-logout',
|
||||
template: `
|
||||
<button mat-menu-item (click)="onLogoutEvent()" adf-logout>
|
||||
|
@@ -30,12 +30,12 @@ import { AppStore, getAppSelection, ShareNodeAction } from '@alfresco/aca-shared
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, MatMenuModule, MatIconModule, TranslateModule, MatButtonModule],
|
||||
imports: [CommonModule, MatMenuModule, MatIconModule, TranslatePipe, MatButtonModule],
|
||||
selector: 'app-toggle-shared',
|
||||
templateUrl: './toggle-shared.component.html',
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -26,11 +26,11 @@ import { Component, inject, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { MatMenuItem, MatMenuModule } from '@angular/material/menu';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { UserProfileService } from '@alfresco/aca-shared';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, RouterModule, MatMenuModule, TranslateModule],
|
||||
imports: [CommonModule, RouterModule, MatMenuModule, TranslatePipe],
|
||||
selector: 'app-user-info',
|
||||
templateUrl: './user-info.component.html',
|
||||
styleUrls: ['./user-info.component.scss'],
|
||||
|
@@ -27,12 +27,12 @@ import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-exten
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { IconComponent } from '@alfresco/adf-core';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatMenuModule, MatDividerModule, IconComponent, DynamicExtensionComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatMenuModule, MatDividerModule, IconComponent, DynamicExtensionComponent],
|
||||
selector: 'app-context-menu-item',
|
||||
templateUrl: './context-menu-item.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -30,7 +30,7 @@ import { CONTEXT_MENU_DIRECTION } from './direction.token';
|
||||
import { Direction } from '@angular/cdk/bidi';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { IconComponent } from '@alfresco/adf-core';
|
||||
import { ContextMenuItemComponent } from './context-menu-item.component';
|
||||
@@ -41,7 +41,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatMenuModule,
|
||||
MatDividerModule,
|
||||
ContextMenuItemComponent,
|
||||
|
@@ -27,9 +27,8 @@ import { Overlay } from '@angular/cdk/overlay';
|
||||
import { Injector } from '@angular/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { of } from 'rxjs';
|
||||
import { AuthModule, CoreModule, UserPreferencesService } from '@alfresco/adf-core';
|
||||
import { NoopTranslateModule, UserPreferencesService, NoopAuthModule } from '@alfresco/adf-core';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { ContextMenuComponent } from './context-menu.component';
|
||||
import { ContextmenuOverlayConfig } from './interfaces';
|
||||
import { ContentActionRef, ContentActionType } from '@alfresco/adf-extensions';
|
||||
@@ -63,7 +62,7 @@ describe('ContextMenuService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TranslateModule.forRoot(), CoreModule.forRoot(), ContextMenuComponent, AuthModule.forRoot()],
|
||||
imports: [NoopTranslateModule, ContextMenuComponent, NoopAuthModule],
|
||||
providers: [Overlay, { provide: Store, useValue: { select: () => of() } }, UserPreferencesService]
|
||||
});
|
||||
|
||||
|
@@ -29,7 +29,7 @@ import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { CONTEXT_MENU_DIRECTION } from './direction.token';
|
||||
import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { ContextMenuItemComponent } from './context-menu-item.component';
|
||||
import { OutsideEventDirective } from './context-menu-outside-event.directive';
|
||||
@@ -44,7 +44,7 @@ import { BaseContextMenuDirective } from './base-context-menu.directive';
|
||||
styleUrls: ['./context-menu.component.scss'],
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatMenuModule,
|
||||
MatDividerModule,
|
||||
ContextMenuItemComponent,
|
||||
|
@@ -28,7 +28,7 @@ import { AppHookService, ContentApiService, PageComponent, PageLayoutComponent,
|
||||
import { NavigateToFolder, NavigateToPreviousPage, SetSelectedNodesAction } from '@alfresco/aca-shared/store';
|
||||
import { BreadcrumbComponent, ContentService, NodesApiService, PermissionListComponent } from '@alfresco/adf-content-services';
|
||||
import { CommonModule, Location } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTabsModule } from '@angular/material/tabs';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
@@ -44,7 +44,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatIconModule,
|
||||
MatTabsModule,
|
||||
MatProgressBarModule,
|
||||
|
@@ -25,8 +25,7 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { DatatableCellBadgesComponent } from './datatable-cell-badges.component';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { AuthModule } from '@alfresco/adf-core';
|
||||
import { NoopAuthModule, NoopTranslateModule } from '@alfresco/adf-core';
|
||||
import { Actions } from '@ngrx/effects';
|
||||
import { NodeEntry } from '@alfresco/js-api';
|
||||
import { of } from 'rxjs';
|
||||
@@ -57,8 +56,8 @@ describe('DatatableCellBadgesComponent', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
AuthModule.forRoot(),
|
||||
NoopTranslateModule,
|
||||
NoopAuthModule,
|
||||
StoreModule.forRoot(
|
||||
{ app: (state) => state },
|
||||
{
|
||||
@@ -73,7 +72,8 @@ describe('DatatableCellBadgesComponent', () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
),
|
||||
DatatableCellBadgesComponent
|
||||
],
|
||||
providers: [Actions, provideHttpClient(withInterceptorsFromDi())]
|
||||
});
|
||||
|
@@ -28,7 +28,7 @@ import { DynamicExtensionComponent } from '@alfresco/adf-extensions';
|
||||
import { NodeEntry } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component, DestroyRef, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
@@ -37,7 +37,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
styleUrls: ['./datatable-cell-badges.component.scss'],
|
||||
host: { class: 'aca-datatable-cell-badges' },
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
imports: [CommonModule, TranslateModule, DynamicExtensionComponent, IconComponent]
|
||||
imports: [CommonModule, TranslatePipe, DynamicExtensionComponent, IconComponent]
|
||||
})
|
||||
export class DatatableCellBadgesComponent implements OnInit {
|
||||
@Input({ required: true }) node: NodeEntry;
|
||||
|
@@ -27,9 +27,8 @@ import { Actions } from '@ngrx/effects';
|
||||
import { StoreModule } from '@ngrx/store';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { AuthModule } from '@alfresco/adf-core';
|
||||
import { AuthModule, NoopTranslateModule } from '@alfresco/adf-core';
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { NodeEntry } from '@alfresco/js-api';
|
||||
|
||||
@@ -49,7 +48,7 @@ describe('CustomNameColumnComponent', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
NoopTranslateModule,
|
||||
CustomNameColumnComponent,
|
||||
MockDatatableCellBadgesComponent,
|
||||
AuthModule.forRoot(),
|
||||
|
@@ -29,12 +29,12 @@ import { filter } from 'rxjs/operators';
|
||||
import { NodeActionTypes } from '@alfresco/aca-shared/store';
|
||||
import { isLocked, LockedByComponent } from '@alfresco/aca-shared';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { DatatableCellBadgesComponent } from '../datatable-cell-badges/datatable-cell-badges.component';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, LockedByComponent, NodeNameTooltipPipe, DatatableCellBadgesComponent],
|
||||
imports: [CommonModule, TranslatePipe, LockedByComponent, NodeNameTooltipPipe, DatatableCellBadgesComponent],
|
||||
selector: 'aca-custom-name-column',
|
||||
templateUrl: './name-column.component.html',
|
||||
styleUrls: ['./name-column.component.scss'],
|
||||
|
@@ -45,7 +45,7 @@ import {
|
||||
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
@Component({
|
||||
@@ -56,7 +56,7 @@ import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
PaginationComponent,
|
||||
InfoDrawerComponent,
|
||||
PageLayoutComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
ToolbarComponent,
|
||||
EmptyContentComponent,
|
||||
DynamicColumnComponent,
|
||||
|
@@ -44,7 +44,7 @@ import {
|
||||
PaginationComponent
|
||||
} from '@alfresco/adf-core';
|
||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||
|
||||
@@ -57,7 +57,7 @@ import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-a
|
||||
PaginationDirective,
|
||||
InfoDrawerComponent,
|
||||
PageLayoutComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
ToolbarComponent,
|
||||
SearchAiInputContainerComponent,
|
||||
EmptyContentComponent,
|
||||
|
@@ -55,7 +55,7 @@ import {
|
||||
} from '@alfresco/adf-content-services';
|
||||
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||
@@ -65,7 +65,7 @@ import { HttpErrorResponse } from '@angular/common/http';
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
GenericErrorComponent,
|
||||
DocumentListDirective,
|
||||
ContextActionsDirective,
|
||||
|
@@ -44,7 +44,7 @@ import { from, Observable } from 'rxjs';
|
||||
import { ErrorStateMatcher, MatOptionModule } from '@angular/material/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
@@ -63,7 +63,7 @@ export class InstantErrorStateMatcher implements ErrorStateMatcher {
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatCardModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatFormFieldModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
|
@@ -25,9 +25,11 @@
|
||||
import { VersionsTabComponent } from './versions-tab.component';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { AppSettingsService } from '@alfresco/aca-shared';
|
||||
import { ContentTestingModule, VersionListDataSource, VersionManagerComponent } from '@alfresco/adf-content-services';
|
||||
import { VersionListDataSource, VersionManagerComponent } from '@alfresco/adf-content-services';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { of } from 'rxjs';
|
||||
import { NoopAuthModule, NoopTranslateModule } from '@alfresco/adf-core';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
|
||||
describe('VersionsTabComponent', () => {
|
||||
let component: VersionsTabComponent;
|
||||
@@ -36,7 +38,7 @@ describe('VersionsTabComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [VersionsTabComponent, ContentTestingModule]
|
||||
imports: [NoopTranslateModule, NoopAuthModule, NoopAnimationsModule, VersionsTabComponent]
|
||||
});
|
||||
|
||||
fixture = TestBed.createComponent(VersionsTabComponent);
|
||||
|
@@ -24,17 +24,16 @@
|
||||
|
||||
import { Component, inject, Input, OnChanges, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { VersionManagerModule } from '@alfresco/adf-content-services';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { AppSettingsService } from '@alfresco/aca-shared';
|
||||
import { VersionManagerComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, VersionManagerModule, MatIconModule, TranslateModule],
|
||||
imports: [MatIconModule, TranslatePipe, VersionManagerComponent],
|
||||
selector: 'app-versions-tab',
|
||||
template: `
|
||||
<ng-container *ngIf="isFileSelected; else empty">
|
||||
@if (isFileSelected) {
|
||||
<adf-version-manager
|
||||
[showComments]="settings.uploadAllowComments"
|
||||
[allowDownload]="settings.uploadAllowDownload"
|
||||
@@ -43,14 +42,12 @@ import { AppSettingsService } from '@alfresco/aca-shared';
|
||||
[allowVersionDelete]="settings.versionManagerAllowVersionDelete"
|
||||
[showActions]="settings.versionManagerShowActions"
|
||||
/>
|
||||
</ng-container>
|
||||
|
||||
<ng-template #empty>
|
||||
} @else {
|
||||
<div class="adf-manage-versions-empty">
|
||||
<mat-icon class="adf-manage-versions-empty-icon">face</mat-icon>
|
||||
{{ 'VERSION.SELECTION.EMPTY' | translate }}
|
||||
</div>
|
||||
</ng-template>
|
||||
}
|
||||
`,
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
|
@@ -24,12 +24,12 @@
|
||||
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { AgentsButtonComponent } from './agents-button.component';
|
||||
import { AgentService, ContentTestingModule, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { AgentService, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { Subject } from 'rxjs';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { MockStore, provideMockStore } from '@ngrx/store/testing';
|
||||
import { getAppSelection, SearchAiActionTypes } from '@alfresco/aca-shared/store';
|
||||
import { AvatarComponent, NotificationService } from '@alfresco/adf-core';
|
||||
import { AvatarComponent, NoopTranslateModule, NotificationService } from '@alfresco/adf-core';
|
||||
import { SelectionState } from '@alfresco/adf-extensions';
|
||||
import { MatMenu, MatMenuPanel, MatMenuTrigger } from '@angular/material/menu';
|
||||
import { HarnessLoader } from '@angular/cdk/testing';
|
||||
@@ -40,6 +40,7 @@ import { MatSelectionList } from '@angular/material/list';
|
||||
import { MatSnackBarRef } from '@angular/material/snack-bar';
|
||||
import { ChangeDetectorRef } from '@angular/core';
|
||||
import { Agent, KnowledgeRetrievalConfigEntry } from '@alfresco/js-api';
|
||||
import { MatIconTestingModule } from '@angular/material/icon/testing';
|
||||
|
||||
describe('AgentsButtonComponent', () => {
|
||||
let component: AgentsButtonComponent;
|
||||
@@ -174,7 +175,7 @@ describe('AgentsButtonComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [AgentsButtonComponent, ContentTestingModule],
|
||||
imports: [NoopTranslateModule, MatIconTestingModule, AgentsButtonComponent],
|
||||
providers: [provideMockStore({})]
|
||||
});
|
||||
|
||||
|
@@ -32,14 +32,14 @@ import { forkJoin, throwError } from 'rxjs';
|
||||
import { catchError, take } from 'rxjs/operators';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatListModule, MatSelectionListChange } from '@angular/material/list';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
||||
import { Agent } from '@alfresco/js-api';
|
||||
import { AgentService, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, MatMenuModule, MatListModule, TranslateModule, AvatarComponent, IconComponent, MatTooltipModule],
|
||||
imports: [CommonModule, MatMenuModule, MatListModule, TranslatePipe, AvatarComponent, IconComponent, MatTooltipModule],
|
||||
selector: 'aca-agents-button',
|
||||
templateUrl: './agents-button.component.html',
|
||||
styleUrls: ['./agents-button.component.scss'],
|
||||
|
@@ -26,7 +26,7 @@ import { SearchAiInputContainerComponent } from './search-ai-input-container.com
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { SearchAiInputComponent } from '../search-ai-input/search-ai-input.component';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { AgentService, ContentTestingModule, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { AgentService, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { MockStore, provideMockStore } from '@ngrx/store/testing';
|
||||
import { of, Subject } from 'rxjs';
|
||||
import { MatDivider } from '@angular/material/divider';
|
||||
@@ -34,8 +34,10 @@ import { DebugElement } from '@angular/core';
|
||||
import { MatIconButton } from '@angular/material/button';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { SearchAiNavigationService } from '../../../../services/search-ai-navigation.service';
|
||||
import { NavigationEnd, Router, RouterEvent } from '@angular/router';
|
||||
import { NavigationEnd, provideRouter, Router, RouterEvent } from '@angular/router';
|
||||
import { getAppSelection } from '@alfresco/aca-shared/store';
|
||||
import { NoopTranslateModule } from '@alfresco/adf-core';
|
||||
import { MatIconTestingModule } from '@angular/material/icon/testing';
|
||||
|
||||
describe('SearchAiInputContainerComponent', () => {
|
||||
const routingEvents$: Subject<RouterEvent> = new Subject();
|
||||
@@ -63,8 +65,9 @@ describe('SearchAiInputContainerComponent', () => {
|
||||
};
|
||||
|
||||
TestBed.configureTestingModule({
|
||||
imports: [SearchAiInputContainerComponent, ContentTestingModule],
|
||||
imports: [NoopTranslateModule, MatIconTestingModule, SearchAiInputContainerComponent],
|
||||
providers: [
|
||||
provideRouter([]),
|
||||
{ provide: Router, useValue: mockRouter },
|
||||
provideMockStore(),
|
||||
{ provide: SearchAiService, useValue: mockSearchAiService },
|
||||
|
@@ -29,13 +29,13 @@ import { SearchAiInputComponent } from '../search-ai-input/search-ai-input.compo
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { SearchAiNavigationService } from '../../../../services/search-ai-navigation.service';
|
||||
import { SearchAiInputState, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
imports: [SearchAiInputComponent, MatIconModule, MatDividerModule, MatButtonModule, TranslateModule, AsyncPipe],
|
||||
imports: [SearchAiInputComponent, MatIconModule, MatDividerModule, MatButtonModule, TranslatePipe, AsyncPipe],
|
||||
selector: 'aca-search-ai-input-container',
|
||||
templateUrl: './search-ai-input-container.component.html',
|
||||
styleUrls: ['./search-ai-input-container.component.scss'],
|
||||
|
@@ -27,13 +27,20 @@ import { SearchAiInputComponent } from './search-ai-input.component';
|
||||
import { MatSelect, MatSelectModule } from '@angular/material/select';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { MockStore, provideMockStore } from '@ngrx/store/testing';
|
||||
import { AgentService, ContentTestingModule, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { AgentService, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { getAppSelection, SearchByTermAiAction, ToggleAISearchInput } from '@alfresco/aca-shared/store';
|
||||
import { of, Subject } from 'rxjs';
|
||||
import { Agent, NodeEntry } from '@alfresco/js-api';
|
||||
import { FormControlDirective } from '@angular/forms';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import { AvatarComponent, IconComponent, NotificationService, UnsavedChangesDialogComponent, UserPreferencesService } from '@alfresco/adf-core';
|
||||
import {
|
||||
AvatarComponent,
|
||||
IconComponent,
|
||||
NoopTranslateModule,
|
||||
NotificationService,
|
||||
UnsavedChangesDialogComponent,
|
||||
UserPreferencesService
|
||||
} from '@alfresco/adf-core';
|
||||
import { HarnessLoader } from '@angular/cdk/testing';
|
||||
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
|
||||
import { MatSelectHarness } from '@angular/material/select/testing';
|
||||
@@ -46,6 +53,7 @@ import { MatSnackBarRef } from '@angular/material/snack-bar';
|
||||
import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { ModalAiService } from '../../../../services/modal-ai.service';
|
||||
import { MatIconTestingModule } from '@angular/material/icon/testing';
|
||||
|
||||
describe('SearchAiInputComponent', () => {
|
||||
let component: SearchAiInputComponent;
|
||||
@@ -83,7 +91,7 @@ describe('SearchAiInputComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [SearchAiInputComponent, ContentTestingModule, MatSelectModule],
|
||||
imports: [NoopTranslateModule, MatIconTestingModule, SearchAiInputComponent, MatSelectModule],
|
||||
providers: [
|
||||
provideMockStore(),
|
||||
{
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
import { Component, DestroyRef, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
@@ -56,7 +56,7 @@ const MatTooltipOptions: MatTooltipDefaultOptions = {
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
MatFormFieldModule,
|
||||
|
@@ -30,7 +30,7 @@ import { ClipboardService, EmptyContentComponent, ThumbnailService, UnsavedChang
|
||||
import { AiAnswer, Node } from '@alfresco/js-api';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { SearchAiInputContainerComponent } from '../search-ai-input-container/search-ai-input-container.component';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
||||
import { NodesApiService } from '@alfresco/adf-content-services';
|
||||
import { forkJoin, Observable, of, throwError } from 'rxjs';
|
||||
import { SelectionState } from '@alfresco/adf-extensions';
|
||||
@@ -51,7 +51,7 @@ import { searchAiMarkedOptions } from './search-ai-marked-options';
|
||||
CommonModule,
|
||||
PageLayoutComponent,
|
||||
SearchAiInputContainerComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatIconModule,
|
||||
MatButtonModule,
|
||||
MatListModule,
|
||||
|
@@ -36,26 +36,34 @@ import {
|
||||
} from '@alfresco/aca-shared';
|
||||
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { DocumentListModule } from '@alfresco/adf-content-services';
|
||||
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||
import {
|
||||
CustomEmptyContentTemplateDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent,
|
||||
EmptyContentComponent,
|
||||
PaginationComponent
|
||||
} from '@alfresco/adf-core';
|
||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
DocumentListModule,
|
||||
DocumentListDirective,
|
||||
ContextActionsDirective,
|
||||
DataTableModule,
|
||||
PaginationComponent,
|
||||
PaginationDirective,
|
||||
InfoDrawerComponent,
|
||||
PageLayoutComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
ToolbarComponent,
|
||||
EmptyContentComponent,
|
||||
DynamicColumnComponent
|
||||
DynamicColumnComponent,
|
||||
DocumentListComponent,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent,
|
||||
CustomEmptyContentTemplateDirective
|
||||
],
|
||||
templateUrl: './libraries.component.html',
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -35,28 +35,36 @@ import {
|
||||
} from '@alfresco/aca-shared';
|
||||
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { DocumentListModule } from '@alfresco/adf-content-services';
|
||||
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||
import {
|
||||
CustomEmptyContentTemplateDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent,
|
||||
EmptyContentComponent,
|
||||
PaginationComponent
|
||||
} from '@alfresco/adf-core';
|
||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
DocumentListModule,
|
||||
DocumentListDirective,
|
||||
ContextActionsDirective,
|
||||
DataTableModule,
|
||||
PaginationComponent,
|
||||
PaginationDirective,
|
||||
InfoDrawerComponent,
|
||||
PageLayoutComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
ToolbarComponent,
|
||||
SearchAiInputContainerComponent,
|
||||
EmptyContentComponent,
|
||||
DynamicColumnComponent
|
||||
DynamicColumnComponent,
|
||||
DocumentListComponent,
|
||||
CustomEmptyContentTemplateDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent
|
||||
],
|
||||
templateUrl: './recent-files.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -26,13 +26,13 @@ import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
|
||||
import { SearchSortingDefinition } from '@alfresco/adf-content-services/lib/search/models/search-sorting-definition.interface';
|
||||
import { Component, EventEmitter, OnInit, Output, ViewEncapsulation } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatMenuModule, MatIconModule, MatButtonModule],
|
||||
imports: [CommonModule, TranslatePipe, MatMenuModule, MatIconModule, MatButtonModule],
|
||||
selector: 'aca-search-action-menu',
|
||||
templateUrl: './search-action-menu.component.html',
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
import { Component, EventEmitter, Input, Output, ViewEncapsulation, ViewChild, ElementRef, OnInit, inject, DestroyRef } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
@@ -33,7 +33,7 @@ import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule, MatFormFieldModule, MatInputModule, FormsModule, ReactiveFormsModule],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, MatIconModule, MatFormFieldModule, MatInputModule, FormsModule, ReactiveFormsModule],
|
||||
selector: 'app-search-input-control',
|
||||
templateUrl: './search-input-control.component.html',
|
||||
styleUrls: ['./search-input-control.component.scss'],
|
||||
|
@@ -34,7 +34,7 @@ import { SearchInputControlComponent } from '../search-input-control/search-inpu
|
||||
import { SearchNavigationService } from '../search-navigation.service';
|
||||
import { SearchLibrariesQueryBuilderService } from '../search-libraries-results/search-libraries-query-builder.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
@@ -48,7 +48,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatMenuModule,
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
|
@@ -39,7 +39,7 @@ import {
|
||||
} from '@alfresco/aca-shared';
|
||||
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { SearchInputComponent } from '../search-input/search-input.component';
|
||||
import { CustomEmptyContentTemplateDirective, DataColumnComponent, DataColumnListComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
@@ -51,7 +51,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
SearchInputComponent,
|
||||
MatProgressBarModule,
|
||||
PaginationComponent,
|
||||
|
@@ -66,7 +66,7 @@ import {
|
||||
import { SearchSortingDefinition } from '@alfresco/adf-content-services/lib/search/models/search-sorting-definition.interface';
|
||||
import { take, takeUntil } from 'rxjs/operators';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { SearchInputComponent } from '../search-input/search-input.component';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
@@ -92,7 +92,7 @@ import { MatMenuModule } from '@angular/material/menu';
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
SearchInputComponent,
|
||||
MatProgressBarModule,
|
||||
MatDividerModule,
|
||||
|
@@ -26,7 +26,7 @@ import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testin
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { of, throwError } from 'rxjs';
|
||||
import { SavedSearchDeleteDialogComponent } from './saved-search-delete-dialog.component';
|
||||
import { ContentTestingModule, SavedSearch, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { SavedSearch, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { NotificationService } from '@alfresco/adf-core';
|
||||
import { AppTestingModule } from '../../../../../testing/app-testing.module';
|
||||
|
||||
@@ -49,7 +49,7 @@ describe('SaveSearchDeleteDialogComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule, AppTestingModule],
|
||||
imports: [AppTestingModule, SavedSearchDeleteDialogComponent],
|
||||
providers: [
|
||||
{ provide: MatDialogRef, useValue: dialogRef },
|
||||
{ provide: SavedSearchesService, useValue: { deleteSavedSearch: () => of({}) } },
|
||||
|
@@ -20,14 +20,20 @@
|
||||
required
|
||||
[formControlName]="'name'"
|
||||
adf-auto-focus/>
|
||||
<mat-error *ngIf="form.controls['name'].touched">
|
||||
<span *ngIf="form.controls['name'].errors?.required">
|
||||
@if (form.controls['name'].touched) {
|
||||
<mat-error>
|
||||
@if (form.controls['name'].errors?.required) {
|
||||
<span>
|
||||
{{ 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAME_REQUIRED_ERROR' | translate }}
|
||||
</span>
|
||||
<span *ngIf="!form.controls['name'].errors?.required && form.controls['name'].errors?.message">
|
||||
}
|
||||
@if (!form.controls['name'].errors?.required && form.controls['name'].errors?.message) {
|
||||
<span>
|
||||
{{ form.controls['name'].errors?.message | translate : { name: form.controls.name.value } }}
|
||||
</span>
|
||||
}
|
||||
</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field class="aca-saved-search-edit-dialog__form-field">
|
||||
|
@@ -26,7 +26,7 @@ import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testin
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { of, throwError } from 'rxjs';
|
||||
import { SavedSearchEditDialogComponent } from './saved-search-edit-dialog.component';
|
||||
import { ContentTestingModule, SavedSearch, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { SavedSearch, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { provideMockStore } from '@ngrx/store/testing';
|
||||
import { NotificationService } from '@alfresco/adf-core';
|
||||
import { AppTestingModule } from '../../../../../testing/app-testing.module';
|
||||
@@ -50,7 +50,7 @@ describe('SaveSearchEditDialogComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule, AppTestingModule],
|
||||
imports: [AppTestingModule, SavedSearchEditDialogComponent],
|
||||
providers: [
|
||||
{ provide: MatDialogRef, useValue: dialogRef },
|
||||
provideMockStore(),
|
||||
|
@@ -26,10 +26,10 @@ import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testin
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { of, throwError } from 'rxjs';
|
||||
import { SaveSearchDialogComponent } from './save-search-dialog.component';
|
||||
import { ContentTestingModule, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { provideMockStore } from '@ngrx/store/testing';
|
||||
import { AppTestingModule } from '../../../../testing/app-testing.module';
|
||||
import { NotificationService } from '@alfresco/adf-core';
|
||||
import { NoopTranslateModule, NotificationService } from '@alfresco/adf-core';
|
||||
|
||||
describe('SaveSearchDialogComponent', () => {
|
||||
let fixture: ComponentFixture<SaveSearchDialogComponent>;
|
||||
@@ -44,7 +44,7 @@ describe('SaveSearchDialogComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule, AppTestingModule],
|
||||
imports: [NoopTranslateModule, AppTestingModule],
|
||||
providers: [
|
||||
{ provide: MatDialogRef, useValue: dialogRef },
|
||||
provideMockStore(),
|
||||
|
@@ -25,7 +25,7 @@
|
||||
import { Component, Inject, ViewEncapsulation } from '@angular/core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
@@ -43,7 +43,7 @@ import { SavedSearchForm } from './saved-search-form.interface';
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
MatMenuModule,
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
|
@@ -24,16 +24,17 @@
|
||||
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { UniqueSearchNameValidator } from './unique-search-name-validator';
|
||||
import { ContentTestingModule, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { of } from 'rxjs';
|
||||
import { FormControl } from '@angular/forms';
|
||||
import { NoopTranslateModule } from '@alfresco/adf-core';
|
||||
|
||||
describe('UniqueSearchNameValidator', () => {
|
||||
let validator: UniqueSearchNameValidator;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule]
|
||||
imports: [NoopTranslateModule]
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { CORE_PIPES, CoreTestingModule } from '@alfresco/adf-core';
|
||||
import { NoopAuthModule, NoopTranslateModule } from '@alfresco/adf-core';
|
||||
import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { SavedSearchesService, SavedSearch } from '@alfresco/adf-content-services';
|
||||
@@ -56,12 +56,11 @@ describe('SavedSearchesSmartListComponent', () => {
|
||||
infoDrawerOpened: false
|
||||
};
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreTestingModule, SavedSearchesSmartListComponent],
|
||||
imports: [NoopTranslateModule, NoopAuthModule, SavedSearchesSmartListComponent],
|
||||
providers: [
|
||||
provideMockStore({
|
||||
initialState: { app: appState }
|
||||
}),
|
||||
...CORE_PIPES,
|
||||
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
||||
{ provide: SavedSearchesService, useValue: { savedSearches$: fakeSavedSearches$ } },
|
||||
{ provide: AppService, useValue: appServiceMock }
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
import { Component, inject, ViewEncapsulation } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { SavedSearchesListUiComponent } from '../ui-list/saved-searches-list.ui-component';
|
||||
import { PageComponent, PageLayoutComponent } from '@alfresco/aca-shared';
|
||||
import { SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
@@ -33,7 +33,7 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
|
||||
@Component({
|
||||
selector: 'aca-saved-searches-smart-list',
|
||||
imports: [CommonModule, TranslateModule, SavedSearchesListUiComponent, PageLayoutComponent, EmptyContentComponent, MatProgressSpinnerModule],
|
||||
imports: [CommonModule, TranslatePipe, SavedSearchesListUiComponent, PageLayoutComponent, EmptyContentComponent, MatProgressSpinnerModule],
|
||||
templateUrl: './saved-searches-smart-list.component.html',
|
||||
styleUrls: ['./saved-searches-smart-list.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { CoreTestingModule, DataCellEvent, DataTableComponent, NotificationService } from '@alfresco/adf-core';
|
||||
import { DataCellEvent, DataTableComponent, NoopTranslateModule, NotificationService } from '@alfresco/adf-core';
|
||||
import { SavedSearchesListUiComponent } from './saved-searches-list.ui-component';
|
||||
import { SavedSearchesListUiService } from '../saved-searches-list-ui.service';
|
||||
import { By } from '@angular/platform-browser';
|
||||
@@ -42,7 +42,7 @@ describe('SavedSearchesListUiComponent ', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [CoreTestingModule, SavedSearchesListUiComponent],
|
||||
imports: [NoopTranslateModule, SavedSearchesListUiComponent],
|
||||
providers: [SavedSearchesListUiService]
|
||||
});
|
||||
|
||||
|
@@ -36,28 +36,36 @@ import {
|
||||
} from '@alfresco/aca-shared';
|
||||
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { DocumentListModule } from '@alfresco/adf-content-services';
|
||||
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||
import {
|
||||
CustomEmptyContentTemplateDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent,
|
||||
EmptyContentComponent,
|
||||
PaginationComponent
|
||||
} from '@alfresco/adf-core';
|
||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
DocumentListModule,
|
||||
DocumentListDirective,
|
||||
ContextActionsDirective,
|
||||
DataTableModule,
|
||||
PaginationComponent,
|
||||
InfoDrawerComponent,
|
||||
PaginationDirective,
|
||||
PageLayoutComponent,
|
||||
TranslateModule,
|
||||
TranslatePipe,
|
||||
ToolbarComponent,
|
||||
SearchAiInputContainerComponent,
|
||||
EmptyContentComponent,
|
||||
DynamicColumnComponent
|
||||
DynamicColumnComponent,
|
||||
DocumentListComponent,
|
||||
CustomEmptyContentTemplateDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent
|
||||
],
|
||||
templateUrl: './shared-files.component.html',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -26,8 +26,8 @@ import { ChangeDetectorRef, Component, Input, OnInit, ViewEncapsulation } from '
|
||||
import { OverlayContainer } from '@angular/cdk/overlay';
|
||||
import { NavBarLinkRef } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { IconModule } from '@alfresco/adf-core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { IconComponent } from '@alfresco/adf-core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { ActiveLinkDirective } from '../directives/active-link.directive';
|
||||
@@ -35,7 +35,7 @@ import { ActionDirective } from '../directives/action.directive';
|
||||
import { MenuPanelDirective } from '../directives/menu-panel.directive';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, IconModule, MatMenuModule, MatButtonModule, ActiveLinkDirective, ActionDirective, MenuPanelDirective],
|
||||
imports: [CommonModule, TranslatePipe, IconComponent, MatMenuModule, MatButtonModule, ActiveLinkDirective, ActionDirective, MenuPanelDirective],
|
||||
selector: 'app-button-menu',
|
||||
templateUrl: './button-menu.component.html',
|
||||
host: { class: 'app-button-menu' },
|
||||
|
@@ -25,15 +25,15 @@
|
||||
import { ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';
|
||||
import { NavBarLinkRef } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { IconModule } from '@alfresco/adf-core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { IconComponent } from '@alfresco/adf-core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { ActiveLinkDirective } from '../directives/active-link.directive';
|
||||
import { ActionDirective } from '../directives/action.directive';
|
||||
import { MatExpansionModule } from '@angular/material/expansion';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, IconModule, MatButtonModule, ActiveLinkDirective, ActionDirective, MatExpansionModule],
|
||||
imports: [CommonModule, TranslatePipe, IconComponent, MatButtonModule, ActiveLinkDirective, ActionDirective, MatExpansionModule],
|
||||
selector: 'app-expand-menu',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
templateUrl: './expand-menu.component.html',
|
||||
|
@@ -26,12 +26,12 @@ import { Component, DestroyRef, EventEmitter, inject, OnInit, Output, ViewEncaps
|
||||
import { ContentActionRef } from '@alfresco/adf-extensions';
|
||||
import { AppExtensionService, AppSettingsService, ToolbarComponent } from '@alfresco/aca-shared';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, RouterModule, ToolbarComponent],
|
||||
imports: [CommonModule, TranslatePipe, RouterModule, ToolbarComponent],
|
||||
selector: 'app-sidenav-header',
|
||||
templateUrl: `./sidenav-header.component.html`,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { MatMenuTrigger } from '@angular/material/menu';
|
||||
import { CoreTestingModule, UnitTestingUtils } from '@alfresco/adf-core';
|
||||
import { NoopTranslateModule, UnitTestingUtils } from '@alfresco/adf-core';
|
||||
import { UserMenuComponent } from './user-menu.component';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
|
||||
@@ -33,14 +33,11 @@ describe('UserMenuComponent', () => {
|
||||
let fixture: ComponentFixture<UserMenuComponent>;
|
||||
let testingUtils: UnitTestingUtils;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [CoreTestingModule, UserMenuComponent],
|
||||
providers: [{ provide: AppExtensionService, useValue: { runActionById() {} } }]
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [NoopTranslateModule, UserMenuComponent],
|
||||
providers: [{ provide: AppExtensionService, useValue: { runActionById() {} } }]
|
||||
});
|
||||
fixture = TestBed.createComponent(UserMenuComponent);
|
||||
testingUtils = new UnitTestingUtils(fixture.debugElement);
|
||||
|
||||
|
@@ -26,12 +26,12 @@ import { AfterViewInit, Component, inject, Input, OnInit, QueryList, ViewChild,
|
||||
import { ContentActionRef } from '@alfresco/adf-extensions';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatMenu, MatMenuItem, MatMenuModule } from '@angular/material/menu';
|
||||
import { ToolbarMenuItemComponent, UserProfileService } from '@alfresco/aca-shared';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, MatMenuModule, ToolbarMenuItemComponent],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, MatMenuModule, ToolbarMenuItemComponent],
|
||||
selector: 'aca-user-menu',
|
||||
templateUrl: './user-menu.component.html',
|
||||
styleUrls: ['./user-menu.component.scss'],
|
||||
|
@@ -30,12 +30,12 @@ import { AppExtensionService, isLocked } from '@alfresco/aca-shared';
|
||||
import { NotificationService } from '@alfresco/adf-core';
|
||||
import { AlfrescoApiService } from '@alfresco/adf-content-services';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatMenuModule, MatIconModule],
|
||||
imports: [CommonModule, TranslatePipe, MatMenuModule, MatIconModule],
|
||||
selector: 'app-toggle-edit-offline',
|
||||
template: `
|
||||
<button mat-menu-item [attr.title]="nodeTitle | translate" (click)="onClick()">
|
||||
|
@@ -30,14 +30,14 @@ import { SelectionState } from '@alfresco/adf-extensions';
|
||||
import { distinctUntilChanged } from 'rxjs/operators';
|
||||
import { Router } from '@angular/router';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { LibraryFavoriteDirective } from '@alfresco/adf-content-services';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatIconModule, MatMenuModule, LibraryFavoriteDirective],
|
||||
imports: [CommonModule, TranslatePipe, MatIconModule, MatMenuModule, LibraryFavoriteDirective],
|
||||
selector: 'app-toggle-favorite-library',
|
||||
template: `
|
||||
<button
|
||||
|
@@ -31,11 +31,11 @@ import { Router } from '@angular/router';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { DocumentListService, NodeFavoriteDirective } from '@alfresco/adf-content-services';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatIconModule, MatMenuModule, NodeFavoriteDirective],
|
||||
imports: [CommonModule, TranslatePipe, MatIconModule, MatMenuModule, NodeFavoriteDirective],
|
||||
selector: 'app-toggle-favorite',
|
||||
template: `
|
||||
<button mat-menu-item #favorites="adfFavorite" (toggle)="onToggleEvent()" [adf-node-favorite]="(selection$ | async).nodes">
|
||||
|
@@ -28,11 +28,11 @@ import { Store } from '@ngrx/store';
|
||||
import { isInfoDrawerOpened, ToggleInfoDrawerAction } from '@alfresco/aca-shared/store';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, MatIconModule],
|
||||
selector: 'app-toggle-info-drawer',
|
||||
template: `
|
||||
<button
|
||||
|
@@ -31,12 +31,12 @@ import { Observable } from 'rxjs';
|
||||
import { LibraryMembershipDirective, LibraryMembershipErrorEvent, LibraryMembershipToggleEvent } from '@alfresco/adf-content-services';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { NotificationService } from '@alfresco/adf-core';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule, LibraryMembershipDirective],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, MatIconModule, LibraryMembershipDirective],
|
||||
selector: 'app-toggle-join-library-button',
|
||||
template: `
|
||||
<button
|
||||
|
@@ -25,13 +25,13 @@
|
||||
import { Component, ViewEncapsulation } from '@angular/core';
|
||||
import { ToggleJoinLibraryButtonComponent } from './toggle-join-library-button.component';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { LibraryMembershipDirective } from '@alfresco/adf-content-services';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatIconModule, MatMenuModule, LibraryMembershipDirective],
|
||||
imports: [CommonModule, TranslatePipe, MatIconModule, MatMenuModule, LibraryMembershipDirective],
|
||||
selector: 'app-toggle-join-library-menu',
|
||||
template: `
|
||||
<button
|
||||
|
@@ -30,14 +30,14 @@ import { take } from 'rxjs/operators';
|
||||
import { SharedLinkEntry } from '@alfresco/js-api';
|
||||
import { AppSettingsService, AutoDownloadService } from '@alfresco/aca-shared';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule, MatMenuModule, MatDialogModule],
|
||||
imports: [CommonModule, TranslatePipe, MatButtonModule, MatIconModule, MatMenuModule, MatDialogModule],
|
||||
selector: 'app-view-node',
|
||||
template: `
|
||||
<button
|
||||
|
@@ -33,25 +33,33 @@ import {
|
||||
UserProfileService
|
||||
} from '@alfresco/aca-shared';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { DocumentListModule } from '@alfresco/adf-content-services';
|
||||
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import {
|
||||
CustomEmptyContentTemplateDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent,
|
||||
EmptyContentComponent,
|
||||
PaginationComponent
|
||||
} from '@alfresco/adf-core';
|
||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
@Component({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
DocumentListModule,
|
||||
TranslatePipe,
|
||||
PaginationComponent,
|
||||
DataTableModule,
|
||||
DocumentListDirective,
|
||||
ContextActionsDirective,
|
||||
PaginationDirective,
|
||||
PageLayoutComponent,
|
||||
ToolbarComponent,
|
||||
EmptyContentComponent,
|
||||
DynamicColumnComponent
|
||||
DynamicColumnComponent,
|
||||
DocumentListComponent,
|
||||
CustomEmptyContentTemplateDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent
|
||||
],
|
||||
templateUrl: './trashcan.component.html',
|
||||
encapsulation: ViewEncapsulation.None
|
||||
|
@@ -32,13 +32,13 @@ import { AppService } from '@alfresco/aca-shared';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, ReactiveFormsModule, MatButtonModule, MatIconModule, MatDividerModule, MatFormFieldModule],
|
||||
imports: [CommonModule, TranslatePipe, ReactiveFormsModule, MatButtonModule, MatIconModule, MatDividerModule, MatFormFieldModule],
|
||||
selector: 'app-view-profile',
|
||||
templateUrl: './view-profile.component.html',
|
||||
styleUrls: ['./view-profile.component.scss'],
|
||||
|
@@ -27,7 +27,7 @@ import { CommonModule } from '@angular/common';
|
||||
import { DIALOG_COMPONENT_DATA, IconComponent, LocalizedDatePipe, TimeAgoPipe } from '@alfresco/adf-core';
|
||||
import { Node, SizeDetails } from '@alfresco/js-api';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
||||
import { ContentService, NodesApiService } from '@alfresco/adf-content-services';
|
||||
import { catchError, concatMap, delay, expand, first, switchMap } from 'rxjs/operators';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
@@ -47,7 +47,7 @@ class FolderDetails {
|
||||
|
||||
@Component({
|
||||
selector: 'app-folder-info',
|
||||
imports: [CommonModule, MatDividerModule, TimeAgoPipe, TranslateModule, LocalizedDatePipe, IconComponent],
|
||||
imports: [CommonModule, MatDividerModule, TimeAgoPipe, TranslatePipe, LocalizedDatePipe, IconComponent],
|
||||
templateUrl: './folder-information.component.html',
|
||||
styleUrls: ['./folder-information.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
@@ -30,13 +30,13 @@ import { Store } from '@ngrx/store';
|
||||
import { AppStore, CreateFromTemplate } from '@alfresco/aca-shared/store';
|
||||
import { TranslationService } from '@alfresco/adf-core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@Component({
|
||||
imports: [CommonModule, TranslateModule, MatDialogModule, ReactiveFormsModule, MatFormFieldModule, MatInputModule, MatButtonModule],
|
||||
imports: [CommonModule, TranslatePipe, MatDialogModule, ReactiveFormsModule, MatFormFieldModule, MatInputModule, MatButtonModule],
|
||||
templateUrl: './create-from-template.dialog.html',
|
||||
styleUrls: ['./create-from-template.dialog.scss'],
|
||||
selector: 'app-create-from-template-dialog',
|
||||
|
@@ -24,11 +24,10 @@
|
||||
|
||||
import { ModalAiService } from './modal-ai.service';
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { ContentTestingModule } from '@alfresco/adf-content-services';
|
||||
import { MatDialog, MatDialogConfig, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
||||
import { ActivatedRoute, Params } from '@angular/router';
|
||||
import { of, Subject } from 'rxjs';
|
||||
import { StorageService, UnsavedChangesDialogComponent } from '@alfresco/adf-core';
|
||||
import { NoopTranslateModule, StorageService, UnsavedChangesDialogComponent } from '@alfresco/adf-core';
|
||||
|
||||
describe('ModalAiService', () => {
|
||||
const mockQueryParams = new Subject<Params>();
|
||||
@@ -39,7 +38,7 @@ describe('ModalAiService', () => {
|
||||
|
||||
const setupBeforeEach = (query: string, storageGetItem: string) => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule, MatDialogModule],
|
||||
imports: [NoopTranslateModule, MatDialogModule],
|
||||
providers: [
|
||||
{
|
||||
provide: StorageService,
|
||||
|
@@ -25,7 +25,8 @@
|
||||
import { SearchAiNavigationService } from './search-ai-navigation.service';
|
||||
import { Params, Router } from '@angular/router';
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { ContentTestingModule, SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { SearchAiService } from '@alfresco/adf-content-services';
|
||||
import { NoopTranslateModule } from '@alfresco/adf-core';
|
||||
|
||||
describe('SearchAiNavigationService', () => {
|
||||
let service: SearchAiNavigationService;
|
||||
@@ -36,7 +37,7 @@ describe('SearchAiNavigationService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule]
|
||||
imports: [NoopTranslateModule]
|
||||
});
|
||||
service = TestBed.inject(SearchAiNavigationService);
|
||||
router = TestBed.inject(Router);
|
||||
|
@@ -23,9 +23,8 @@
|
||||
*/
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { AuthenticationService, PageTitleService, TranslationMock, TranslationService } from '@alfresco/adf-core';
|
||||
import { AuthenticationService, NoopTranslateModule, PageTitleService } from '@alfresco/adf-core';
|
||||
import { AlfrescoApiService, AlfrescoApiServiceMock, DiscoveryApiService, SearchQueryBuilderService } from '@alfresco/adf-content-services';
|
||||
import { RepositoryInfo, VersionInfo } from '@alfresco/js-api';
|
||||
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||
@@ -42,11 +41,11 @@ import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatIconTestingModule } from '@angular/material/icon/testing';
|
||||
|
||||
@NgModule({
|
||||
exports: [RouterTestingModule, TranslateModule],
|
||||
exports: [RouterTestingModule],
|
||||
imports: [
|
||||
NoopAnimationsModule,
|
||||
NoopTranslateModule,
|
||||
RouterTestingModule,
|
||||
TranslateModule.forRoot(),
|
||||
StoreModule.forRoot(
|
||||
{ app: appReducer },
|
||||
{
|
||||
@@ -65,7 +64,6 @@ import { MatIconTestingModule } from '@angular/material/icon/testing';
|
||||
providers: [
|
||||
SearchQueryBuilderService,
|
||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||
{ provide: TranslationService, useClass: TranslationMock },
|
||||
{ provide: DocumentBasePageService, useExisting: ContentManagementService },
|
||||
{
|
||||
provide: DiscoveryApiService,
|
||||
|
Reference in New Issue
Block a user