mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
migrate cloud components
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { GroupCloudModule } from '../group-cloud.module';
|
|
||||||
import { GroupCloudComponent } from './group-cloud.component';
|
import { GroupCloudComponent } from './group-cloud.component';
|
||||||
import { CoreTestingModule } from '@alfresco/adf-core';
|
import { CoreTestingModule } from '@alfresco/adf-core';
|
||||||
import { DebugElement, SimpleChange } from '@angular/core';
|
import { DebugElement, SimpleChange } from '@angular/core';
|
||||||
@@ -72,7 +71,7 @@ describe('GroupCloudComponent', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [CoreTestingModule, GroupCloudModule, GroupCloudComponent]
|
imports: [CoreTestingModule, GroupCloudComponent]
|
||||||
});
|
});
|
||||||
fixture = TestBed.createComponent(GroupCloudComponent);
|
fixture = TestBed.createComponent(GroupCloudComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
|
@@ -48,6 +48,7 @@ import { MatChipsModule } from '@angular/material/chips';
|
|||||||
import { MatInputModule } from '@angular/material/input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { InitialGroupNamePipe } from '../pipe/group-initial.pipe';
|
import { InitialGroupNamePipe } from '../pipe/group-initial.pipe';
|
||||||
|
import { IdentityGroupService } from '../services/identity-group.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-cloud-group',
|
selector: 'adf-cloud-group',
|
||||||
@@ -66,6 +67,7 @@ import { InitialGroupNamePipe } from '../pipe/group-initial.pipe';
|
|||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
InitialGroupNamePipe
|
InitialGroupNamePipe
|
||||||
],
|
],
|
||||||
|
providers: [{ provide: IDENTITY_GROUP_SERVICE_TOKEN, useExisting: IdentityGroupService }],
|
||||||
templateUrl: './group-cloud.component.html',
|
templateUrl: './group-cloud.component.html',
|
||||||
styleUrls: ['./group-cloud.component.scss'],
|
styleUrls: ['./group-cloud.component.scss'],
|
||||||
animations: [
|
animations: [
|
||||||
|
@@ -17,13 +17,10 @@
|
|||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { GroupCloudComponent } from './components/group-cloud.component';
|
import { GroupCloudComponent } from './components/group-cloud.component';
|
||||||
import { InitialGroupNamePipe } from './pipe/group-initial.pipe';
|
|
||||||
import { IDENTITY_GROUP_SERVICE_TOKEN } from './services/identity-group-service.token';
|
|
||||||
import { IdentityGroupService } from './services/identity-group.service';
|
|
||||||
|
|
||||||
|
/** @deprecated use GroupCloudComponent instead */
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [GroupCloudComponent, InitialGroupNamePipe],
|
imports: [GroupCloudComponent],
|
||||||
providers: [{ provide: IDENTITY_GROUP_SERVICE_TOKEN, useExisting: IdentityGroupService }],
|
exports: [GroupCloudComponent]
|
||||||
exports: [GroupCloudComponent, InitialGroupNamePipe]
|
|
||||||
})
|
})
|
||||||
export class GroupCloudModule {}
|
export class GroupCloudModule {}
|
||||||
|
Reference in New Issue
Block a user