From affe5f293edc8b7eb2f9ef3dfc28682261f598cc Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 12 Jul 2024 11:08:27 -0400 Subject: [PATCH] Remove MaterialModule from imports --- docs/tutorials/how-to-create-your-first-extension.md | 4 ++-- .../document-base-page/document-base-page.spec.ts | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/how-to-create-your-first-extension.md b/docs/tutorials/how-to-create-your-first-extension.md index 19e8789b78..8b48bba8d9 100644 --- a/docs/tutorials/how-to-create-your-first-extension.md +++ b/docs/tutorials/how-to-create-your-first-extension.md @@ -44,7 +44,7 @@ import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions'; -import { CoreModule, MaterialModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core'; +import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core'; import { MyExtensionComponent } from './my-extension.component'; import { MyExtensionService } from './my-extension.service'; @@ -54,7 +54,7 @@ export function components() { } @NgModule({ - imports: [CoreModule, BrowserModule, FormsModule, MaterialModule], + imports: [CoreModule, BrowserModule, FormsModule], providers: [ { provide: TRANSLATION_PROVIDER, diff --git a/projects/aca-shared/src/lib/components/document-base-page/document-base-page.spec.ts b/projects/aca-shared/src/lib/components/document-base-page/document-base-page.spec.ts index bf5742704b..20acd996b1 100644 --- a/projects/aca-shared/src/lib/components/document-base-page/document-base-page.spec.ts +++ b/projects/aca-shared/src/lib/components/document-base-page/document-base-page.spec.ts @@ -32,11 +32,12 @@ import { Store } from '@ngrx/store'; import { Component } from '@angular/core'; import { DiscoveryApiService, DocumentListComponent } from '@alfresco/adf-content-services'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; -import { AuthModule, MaterialModule } from '@alfresco/adf-core'; +import { AuthModule } from '@alfresco/adf-core'; import { HttpClientModule } from '@angular/common/http'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { Subscription } from 'rxjs'; +import { MatDialogModule } from '@angular/material/dialog'; @Component({ selector: 'aca-test', @@ -61,7 +62,7 @@ describe('PageComponent', () => { beforeEach(() => { TestBed.configureTestingModule({ - imports: [LibTestingModule, MaterialModule, AuthModule.forRoot()], + imports: [LibTestingModule, AuthModule.forRoot(), MatDialogModule], declarations: [TestComponent], providers: [ { provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock }, @@ -211,7 +212,7 @@ describe('Info Drawer state', () => { }; TestBed.configureTestingModule({ - imports: [NoopAnimationsModule, HttpClientModule, RouterTestingModule, MaterialModule, AuthModule.forRoot()], + imports: [NoopAnimationsModule, HttpClientModule, RouterTestingModule, AuthModule.forRoot(), MatDialogModule], declarations: [TestComponent], providers: [ { provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },