mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Pre-Angular upgrade fixes (#5709)
* code fixes * code fixes * more code fixes * even more fixes * add missing typescript for cli * rollback info drawer test changes * use npx for cli commands * restore attach providers
This commit is contained in:
@@ -60,7 +60,6 @@ describe('Select app dialog', () => {
|
||||
imports: [ProcessTestingModule],
|
||||
declarations: [DialogSelectAppTestComponent],
|
||||
providers: [
|
||||
AppsProcessService,
|
||||
{
|
||||
provide: OverlayContainer,
|
||||
useFactory: () => {
|
||||
|
@@ -17,9 +17,9 @@
|
||||
|
||||
import { Component, Inject, ViewEncapsulation, ViewChild } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA } from '@angular/material';
|
||||
import { ExternalAlfrescoApiService, AlfrescoApiService, AuthenticationService, LoginDialogPanelComponent, SitesService, SearchService, TranslationService } from '@alfresco/adf-core';
|
||||
import { DocumentListService, ContentNodeSelectorService } from '@alfresco/adf-content-services';
|
||||
import { ExternalAlfrescoApiService, AlfrescoApiService, LoginDialogPanelComponent, SearchService, TranslationService, AuthenticationService, SitesService } from '@alfresco/adf-core';
|
||||
import { AttachFileWidgetDialogComponentData } from './attach-file-widget-dialog-component.interface';
|
||||
import { DocumentListService, ContentNodeSelectorService } from '@alfresco/adf-content-services';
|
||||
import { Node } from '@alfresco/js-api';
|
||||
|
||||
@Component({
|
||||
@@ -27,12 +27,13 @@ import { Node } from '@alfresco/js-api';
|
||||
templateUrl: './attach-file-widget-dialog.component.html',
|
||||
styleUrls: ['./attach-file-widget-dialog.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
providers: [ AuthenticationService,
|
||||
DocumentListService,
|
||||
SitesService,
|
||||
ContentNodeSelectorService,
|
||||
SearchService,
|
||||
{ provide: AlfrescoApiService, useClass: ExternalAlfrescoApiService} ]
|
||||
providers: [
|
||||
AuthenticationService,
|
||||
DocumentListService,
|
||||
SitesService,
|
||||
ContentNodeSelectorService,
|
||||
SearchService,
|
||||
{ provide: AlfrescoApiService, useClass: ExternalAlfrescoApiService} ]
|
||||
})
|
||||
export class AttachFileWidgetDialogComponent {
|
||||
|
||||
|
@@ -76,8 +76,7 @@ describe('ProcessAuditDirective', () => {
|
||||
declarations: [
|
||||
BasicButtonComponent,
|
||||
ProcessAuditDirective
|
||||
],
|
||||
providers: [ProcessService]
|
||||
]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
@@ -41,7 +41,6 @@ describe('ProcessFiltersComponent', () => {
|
||||
CoreModule.forRoot()
|
||||
],
|
||||
declarations: [ProcessFiltersComponent],
|
||||
providers: [AppsProcessService, ProcessFilterService],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
});
|
||||
|
||||
|
@@ -43,9 +43,6 @@ describe('ProcessInstanceDetailsComponent', () => {
|
||||
FormModule,
|
||||
TaskListModule
|
||||
],
|
||||
providers: [
|
||||
ProcessService
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
});
|
||||
|
||||
|
@@ -76,8 +76,7 @@ describe('TaskAuditDirective', () => {
|
||||
|
||||
setupTestBed({
|
||||
imports: [CoreModule.forRoot()],
|
||||
declarations: [BasicButtonComponent, TaskAuditDirective],
|
||||
providers: [TaskListService]
|
||||
declarations: [BasicButtonComponent, TaskAuditDirective]
|
||||
});
|
||||
|
||||
beforeEach(async(() => {
|
||||
|
Reference in New Issue
Block a user