tree shaking support for services (#3906)

[ADF-3697] tree shaking support for services
This commit is contained in:
Denys Vuika
2018-10-22 11:09:43 +01:00
committed by Eugenio Romano
parent 368f949fc4
commit fee35c98df
77 changed files with 222 additions and 246 deletions

View File

@@ -24,7 +24,9 @@ import { ExternalContent } from '../components/widgets/core/external-content';
import { ExternalContentLink } from '../components/widgets/core/external-content-link';
import { map, catchError } from 'rxjs/operators';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class ActivitiContentService {
static UNKNOWN_ERROR_MESSAGE: string = 'Unknown error';

View File

@@ -22,7 +22,9 @@ import { Observable, from } from 'rxjs';
import { FormModel } from '../components/widgets/core/form.model';
import { map, catchError } from 'rxjs/operators';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class EcmModelService {
public static MODEL_NAMESPACE: string = 'activitiForms';

View File

@@ -40,7 +40,9 @@ import {
DateTimeWidgetComponent
} from './../components/widgets/index';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class FormRenderingService extends DynamicComponentMapper {
protected defaultValue: Type<{}> = UnknownWidgetComponent;

View File

@@ -31,7 +31,9 @@ import {
import { EcmModelService } from './ecm-model.service';
import { map, catchError, switchMap, combineAll, defaultIfEmpty } from 'rxjs/operators';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class FormService {
static UNKNOWN_ERROR_MESSAGE: string = 'Unknown error';

View File

@@ -21,7 +21,9 @@ import { Observable, from } from 'rxjs';
import { NodeMetadata } from '../models/node-metadata.model';
import { map } from 'rxjs/operators';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class NodeService {
constructor(private apiService: AlfrescoApiService) {

View File

@@ -22,7 +22,9 @@ import { RelatedContentRepresentation } from 'alfresco-js-api';
import { Observable, from, throwError } from 'rxjs';
import { catchError } from 'rxjs/operators';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class ProcessContentService {
static UNKNOWN_ERROR_MESSAGE: string = 'Unknown error';

View File

@@ -25,7 +25,9 @@ import { TaskProcessVariableModel } from '../models/task-process-variable.model'
import { WidgetVisibilityModel } from '../models/widget-visibility.model';
import { map, catchError } from 'rxjs/operators';
@Injectable()
@Injectable({
providedIn: 'root'
})
export class WidgetVisibilityService {
private processVarList: TaskProcessVariableModel[];