diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts index e0a268a431..c992b378a8 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts @@ -28,18 +28,17 @@ describe('ActivitiForm', () => { let componentHandler: any; let formService: FormService; let formComponent: ActivitiForm; - let visibilityService: WidgetVisibilityService; + let visibilityService: WidgetVisibilityService; let nodeService: NodeService; beforeEach(() => { componentHandler = jasmine.createSpyObj('componentHandler', [ 'upgradeAllRegistered' ]); - visibilityService = jasmine.createSpyObj('WidgetVisibilityService', [ - 'refreshVisibility', 'getTaskProcessVariable' - ]); window['componentHandler'] = componentHandler; + visibilityService = new WidgetVisibilityService(null); + spyOn(visibilityService, 'refreshVisibility').and.stub(); formService = new FormService(null, null); nodeService = new NodeService(null, null); formComponent = new ActivitiForm(formService, visibilityService, null, nodeService); @@ -139,6 +138,7 @@ describe('ActivitiForm', () => { it('should get form by task id on load', () => { spyOn(formComponent, 'getFormByTaskId').and.stub(); + spyOn(visibilityService, 'getTaskProcessVariable').and.returnValue(Observable.of({})); const taskId = '123'; formComponent.taskId = taskId; @@ -218,7 +218,7 @@ describe('ActivitiForm', () => { spyOn(formComponent, 'getFormDefinitionByFormId').and.stub(); spyOn(formComponent, 'getFormDefinitionByFormName').and.stub(); - formComponent.ngOnChanges({ 'tag': new SimpleChange(null, 'hello world')}); + formComponent.ngOnChanges({ 'tag': new SimpleChange(null, 'hello world') }); expect(formComponent.getFormByTaskId).not.toHaveBeenCalled(); expect(formComponent.getFormDefinitionByFormId).not.toHaveBeenCalled(); @@ -521,10 +521,10 @@ describe('ActivitiForm', () => { it('should complete form form and raise corresponding event', () => { spyOn(formService, 'completeTaskForm').and.callFake(() => { - return Observable.create(observer => { - observer.next(); - observer.complete(); - }); + return Observable.create(observer => { + observer.next(); + observer.complete(); + }); }); const outcome = 'complete'; @@ -572,17 +572,17 @@ describe('ActivitiForm', () => { }); /* - it('should update the visibility when the container raise the change event', (valueChanged) => { - spyOn(formComponent, 'checkVisibility').and.callThrough(); - let widget = new ContainerWidget(); - let fakeForm = new FormModel(); - let fakeField = new FormFieldModel(fakeForm, {id: 'fakeField', value: 'fakeValue'}); - widget.formValueChanged.subscribe(field => { valueChanged(); }); - widget.fieldChanged(fakeField); + it('should update the visibility when the container raise the change event', (valueChanged) => { + spyOn(formComponent, 'checkVisibility').and.callThrough(); + let widget = new ContainerWidget(); + let fakeForm = new FormModel(); + let fakeField = new FormFieldModel(fakeForm, {id: 'fakeField', value: 'fakeValue'}); + widget.formValueChanged.subscribe(field => { valueChanged(); }); + widget.fieldChanged(fakeField); - expect(formComponent.checkVisibility).toHaveBeenCalledWith(fakeField); - }); - */ + expect(formComponent.checkVisibility).toHaveBeenCalledWith(fakeField); + }); + */ it('should prevent default outcome execution', () => { diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts index de4e05d199..139104cc00 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts +++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.ts @@ -280,7 +280,7 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges { loadForm() { if (this.taskId) { this.getFormByTaskId(this.taskId); - this.visibilityService.getTaskProcessVariable(this.taskId); + this.visibilityService.getTaskProcessVariable(this.taskId).subscribe(); return; } @@ -411,7 +411,7 @@ export class ActivitiForm implements OnInit, AfterViewChecked, OnChanges { */ getFormDefinitionOutcomes(form: FormModel): FormOutcomeModel[] { return [ - new FormOutcomeModel(form, {id: '$custom', name: FormOutcomeModel.SAVE_ACTION, isSystem: true}) + new FormOutcomeModel(form, { id: '$custom', name: FormOutcomeModel.SAVE_ACTION, isSystem: true }) ]; } diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.spec.ts index 9bf151601e..19f98d5ffa 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/display-value/display-value.widget.spec.ts @@ -38,7 +38,7 @@ describe('DisplayValueWidget', () => { beforeEach(() => { settingsService = new AlfrescoSettingsService(); formService = new FormService(null, null); - visibilityService = new WidgetVisibilityService(null, null, null); + visibilityService = new WidgetVisibilityService(null); widget = new DisplayValueWidget(formService, visibilityService, settingsService); }); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts index 97f58b2a03..1d263dff8e 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dropdown/dropdown.widget.spec.ts @@ -34,7 +34,7 @@ describe('DropdownWidget', () => { beforeEach(() => { formService = new FormService(null, null); - visibilityService = new WidgetVisibilityService(null, null, null); + visibilityService = new WidgetVisibilityService(null); widget = new DropdownWidget(formService, visibilityService); widget.field = new FormFieldModel(new FormModel()); }); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.spec.ts index 4accc990d1..2c6c33d793 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/dynamic-table/dynamic-table.widget.spec.ts @@ -28,7 +28,7 @@ describe('DynamicTableWidget', () => { beforeEach(() => { table = new DynamicTableModel(null); - visibilityService = new WidgetVisibilityService(null, null, null); + visibilityService = new WidgetVisibilityService(null); widget = new DynamicTableWidget(null, visibilityService); widget.content = table; }); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.spec.ts index 1141405b71..c21594f359 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/radio-buttons/radio-buttons.widget.spec.ts @@ -36,7 +36,7 @@ describe('RadioButtonsWidget', () => { beforeEach(() => { formService = new FormService(null, null); - visibilityService = new WidgetVisibilityService(null, null, null); + visibilityService = new WidgetVisibilityService(null); widget = new RadioButtonsWidget(formService, visibilityService); widget.field = new FormFieldModel(new FormModel(), { restUrl: '' }); }); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts index 0ea589ef03..b79759c6ba 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/typeahead/typeahead.widget.spec.ts @@ -35,7 +35,7 @@ describe('TypeaheadWidget', () => { beforeEach(() => { formService = new FormService(null, null); - visibilityService = new WidgetVisibilityService(null, null, null); + visibilityService = new WidgetVisibilityService(null); widget = new TypeaheadWidget(formService, visibilityService); widget.field = new FormFieldModel(new FormModel({ taskId: 'task-id' })); }); diff --git a/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.spec.ts b/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.spec.ts index 4fe3a4e81f..4b61f15094 100644 --- a/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.spec.ts +++ b/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.spec.ts @@ -15,8 +15,8 @@ * limitations under the License. */ -import { HttpModule } from '@angular/http'; -import { TestBed } from '@angular/core/testing'; +import { ReflectiveInjector } from '@angular/core'; +import { AlfrescoApi } from 'alfresco-js-api'; import { formTest, fakeTaskProcessVariableModels, @@ -24,31 +24,41 @@ import { fakeFormJson } from './assets/widget-visibility.service.mock'; import { WidgetVisibilityService } from './widget-visibility.service'; -import { CoreModule } from 'ng2-alfresco-core'; +import { + AlfrescoAuthenticationService, + AlfrescoSettingsService, + AlfrescoApiService, + StorageService +} from 'ng2-alfresco-core'; import { TaskProcessVariableModel } from '../models/task-process-variable.model'; import { WidgetVisibilityModel } from '../models/widget-visibility.model'; import { FormModel, FormFieldModel, TabModel, ContainerModel, FormFieldTypes } from '../components/widgets/core/index'; -import { FormService } from './form.service'; declare let jasmine: any; describe('WidgetVisibilityService', () => { - let service: WidgetVisibilityService; + let service, injector; + let authenticationService: AlfrescoAuthenticationService; + let apiService: AlfrescoApiService; + let alfrescoApi: AlfrescoApi; let booleanResult: boolean; let stubFormWithFields = new FormModel(fakeFormJson); - beforeAll(() => { - TestBed.configureTestingModule({ - imports: [ HttpModule, CoreModule ], - providers: [ - WidgetVisibilityService, - FormService - ] - }); - service = TestBed.get(WidgetVisibilityService); + beforeEach(() => { + injector = ReflectiveInjector.resolveAndCreate([ + WidgetVisibilityService, + AlfrescoSettingsService, + AlfrescoApiService, + AlfrescoAuthenticationService, + StorageService + ]); }); beforeEach(() => { + service = injector.get(WidgetVisibilityService); + authenticationService = injector.get(AlfrescoAuthenticationService); + apiService = injector.get(AlfrescoApiService); + alfrescoApi = apiService.getInstance(); jasmine.Ajax.install(); }); @@ -193,7 +203,7 @@ describe('WidgetVisibilityService', () => { it('should return the process variables for task', (done) => { service.getTaskProcessVariable('9999').subscribe( - (res: TaskProcessVariableModel[]) => { + (res) => { expect(res).toBeDefined(); expect(res.length).toEqual(3); expect(res[0].id).toEqual('TEST_VAR_1'); @@ -444,11 +454,10 @@ describe('WidgetVisibilityService', () => { expect(leftValue).toBe('value_2'); }); - it('should return empty string for a value that is not on variable or form', () => { + it('should return undefined for a value that is not on variable or form', () => { let leftValue = service.getLeftValue(fakeFormWithField, visibilityObjTest); - expect(leftValue).not.toBeUndefined(); - expect(leftValue).toBe(''); + expect(leftValue).toBeUndefined(); }); it('should evaluate the visibility for the field with single visibility condition between two field values', () => { @@ -620,30 +629,30 @@ describe('WidgetVisibilityService', () => { }); /* - it('should refresh the visibility for field', () => { - visibilityObjTest.leftFormFieldId = 'FIELD_TEST'; - visibilityObjTest.operator = '!='; - visibilityObjTest.rightFormFieldId = 'RIGHT_FORM_FIELD_ID'; + it('should refresh the visibility for field', () => { + visibilityObjTest.leftFormFieldId = 'FIELD_TEST'; + visibilityObjTest.operator = '!='; + visibilityObjTest.rightFormFieldId = 'RIGHT_FORM_FIELD_ID'; - let container = fakeFormWithField.fields[0]; - let column0 = container.columns[0]; - let column1 = container.columns[1]; + let container = fakeFormWithField.fields[0]; + let column0 = container.columns[0]; + let column1 = container.columns[1]; - column0.fields[0].visibilityCondition = visibilityObjTest; - service.refreshVisibility(fakeFormWithField); + column0.fields[0].visibilityCondition = visibilityObjTest; + service.refreshVisibility(fakeFormWithField); - expect(column0.fields[0].isVisible).toBeFalsy(); - expect(column0.fields[1].isVisible).toBeTruthy(); - expect(column0.fields[2].isVisible).toBeTruthy(); - expect(column1.fields[0].isVisible).toBeTruthy(); - }); - */ + expect(column0.fields[0].isVisible).toBeFalsy(); + expect(column0.fields[1].isVisible).toBeTruthy(); + expect(column0.fields[2].isVisible).toBeTruthy(); + expect(column1.fields[0].isVisible).toBeTruthy(); + }); + */ it('should refresh the visibility for tab in forms', () => { visibilityObjTest.leftFormFieldId = 'FIELD_TEST'; visibilityObjTest.operator = '!='; visibilityObjTest.rightFormFieldId = 'RIGHT_FORM_FIELD_ID'; - let tab = new TabModel(fakeFormWithField, {id: 'fake-tab-id', title: 'fake-tab-title', isVisible: true}); + let tab = new TabModel(fakeFormWithField, { id: 'fake-tab-id', title: 'fake-tab-title', isVisible: true }); tab.visibilityCondition = visibilityObjTest; fakeFormWithField.tabs.push(tab); service.refreshVisibility(fakeFormWithField); @@ -655,7 +664,7 @@ describe('WidgetVisibilityService', () => { visibilityObjTest.leftFormFieldId = 'FIELD_TEST'; visibilityObjTest.operator = '!='; visibilityObjTest.rightFormFieldId = 'RIGHT_FORM_FIELD_ID'; - let tab = new TabModel(fakeFormWithField, {id: 'fake-tab-id', title: 'fake-tab-title', isVisible: true}); + let tab = new TabModel(fakeFormWithField, { id: 'fake-tab-id', title: 'fake-tab-title', isVisible: true }); tab.visibilityCondition = visibilityObjTest; service.refreshEntityVisibility(tab); diff --git a/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.ts b/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.ts index db75d8060e..adf0d07797 100644 --- a/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.ts +++ b/ng2-components/ng2-activiti-form/src/services/widget-visibility.service.ts @@ -16,9 +16,8 @@ */ import { Injectable } from '@angular/core'; -import { Response, Http, Headers, RequestOptions } from '@angular/http'; import { Observable } from 'rxjs/Rx'; -import { AlfrescoSettingsService, AlfrescoAuthenticationService } from 'ng2-alfresco-core'; +import { AlfrescoApiService } from 'ng2-alfresco-core'; import { FormModel, FormFieldModel, @@ -35,9 +34,7 @@ export class WidgetVisibilityService { private processVarList: TaskProcessVariableModel[]; - constructor(private http: Http, - private alfrescoSettingsService: AlfrescoSettingsService, - private authService: AlfrescoAuthenticationService) { + constructor(private apiService: AlfrescoApiService) { } public refreshVisibility(form: FormModel) { @@ -80,10 +77,14 @@ export class WidgetVisibilityService { } getLeftValue(form: FormModel, visibilityObj: WidgetVisibilityModel) { + let leftValue = ''; if (visibilityObj.leftRestResponseId && visibilityObj.leftRestResponseId !== 'null') { - return this.getVariableValue(form, visibilityObj.leftRestResponseId, this.processVarList); + leftValue = this.getVariableValue(form, visibilityObj.leftRestResponseId, this.processVarList); + } else { + leftValue = this.getFormValue(form, visibilityObj.leftFormFieldId); + leftValue = leftValue ? leftValue : this.getVariableValue(form, visibilityObj.leftFormFieldId, this.processVarList); } - return this.getFormValue(form, visibilityObj.leftFormFieldId); + return leftValue; } getRightValue(form: FormModel, visibilityObj: WidgetVisibilityModel) { @@ -231,29 +232,21 @@ export class WidgetVisibilityService { } getTaskProcessVariable(taskId: string): Observable { - let url = `${this.alfrescoSettingsService.getBPMApiBaseUrl()}/app/rest/task-forms/${taskId}/variables`; - let options = this.getRequestOptions(); - return this.http - .get(url, options) - .map((response: Response) => this.processVarList = response.json()) + return Observable.fromPromise(this.apiService.getInstance().activiti.taskFormsApi.getTaskFormVariables(taskId)) + .map(res => { + let jsonRes = this.toJson(res); + this.processVarList = jsonRes; + return jsonRes; + }) .catch(this.handleError); } - private getHeaders(): Headers { - return new Headers({ - 'Accept': 'application/json', - 'Content-Type': 'application/json', - 'Authorization': this.authService.getTicketBpm() - }); + toJson(res: any) { + return res || {}; } - private getRequestOptions(): RequestOptions { - let headers = this.getHeaders(); - return new RequestOptions({headers: headers}); - } - - private handleError(error: Response) { - console.error(error); - return Observable.throw(error.json().error || 'Server error'); + private handleError() { + console.error('Error while performing a call'); + return Observable.throw('Error while performing a call - Server error'); } } diff --git a/ng2-components/ng2-alfresco-core/ts-node/f6ba8d7b15d27fe97737b60b41fb5fdda5bf0070/2d80de9f3391a75a650ffc7cab54d80d0a017e2a.js.map b/ng2-components/ng2-alfresco-core/ts-node/f6ba8d7b15d27fe97737b60b41fb5fdda5bf0070/2d80de9f3391a75a650ffc7cab54d80d0a017e2a.js.map new file mode 100644 index 0000000000..5817e8caf1 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/ts-node/f6ba8d7b15d27fe97737b60b41fb5fdda5bf0070/2d80de9f3391a75a650ffc7cab54d80d0a017e2a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"/Users/valbano/Documents/alfresco-ng2-components/ng2-components/ng2-alfresco-core/gulpfile.ts","sources":["/Users/valbano/Documents/alfresco-ng2-components/ng2-components/ng2-alfresco-core/gulpfile.ts"],"names":[],"mappings":";AAAA,2BAA6B;AAC7B,gCAAkC;AAClC,0CAA4C;AAC5C,mDAAqD;AACrD,oCAAsC;AAEtC,6BAA4B;AAC5B,0CAA4C;AAC5C,IAAI,YAA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EAAE,CAAC;SACjB,IAAI,CAAC,OAAO,EAAE,UAAU,CAAM;QAC3B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAf,CAAe,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEP,MAAM,CAAC,MAAM,CAAC,EAAE;SACX,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;SACxB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACtB,EAAE,CAAC,OAAO,EAAE,UAAC,CAAM;QAChB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAC,IAAS;IAC9B,OAAA,WAAW,CACP,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,IAAI,CAAC;AANT,CAMS,CAAC,CAAC","sourcesContent":["import * as gulp from 'gulp';\nimport * as util from 'gulp-util';\nimport * as runSequence from 'run-sequence';\nimport * as gulpLoadPlugins from 'gulp-load-plugins';\nimport * as merge from 'merge-stream';\nimport * as rimraf from 'rimraf';\nimport { join } from 'path';\nimport * as Builder from 'systemjs-builder';\nvar autoprefixer = require('autoprefixer');\nimport * as cssnano from 'cssnano';\nimport * as filter from 'gulp-filter';\n\nvar APP_SRC = `.`;\nvar CSS_PROD_BUNDLE = 'main.css';\nvar JS_PROD_SHIMS_BUNDLE = 'shims.js';\nvar NG_FACTORY_FILE = 'main-prod';\n\nconst BUILD_TYPES = {\n DEVELOPMENT: 'dev',\n PRODUCTION: 'prod'\n};\n\nfunction normalizeDependencies(deps) {\n deps\n .filter((d) => !/\\*/.test(d.src)) // Skip globs\n .forEach((d) => d.src = require.resolve(d.src));\n return deps;\n}\n\nfunction filterDependency(type: string, d): boolean {\n const t = d.buildType || d.env;\n d.buildType = t;\n if (!t) {\n d.buildType = Object.keys(BUILD_TYPES).map(k => BUILD_TYPES[k]);\n }\n if (!(d.buildType instanceof Array)) {\n (d).env = [d.buildType];\n }\n return d.buildType.indexOf(type) >= 0;\n}\n\nfunction getInjectableDependency() {\n var APP_ASSETS = [\n {src: `src/css/main.css`, inject: true, vendor: false},\n ];\n\n var NPM_DEPENDENCIES = [\n {src: 'zone.js/dist/zone.js', inject: 'libs'},\n {src: 'core-js/client/shim.min.js', inject: 'shims'},\n {src: 'intl/dist/Intl.min.js', inject: 'shims'},\n {src: 'systemjs/dist/system.src.js', inject: 'shims', buildType:'dev'}\n ];\n\n return normalizeDependencies(NPM_DEPENDENCIES.filter(filterDependency.bind(null, 'dev')))\n .concat(APP_ASSETS.filter(filterDependency.bind(null, 'dev')));\n}\n\nconst plugins = gulpLoadPlugins();\n\nlet tsProjects: any = {};\n\nfunction makeTsProject(options: Object = {}) {\n let optionsHash = JSON.stringify(options);\n if (!tsProjects[optionsHash]) {\n let config = Object.assign({\n typescript: require('typescript')\n }, options);\n tsProjects[optionsHash] =\n plugins.typescript.createProject('tsconfig.json', config);\n }\n return tsProjects[optionsHash];\n}\n\ngulp.task('build.html_css', () => {\n const gulpConcatCssConfig = {\n targetFile: CSS_PROD_BUNDLE,\n options: {\n rebaseUrls: false\n }\n };\n\n const processors = [\n autoprefixer({\n browsers: [\n 'ie >= 10',\n 'ie_mob >= 10',\n 'ff >= 30',\n 'chrome >= 34',\n 'safari >= 7',\n 'opera >= 23',\n 'ios >= 7',\n 'android >= 4.4',\n 'bb >= 10'\n ]\n })\n ];\n\n const reportPostCssError = (e: any) => util.log(util.colors.red(e.message));\n\n processors.push(\n cssnano({\n discardComments: {removeAll: true},\n discardUnused: false, // unsafe, see http://goo.gl/RtrzwF\n zindex: false, // unsafe, see http://goo.gl/vZ4gbQ\n reduceIdents: false // unsafe, see http://goo.gl/tNOPv0\n })\n );\n\n /**\n * Processes the CSS files within `src/client` excluding those in `src/client/assets` using `postcss` with the\n * configured processors\n * Execute the appropriate component-stylesheet processing method based on user stylesheet preference.\n */\n function processComponentStylesheets() {\n return gulp.src(join('src/**', '*.css'))\n .pipe(plugins.cached('process-component-css'))\n .pipe(plugins.postcss(processors))\n .on('error', reportPostCssError);\n }\n\n\n /**\n * Get a stream of external css files for subsequent processing.\n */\n function getExternalCssStream() {\n return gulp.src(getExternalCss())\n .pipe(plugins.cached('process-external-css'));\n }\n\n /**\n * Get an array of filenames referring to all external css stylesheets.\n */\n function getExternalCss() {\n return getInjectableDependency().filter(dep => /\\.css$/.test(dep.src)).map(dep => dep.src);\n }\n\n /**\n * Processes the external CSS files using `postcss` with the configured processors.\n */\n function processExternalCss() {\n return getExternalCssStream()\n .pipe(plugins.postcss(processors))\n .pipe(plugins.concatCss(gulpConcatCssConfig.targetFile, gulpConcatCssConfig.options))\n .on('error', reportPostCssError);\n }\n\n return merge(processComponentStylesheets(), processExternalCss());\n\n});\n\ngulp.task('build.bundles.app', (done) => {\n var BUNDLER_OPTIONS = {\n format: 'umd',\n minify: false,\n mangle: false,\n sourceMaps: true\n };\n var CONFIG_TYPESCRIPT = {\n baseURL: '.',\n transpiler: 'typescript',\n typescriptOptions: {\n module: 'cjs'\n },\n map: {\n typescript: 'node_modules/typescript/lib/typescript.js',\n '@angular': 'node_modules/@angular',\n rxjs: 'node_modules/rxjs',\n 'ng2-translate': 'node_modules/ng2-translate',\n 'alfresco-js-api': 'node_modules/alfresco-js-api/dist/alfresco-js-api',\n 'ng2-alfresco-core': 'node_modules/ng2-alfresco-core/',\n 'ng2-activiti-diagrams': 'node_modules/ng2-activiti-diagrams/',\n 'ng2-activiti-analytics': 'node_modules/ng2-activiti-analytics/',\n 'ng2-alfresco-datatable': 'node_modules/ng2-alfresco-datatable/',\n 'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist/',\n 'ng2-activiti-form': 'node_modules/ng2-activiti-form/',\n 'ng2-alfresco-login': 'node_modules/ng2-alfresco-login/',\n 'ng2-activiti-processlist': 'node_modules/ng2-activiti-processlist/',\n 'ng2-alfresco-search': 'node_modules/ng2-alfresco-search/',\n 'ng2-activiti-tasklist': 'node_modules/ng2-activiti-tasklist/',\n 'ng2-alfresco-tag': 'node_modules/ng2-alfresco-tag/',\n 'ng2-alfresco-upload': 'node_modules/ng2-alfresco-upload/',\n 'ng2-alfresco-userinfo': 'node_modules/ng2-alfresco-userinfo/',\n 'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer/',\n 'ng2-alfresco-webscript': 'node_modules/ng2-alfresco-webscript/'\n },\n paths: {\n '*': '*.js'\n },\n meta: {\n 'node_modules/@angular/*': {build: false},\n 'node_modules/rxjs/*': {build: false},\n 'node_modules/alfresco-js-api/*': {build: false},\n 'node_modules/ng2-translate/*': {build: false},\n 'node_modules/ng2-alfresco-core/*': {build: false},\n 'node_modules/ng2-activiti-diagrams/*': {build: false},\n 'node_modules/ng2-activiti-analytics/*': {build: false},\n 'node_modules/ng2-alfresco-datatable/*': {build: false},\n 'node_modules/ng2-alfresco-documentlist/*': {build: false},\n 'node_modules/ng2-activiti-form/*': {build: false},\n 'node_modules/ng2-alfresco-login/*': {build: false},\n 'node_modules/ng2-activiti-processlist/*': {build: false},\n 'node_modules/ng2-alfresco-search/*': {build: false},\n 'node_modules/ng2-activiti-tasklist/*': {build: false},\n 'node_modules/ng2-alfresco-tag/*': {build: false},\n 'node_modules/ng2-alfresco-upload/*': {build: false},\n 'node_modules/ng2-alfresco-userinfo/*': {build: false},\n 'node_modules/ng2-alfresco-viewer/*': {build: false},\n 'node_modules/ng2-alfresco-webscript/*': {build: false}\n }\n };\n\n var pkg = require('./package.json');\n var namePkg = pkg.name;\n\n var builder = new Builder(CONFIG_TYPESCRIPT);\n builder\n .buildStatic(APP_SRC + \"/index\", 'bundles/' + namePkg + '.js', BUNDLER_OPTIONS)\n .then(function () {\n return done();\n })\n .catch(function (err) {\n return done(err);\n });\n});\n\ngulp.task('build.assets.prod', () => {\n return gulp.src([\n join('src/**', '*.ts'),\n 'index.ts',\n join('src/**', '*.css'),\n join('src/**', '*.html'),\n '!'+join('*/**', '*.d.ts'),\n '!'+join('*/**', '*.spec.ts'),\n '!gulpfile.ts'])\n\n});\n\ngulp.task('build.bundles', () => {\n merge(bundleShims());\n\n /**\n * Returns the shim files to be injected.\n */\n function getShims() {\n let libs = getInjectableDependency()\n .filter(d => /\\.js$/.test(d.src));\n\n return libs.filter(l => l.inject === 'shims')\n .concat(libs.filter(l => l.inject === 'libs'))\n .concat(libs.filter(l => l.inject === true))\n .map(l => l.src);\n }\n\n /**\n * Bundles the shim files.\n */\n function bundleShims() {\n return gulp.src(getShims())\n .pipe(plugins.concat(JS_PROD_SHIMS_BUNDLE))\n // Strip the first (global) 'use strict' added by reflect-metadata, but don't strip any others to avoid unintended scope leaks.\n .pipe(plugins.replace(/('|\")use strict\\1;var Reflect;/, 'var Reflect;'))\n .pipe(gulp.dest('bundles'));\n }\n\n});\n\ngulp.task('build.js.prod', () => {\n const INLINE_OPTIONS = {\n base: APP_SRC,\n target: 'es5',\n useRelativePaths: true,\n removeLineBreaks: true\n };\n\n let tsProject = makeTsProject();\n let src = [\n join('src/**/*.ts'),\n join('!src/**/*.d.ts'),\n join('!src/**/*.spec.ts'),\n `!src/**/${NG_FACTORY_FILE}.ts`\n ];\n\n let result = gulp.src(src)\n .pipe(plugins.plumber())\n .pipe(plugins.inlineNg2Template(INLINE_OPTIONS))\n .pipe(tsProject())\n .once('error', function (e: any) {\n this.once('finish', () => process.exit(1));\n });\n\n return result.js\n .pipe(plugins.template())\n .pipe(gulp.dest('src'))\n .on('error', (e: any) => {\n console.log(e);\n });\n});\n\ngulp.task('build.prod', (done: any) =>\n runSequence(\n 'build.assets.prod',\n 'build.html_css',\n 'build.js.prod',\n 'build.bundles',\n 'build.bundles.app',\n done));\n"]} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.spec.ts b/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.spec.ts index 608d5b26fc..380c92e010 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.spec.ts +++ b/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.spec.ts @@ -17,7 +17,6 @@ import { ReflectiveInjector } from '@angular/core'; import { BpmUserService } from '../services/bpm-user.service'; -// import { BpmUserModel } from '../models/bpm-user.model'; import { AlfrescoAuthenticationService, AlfrescoApiService, AlfrescoSettingsService, StorageService } from 'ng2-alfresco-core'; import { fakeBpmUser } from '../assets/fake-bpm-user.service.mock';