[ADF-1968] [IE11] The login page is not loading and import fix (#2679)

* fix viewer script
export insights and diagram
remove requires svg
fix new data adapter path
dist working with diagrams commented out
change use of minimatch
fix unused import
remove unused component
fix test
new import moment es6 and throw rxjs
fix import analytics test
fix imports rxjs
new pacakging

* fix after rebase

* fix test upload services

* exclude temporarily button event test

* restore commented demo shell files

* fix process spy
This commit is contained in:
Eugenio Romano
2017-11-22 10:33:56 +00:00
committed by GitHub
parent 39737b3df6
commit f629f48d16
316 changed files with 1548 additions and 1678 deletions
@@ -19,7 +19,7 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { TranslateModule } from '@ngx-translate/core';
import { DiagramsModule } from '../diagram';
import { DiagramsModule } from '../diagram/diagram.module';
import { MaterialModule } from '../material.module';
import { ChartsModule } from 'ng2-charts';
@@ -30,22 +30,15 @@ import { AnalyticsReportHeatMapComponent } from './components/analytics-report-h
import { AnalyticsReportListComponent } from './components/analytics-report-list.component';
import { AnalyticsReportParametersComponent } from './components/analytics-report-parameters.component';
import { AnalyticsComponent } from './components/analytics.component';
import { WIDGET_ANALYTICS_DIRECTIVES } from './components/widgets/index';
import { CheckboxWidgetAanalyticsComponent } from './components/widgets/checkbox/checkbox.widget';
import { DateRangeWidgetComponent } from './components/widgets/date-range/date-range.widget';
import { DropdownWidgetAanalyticsComponent } from './components/widgets/dropdown/dropdown.widget';
import { DurationWidgetComponent } from './components/widgets/duration/duration.widget';
import { NumberWidgetAanlyticsComponent } from './components/widgets/number/number.widget';
import { AnalyticsService } from './services/analytics.service';
export const ANALYTICS_DIRECTIVES: any[] = [
AnalyticsComponent,
AnalyticsReportListComponent,
AnalyticsReportParametersComponent,
AnalyticsGeneratorComponent,
AnalyticsReportHeatMapComponent,
WIDGET_ANALYTICS_DIRECTIVES
];
export const ANALYTICS_PROVIDERS: any[] = [
AnalyticsService
];
@NgModule({
imports: [
FormsModule,
@@ -58,14 +51,31 @@ export const ANALYTICS_PROVIDERS: any[] = [
ToolbarModule
],
declarations: [
...ANALYTICS_DIRECTIVES
AnalyticsComponent,
AnalyticsReportListComponent,
AnalyticsReportParametersComponent,
AnalyticsGeneratorComponent,
AnalyticsReportHeatMapComponent,
DropdownWidgetAanalyticsComponent,
NumberWidgetAanlyticsComponent,
DurationWidgetComponent,
CheckboxWidgetAanalyticsComponent,
DateRangeWidgetComponent
],
providers: [
...ANALYTICS_PROVIDERS
AnalyticsService
],
exports: [
...ANALYTICS_DIRECTIVES,
MaterialModule
AnalyticsComponent,
AnalyticsReportListComponent,
AnalyticsReportParametersComponent,
AnalyticsGeneratorComponent,
AnalyticsReportHeatMapComponent,
DropdownWidgetAanalyticsComponent,
NumberWidgetAanlyticsComponent,
DurationWidgetComponent,
CheckboxWidgetAanalyticsComponent,
DateRangeWidgetComponent
]
})
export class AnalyticsProcessModule {}
@@ -15,33 +15,17 @@
* limitations under the License.
*/
import { DebugElement } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ChartsModule } from 'ng2-charts';
import { MaterialModule } from '../../material.module';
import { DiagramsModule } from '../../diagram';
import { DiagramsModule } from '../../diagram/diagram.module';
import { Chart } from '../../diagram';
import { ReportQuery } from '../../diagram';
import * as analyticMock from '../../mock';
import { AnalyticsGeneratorComponent } from '../components/analytics-generator.component';
import { AnalyticsReportHeatMapComponent } from '../components/analytics-report-heat-map.component';
import { AnalyticsReportListComponent } from '../components/analytics-report-list.component';
import { AnalyticsReportParametersComponent } from '../components/analytics-report-parameters.component';
import { WIDGET_ANALYTICS_DIRECTIVES } from '../components/widgets/index';
import { AnalyticsService } from '../services/analytics.service';
export const ANALYTICS_DIRECTIVES: any[] = [
AnalyticsGeneratorComponent,
AnalyticsReportParametersComponent,
AnalyticsReportListComponent,
AnalyticsReportHeatMapComponent,
WIDGET_ANALYTICS_DIRECTIVES
];
export const ANALYTICS_PROVIDERS: any[] = [
AnalyticsService
];
import { AnalyticsProcessModule } from '../analytics-process.module';
declare let jasmine: any;
@@ -49,21 +33,14 @@ describe('AnalyticsGeneratorComponent', () => {
let component: any;
let fixture: ComponentFixture<AnalyticsGeneratorComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
MaterialModule,
ChartsModule,
DiagramsModule
],
declarations: [
...ANALYTICS_DIRECTIVES
],
providers: [
...ANALYTICS_PROVIDERS
DiagramsModule,
AnalyticsProcessModule
]
}).compileComponents();
}));
@@ -71,8 +48,6 @@ describe('AnalyticsGeneratorComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(AnalyticsGeneratorComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
@@ -15,13 +15,11 @@
* limitations under the License.
*/
import { DebugElement } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DiagramsModule } from '../../diagram';
import { DiagramsModule } from '../../diagram/diagram.module';
import { AnalyticsReportHeatMapComponent } from '../components/analytics-report-heat-map.component';
import { WIDGET_ANALYTICS_DIRECTIVES } from '../components/widgets/index';
import { AnalyticsProcessModule } from '../analytics-process.module';
import { MaterialModule } from '../../material.module';
import { AnalyticsService } from '../services/analytics.service';
declare let jasmine: any;
@@ -29,7 +27,6 @@ describe('AnalyticsReportHeatMapComponent', () => {
let component: AnalyticsReportHeatMapComponent;
let fixture: ComponentFixture<AnalyticsReportHeatMapComponent>;
let debug: DebugElement;
let element: HTMLElement;
let totalCountPerc: any = { 'sid-fake-id': 0, 'fake-start-event': 100 };
@@ -44,14 +41,8 @@ describe('AnalyticsReportHeatMapComponent', () => {
TestBed.configureTestingModule({
imports: [
DiagramsModule,
MaterialModule
],
declarations: [
AnalyticsReportHeatMapComponent,
...WIDGET_ANALYTICS_DIRECTIVES
],
providers: [
AnalyticsService
MaterialModule,
AnalyticsProcessModule
]
}).compileComponents();
@@ -60,7 +51,6 @@ describe('AnalyticsReportHeatMapComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(AnalyticsReportHeatMapComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
component.report = {
@@ -15,12 +15,12 @@
* limitations under the License.
*/
import { DebugElement } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ReportParametersModel } from '../../diagram';
import { DiagramsModule } from '../../diagram/diagram.module';
import { AnalyticsProcessModule } from '../analytics-process.module';
import { AnalyticsReportListComponent } from '../components/analytics-report-list.component';
import { MaterialModule } from '../../material.module';
import { AnalyticsService } from '../services/analytics.service';
import { ReportParametersModel } from '../../diagram/models/report.model';
declare let jasmine: any;
@@ -38,19 +38,14 @@ describe('AnalyticsReportListComponent', () => {
let component: AnalyticsReportListComponent;
let fixture: ComponentFixture<AnalyticsReportListComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
MaterialModule
],
declarations: [
AnalyticsReportListComponent
],
providers: [
AnalyticsService
MaterialModule,
DiagramsModule,
AnalyticsProcessModule
]
}).compileComponents();
}));
@@ -58,7 +53,6 @@ describe('AnalyticsReportListComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(AnalyticsReportListComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
});
@@ -16,7 +16,8 @@
*/
import { Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';
import { Observable, Observer } from 'rxjs/Rx';
import { Observable } from 'rxjs/Observable';
import { Observer } from 'rxjs/Observer';
import { ReportParametersModel } from '../../diagram';
import { AnalyticsService } from '../services/analytics.service';
@@ -15,37 +15,27 @@
* limitations under the License.
*/
import { DebugElement, SimpleChange } from '@angular/core';
import { SimpleChange } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ReportParametersModel } from '../../diagram';
import * as analyticParamsMock from '../../mock';
import { AnalyticsReportParametersComponent } from '../components/analytics-report-parameters.component';
import { WIDGET_ANALYTICS_DIRECTIVES } from '../components/widgets/index';
import { AnalyticsProcessModule } from '../analytics-process.module';
import { MaterialModule } from '../../material.module';
import { AnalyticsService } from '../services/analytics.service';
import { DateRangeWidgetComponent } from './widgets/date-range/date-range.widget';
declare let jasmine: any;
describe('AnalyticsReportParametersComponent', () => {
fdescribe('AnalyticsReportParametersComponent', () => {
let component: AnalyticsReportParametersComponent;
let fixture: ComponentFixture<AnalyticsReportParametersComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
MaterialModule
],
declarations: [
DateRangeWidgetComponent,
AnalyticsReportParametersComponent,
...WIDGET_ANALYTICS_DIRECTIVES
],
providers: [
AnalyticsService
MaterialModule,
AnalyticsProcessModule
]
}).compileComponents();
}));
@@ -53,7 +43,6 @@ describe('AnalyticsReportParametersComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(AnalyticsReportParametersComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -31,7 +31,7 @@ import {
} from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { MatDialog } from '@angular/material';
import * as moment from 'moment';
import moment from 'moment-es6';
import { ParameterValueModel, ReportParameterDetailsModel, ReportParametersModel, ReportQuery } from '../../diagram';
import { AnalyticsService } from '../services/analytics.service';
@@ -96,7 +96,7 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
private paramOpts;
private reportParamQuery: ReportQuery;
private hideParameters: boolean = true;
private formValidState: boolean = false;
formValidState: boolean = false;
constructor(private analyticsService: AnalyticsService,
private formBuilder: FormBuilder,
@@ -15,60 +15,29 @@
* limitations under the License.
*/
import { DebugElement } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DiagramsModule } from '../../diagram';
import { DiagramsModule } from '../../diagram/diagram.module';
import { ChartsModule } from 'ng2-charts';
import { AnalyticsGeneratorComponent } from '../components/analytics-generator.component';
import { AnalyticsReportHeatMapComponent } from '../components/analytics-report-heat-map.component';
import { AnalyticsReportListComponent } from '../components/analytics-report-list.component';
import { AnalyticsReportParametersComponent } from '../components/analytics-report-parameters.component';
import { AnalyticsComponent } from '../components/analytics.component';
import { WIDGET_ANALYTICS_DIRECTIVES } from '../components/widgets/index';
import { AnalyticsService } from '../services/analytics.service';
export const ANALYTICS_DIRECTIVES: any[] = [
AnalyticsComponent,
AnalyticsGeneratorComponent,
AnalyticsReportParametersComponent,
AnalyticsReportListComponent,
AnalyticsReportHeatMapComponent,
WIDGET_ANALYTICS_DIRECTIVES
];
export const ANALYTICS_PROVIDERS: any[] = [
AnalyticsService
];
declare let jasmine: any;
describe('AnalyticsComponent', () => {
let component: any;
let fixture: ComponentFixture<AnalyticsComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ChartsModule,
DiagramsModule
],
declarations: [
...ANALYTICS_DIRECTIVES
],
providers: [
...ANALYTICS_PROVIDERS
]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(AnalyticsComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -19,7 +19,7 @@ import { MOMENT_DATE_FORMATS, MomentDateAdapter, UserPreferencesService } from '
import { Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';
import { AbstractControl, FormControl, FormGroup, Validators } from '@angular/forms';
import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material';
import * as moment from 'moment';
import moment from 'moment-es6';
import { Moment } from 'moment';
@Component({
@@ -20,7 +20,8 @@
/* tslint:disable::no-access-missing-member */
import { Component, ElementRef, Input, OnInit, ViewEncapsulation } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ParameterValueModel, ReportParameterDetailsModel } from '../../../../diagram';
import { ParameterValueModel } from '../../../../diagram/models/report.model';
import { ReportParameterDetailsModel } from '../../../../diagram/models/report.model';
import { NumberWidgetAanlyticsComponent } from './../number/number.widget';
@Component({
@@ -1,37 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { CheckboxWidgetAanalyticsComponent } from './checkbox/checkbox.widget';
import { DateRangeWidgetComponent } from './date-range/date-range.widget';
import { DropdownWidgetAanalyticsComponent } from './dropdown/dropdown.widget';
import { DurationWidgetComponent } from './duration/duration.widget';
import { NumberWidgetAanlyticsComponent } from './number/number.widget';
// primitives
export * from './dropdown/dropdown.widget';
export * from './number/number.widget';
export * from './duration/duration.widget';
export * from './checkbox/checkbox.widget';
export * from './date-range/date-range.widget';
export const WIDGET_ANALYTICS_DIRECTIVES: any[] = [
DropdownWidgetAanalyticsComponent,
NumberWidgetAanlyticsComponent,
DurationWidgetComponent,
CheckboxWidgetAanalyticsComponent,
DateRangeWidgetComponent
];
+7 -3
View File
@@ -19,7 +19,11 @@ export * from './components/analytics.component';
export * from './components/analytics-generator.component';
export * from './components/analytics-report-list.component';
export * from './components/analytics-report-parameters.component';
export * from './services/analytics.service';
export * from './components/widgets/index';
export * from './analytics-process.module';
export * from './components/widgets/checkbox/checkbox.widget';
export * from './components/widgets/date-range/date-range.widget';
export * from './components/widgets/dropdown/dropdown.widget';
export * from './components/widgets/duration/duration.widget';
export * from './components/widgets/number/number.widget';
export * from './services/analytics.service';
@@ -16,7 +16,6 @@
*/
import { TestBed } from '@angular/core/testing';
import { AlfrescoApiService } from '@alfresco/adf-core';
import { fakeReportList } from '../../mock';
import { AnalyticsService } from './analytics.service';
@@ -25,17 +24,14 @@ declare let jasmine: any;
describe('Activiti Analytics Service', () => {
let service: AnalyticsService;
let apiService: AlfrescoApiService;
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
AnalyticsService
]
});
service = TestBed.get(AnalyticsService);
apiService = TestBed.get(AlfrescoApiService);
});
beforeEach(() => {
@@ -18,7 +18,7 @@
import { AlfrescoApiService, LogService } from '@alfresco/adf-core';
import { Injectable } from '@angular/core';
import { Response } from '@angular/http';
import { Observable } from 'rxjs/Rx';
import { Observable } from 'rxjs/Observable';
import { ParameterValueModel, ReportParametersModel } from '../../diagram';
import {
BarChart,
@@ -29,6 +29,7 @@ import {
PieChart,
TableChart
} from '../../diagram';
import 'rxjs/add/observable/throw';
@Injectable()
export class AnalyticsService {
@@ -1,69 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramAlfrescoPublishTaskComponent } from './diagram-alfresco-publish-task.component';
import { DiagramBoxPublishTaskComponent } from './diagram-box-publish-task.component';
import { DiagramBusinessRuleTaskComponent } from './diagram-business-rule-task.component';
import { DiagramCamelTaskComponent } from './diagram-camel-task.component';
import { DiagramContainerServiceTaskComponent } from './diagram-container-service-task.component';
import { DiagramGoogleDrivePublishTaskComponent } from './diagram-google-drive-publish-task.component';
import { DiagramManualTaskComponent } from './diagram-manual-task.component';
import { DiagramMuleTaskComponent } from './diagram-mule-task.component';
import { DiagramReceiveTaskComponent } from './diagram-receive-task.component';
import { DiagramRestCallTaskComponent } from './diagram-rest-call-task.component';
import { DiagramScriptTaskComponent } from './diagram-script-task.component';
import { DiagramSendTaskComponent } from './diagram-send-task.component';
import { DiagramServiceTaskComponent } from './diagram-service-task.component';
import { DiagramTaskComponent } from './diagram-task.component';
import { DiagramUserTaskComponent } from './diagram-user-task.component';
// primitives
export * from './diagram-container-service-task.component';
export * from './diagram-task.component';
export * from './diagram-service-task.component';
export * from './diagram-send-task.component';
export * from './diagram-user-task.component';
export * from './diagram-manual-task.component';
export * from './diagram-camel-task.component';
export * from './diagram-mule-task.component';
export * from './diagram-alfresco-publish-task.component';
export * from './diagram-rest-call-task.component';
export * from './diagram-google-drive-publish-task.component';
export * from './diagram-box-publish-task.component';
export * from './diagram-receive-task.component';
export * from './diagram-script-task.component';
export * from './diagram-business-rule-task.component';
export const DIAGRAM_ACTIVITIES_DIRECTIVES: any[] = [
DiagramContainerServiceTaskComponent,
DiagramTaskComponent,
DiagramServiceTaskComponent,
DiagramSendTaskComponent,
DiagramUserTaskComponent,
DiagramManualTaskComponent,
DiagramCamelTaskComponent,
DiagramMuleTaskComponent,
DiagramAlfrescoPublishTaskComponent,
DiagramRestCallTaskComponent,
DiagramGoogleDrivePublishTaskComponent,
DiagramBoxPublishTaskComponent,
DiagramReceiveTaskComponent,
DiagramScriptTaskComponent,
DiagramBusinessRuleTaskComponent
];
@@ -1,30 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramBoundaryEventComponent } from './diagram-boundary-event.component';
import { DiagramThrowEventComponent } from './diagram-throw-event.component';
// primitives
export * from './diagram-boundary-event.component';
export * from './diagram-throw-event.component';
export const DIAGRAM_BOUNDARY_EVENTS_DIRECTIVES: any[] = [
DiagramBoundaryEventComponent,
DiagramThrowEventComponent
];
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as diagramsActivitiesMock from '../../mock/diagram/diagramActivities.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramsModule } from '../diagram.module';
import { DiagramComponent } from './diagram.component';
declare let jasmine: any;
@@ -29,27 +27,17 @@ describe('Diagrams activities', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
]
imports: [DiagramsModule]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as boundaryEventMock from '../../mock/diagram/diagramBoundary.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramsModule } from '../diagram.module';
import { DiagramComponent } from './diagram.component';
declare let jasmine: any;
@@ -29,19 +27,12 @@ describe('Diagrams boundary', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
imports: [
DiagramsModule
]
}).compileComponents();
}));
@@ -49,7 +40,6 @@ describe('Diagrams boundary', () => {
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as intermediateCatchingMock from '../../mock/diagram/diagramIntermediate.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramComponent } from './diagram.component';
import { DiagramsModule } from '../diagram.module';
declare let jasmine: any;
@@ -29,27 +27,17 @@ describe('Diagrams Catching', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
]
imports: [DiagramsModule]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as diagramsEventsMock from '../../mock/diagram/diagramEvents.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramComponent } from './diagram.component';
import { DiagramsModule } from '../diagram.module';
declare let jasmine: any;
@@ -29,19 +27,12 @@ describe('Diagrams events', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
imports: [
DiagramsModule
]
}).compileComponents();
}));
@@ -49,7 +40,6 @@ describe('Diagrams events', () => {
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as flowsMock from '../../mock/diagram/diagramFlows.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramComponent } from './diagram.component';
import { DiagramsModule } from '../diagram.module';
declare let jasmine: any;
@@ -29,27 +27,17 @@ describe('Diagrams flows', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
]
imports: [DiagramsModule]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as diagramsGatewaysMock from '../../mock/diagram/diagramGateways.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramComponent } from './diagram.component';
import { DiagramsModule } from '../diagram.module';
declare let jasmine: any;
@@ -29,27 +27,17 @@ describe('Diagrams gateways', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
]
imports: [DiagramsModule]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as structuralMock from '../../mock/diagram/diagramStructural.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramComponent } from './diagram.component';
import { DiagramsModule } from '../diagram.module';
declare let jasmine: any;
@@ -29,27 +27,17 @@ describe('Diagrams structural', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
]
imports: [DiagramsModule]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as swimLanesMock from '../../mock/diagram/diagramSwimlanes.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramComponent } from './diagram.component';
import { DiagramsModule } from '../diagram.module';
declare let jasmine: any;
@@ -29,19 +27,14 @@ describe('Diagrams swim', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
imports: [
DiagramsModule
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
declarations: [
]
}).compileComponents();
}));
@@ -49,7 +42,6 @@ describe('Diagrams swim', () => {
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -17,11 +17,9 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import * as throwEventMock from '../../mock/diagram/diagramThrow.mock';
import { DiagramComponent } from './index';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './index';
import { RAPHAEL_DIRECTIVES, RAPHAEL_PROVIDERS } from './raphael/index';
import { DiagramComponent } from './diagram.component';
import { DiagramsModule } from '../diagram.module';
declare let jasmine: any;
@@ -29,19 +27,16 @@ describe('Diagrams throw', () => {
let component: any;
let fixture: ComponentFixture<DiagramComponent>;
let debug: DebugElement;
let element: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
DiagramsModule
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
]
}).compileComponents();
}));
@@ -49,7 +44,6 @@ describe('Diagrams throw', () => {
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
debug = fixture.debugElement;
element = fixture.nativeElement;
fixture.detectChanges();
});
@@ -1,33 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramEndEventComponent } from './diagram-end-event.component';
import { DiagramEventComponent } from './diagram-event.component';
import { DiagramStartEventComponent } from './diagram-start-event.component';
// primitives
export * from './diagram-event.component';
export * from './diagram-start-event.component';
export * from './diagram-end-event.component';
export const DIAGRAM_EVENTS_DIRECTIVES: any[] = [
DiagramEventComponent,
DiagramStartEventComponent,
DiagramEndEventComponent
];
@@ -1,39 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramEventGatewayComponent } from './diagram-event-gateway.component';
import { DiagramExclusiveGatewayComponent } from './diagram-exclusive-gateway.component';
import { DiagramGatewayComponent } from './diagram-gateway.component';
import { DiagramInclusiveGatewayComponent } from './diagram-inclusive-gateway.component';
import { DiagramParallelGatewayComponent } from './diagram-parallel-gateway.component';
// primitives
export * from './diagram-gateway.component';
export * from './diagram-exclusive-gateway.component';
export * from './diagram-inclusive-gateway.component';
export * from './diagram-parallel-gateway.component';
export * from './diagram-event-gateway.component';
export const DIAGRAM_GATEWAY_DIRECTIVES: any[] = [
DiagramGatewayComponent,
DiagramExclusiveGatewayComponent,
DiagramInclusiveGatewayComponent,
DiagramParallelGatewayComponent,
DiagramEventGatewayComponent
];
@@ -1,78 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramContainerIconEventTaskComponent } from './diagram-container-icon-event.component';
import { DiagramIconAlfrescoPublishTaskComponent } from './diagram-icon-alfresco-publish-task.component';
import { DiagramIconBoxPublishTaskComponent } from './diagram-icon-box-publish-task.component';
import { DiagramIconBusinessRuleTaskComponent } from './diagram-icon-business-rule-task.component';
import { DiagramIconCamelTaskComponent } from './diagram-icon-camel-task.component';
import { DiagramIconErrorComponent } from './diagram-icon-error.component';
import { DiagramIconGoogleDrivePublishTaskComponent } from './diagram-icon-google-drive-publish-task.component';
import { DiagramIconManualTaskComponent } from './diagram-icon-manual-task.component';
import { DiagramIconMessageComponent } from './diagram-icon-message.component';
import { DiagramIconMuleTaskComponent } from './diagram-icon-mule-task.component';
import { DiagramIconReceiveTaskComponent } from './diagram-icon-receive-task.component';
import { DiagramIconRestCallTaskComponent } from './diagram-icon-rest-call-task.component';
import { DiagramIconScriptTaskComponent } from './diagram-icon-script-task.component';
import { DiagramIconSendTaskComponent } from './diagram-icon-send-task.component';
import { DiagramIconServiceTaskComponent } from './diagram-icon-service-task.component';
import { DiagramIconSignalComponent } from './diagram-icon-signal.component';
import { DiagramIconTimerComponent } from './diagram-icon-timer.component';
import { DiagramIconUserTaskComponent } from './diagram-icon-user-task.component';
// primitives
export * from './diagram-icon-service-task.component';
export * from './diagram-icon-send-task.component';
export * from './diagram-icon-user-task.component';
export * from './diagram-icon-manual-task.component';
export * from './diagram-icon-camel-task.component';
export * from './diagram-icon-mule-task.component';
export * from './diagram-icon-alfresco-publish-task.component';
export * from './diagram-icon-rest-call-task.component';
export * from './diagram-icon-google-drive-publish-task.component';
export * from './diagram-icon-box-publish-task.component';
export * from './diagram-icon-receive-task.component';
export * from './diagram-icon-script-task.component';
export * from './diagram-icon-business-rule-task.component';
export * from './diagram-container-icon-event.component';
export * from './diagram-icon-timer.component';
export * from './diagram-icon-error.component';
export * from './diagram-icon-signal.component';
export * from './diagram-icon-message.component';
export const DIAGRAM_ICONS_DIRECTIVES: any[] = [
DiagramIconServiceTaskComponent,
DiagramIconSendTaskComponent,
DiagramIconUserTaskComponent,
DiagramIconManualTaskComponent,
DiagramIconCamelTaskComponent,
DiagramIconMuleTaskComponent,
DiagramIconAlfrescoPublishTaskComponent,
DiagramIconRestCallTaskComponent,
DiagramIconGoogleDrivePublishTaskComponent,
DiagramIconBoxPublishTaskComponent,
DiagramIconReceiveTaskComponent,
DiagramIconScriptTaskComponent,
DiagramIconBusinessRuleTaskComponent,
DiagramContainerIconEventTaskComponent,
DiagramIconTimerComponent,
DiagramIconErrorComponent,
DiagramIconSignalComponent,
DiagramIconMessageComponent
];
-61
View File
@@ -1,61 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { DIAGRAM_ACTIVITIES_DIRECTIVES } from './activities/index';
import { DIAGRAM_BOUNDARY_EVENTS_DIRECTIVES } from './boundary-events/index';
import { DiagramSequenceFlowComponent } from './diagram-sequence-flow.component';
import { DiagramComponent } from './diagram.component';
import { DIAGRAM_EVENTS_DIRECTIVES } from './events/index';
import { DIAGRAM_GATEWAY_DIRECTIVES } from './gateways/index';
import { DIAGRAM_ICONS_DIRECTIVES } from './icons/index';
import { DIAGRAM_INTERMEDIATE_EVENTS_DIRECTIVES } from './intermediate-catching-events/index';
import { DIAGRAM_STRUCTURAL_DIRECTIVES } from './structural/index';
import { DIAGRAM_SWIMLANES_DIRECTIVES } from './swimlanes/index';
import { DiagramTooltipComponent } from './tooltip/index';
import { DiagramColorService } from '../services/diagram-color.service';
import { DiagramsService } from '../services/diagrams.service';
// primitives
export * from './diagram.component';
export * from './events/index';
export * from './activities/index';
export * from './icons/index';
export * from './diagram-sequence-flow.component';
export * from './boundary-events/index';
export * from './intermediate-catching-events/index';
export * from './structural/index';
export * from './swimlanes/index';
export const DIAGRAM_DIRECTIVES: any[] = [
DiagramComponent,
DIAGRAM_EVENTS_DIRECTIVES,
DIAGRAM_ACTIVITIES_DIRECTIVES,
DiagramSequenceFlowComponent,
DIAGRAM_GATEWAY_DIRECTIVES,
DIAGRAM_ICONS_DIRECTIVES,
DIAGRAM_BOUNDARY_EVENTS_DIRECTIVES,
DIAGRAM_INTERMEDIATE_EVENTS_DIRECTIVES,
DIAGRAM_STRUCTURAL_DIRECTIVES,
DIAGRAM_SWIMLANES_DIRECTIVES,
DiagramTooltipComponent
];
export const DIAGRAM_PROVIDERS: any[] = [
DiagramsService,
DiagramColorService
];
@@ -1,27 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramIntermediateCatchingEventComponent } from './diagram-intermediate-catching-event.component';
// primitives
export * from './diagram-intermediate-catching-event.component';
export const DIAGRAM_INTERMEDIATE_EVENTS_DIRECTIVES: any[] = [
DiagramIntermediateCatchingEventComponent
];
@@ -1,73 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { RaphaelIconAlfrescoPublishDirective } from './raphael-icon-alfresco-publish.component';
import { RaphaelIconBoxPublishDirective } from './raphael-icon-box-publish.component';
import { RaphaelIconBusinessRuleDirective } from './raphael-icon-business-rule.component';
import { RaphaelIconCamelDirective } from './raphael-icon-camel.component';
import { RaphaelIconErrorDirective } from './raphael-icon-error.component';
import { RaphaelIconGoogleDrivePublishDirective } from './raphael-icon-google-drive-publish.component';
import { RaphaelIconManualDirective } from './raphael-icon-manual.component';
import { RaphaelIconMessageDirective } from './raphael-icon-message.component';
import { RaphaelIconMuleDirective } from './raphael-icon-mule.component';
import { RaphaelIconReceiveDirective } from './raphael-icon-receive.component';
import { RaphaelIconRestCallDirective } from './raphael-icon-rest-call.component';
import { RaphaelIconScriptDirective } from './raphael-icon-script.component';
import { RaphaelIconSendDirective } from './raphael-icon-send.component';
import { RaphaelIconServiceDirective } from './raphael-icon-service.component';
import { RaphaelIconSignalDirective } from './raphael-icon-signal.component';
import { RaphaelIconTimerDirective } from './raphael-icon-timer.component';
import { RaphaelIconUserDirective } from './raphael-icon-user.component';
// primitives
export * from './raphael-icon-service.component';
export * from './raphael-icon-send.component';
export * from './raphael-icon-user.component';
export * from './raphael-icon-manual.component';
export * from './raphael-icon-camel.component';
export * from './raphael-icon-mule.component';
export * from './raphael-icon-alfresco-publish.component';
export * from './raphael-icon-rest-call.component';
export * from './raphael-icon-google-drive-publish.component';
export * from './raphael-icon-box-publish.component';
export * from './raphael-icon-receive.component';
export * from './raphael-icon-script.component';
export * from './raphael-icon-business-rule.component';
export * from './raphael-icon-timer.component';
export * from './raphael-icon-error.component';
export * from './raphael-icon-signal.component';
export * from './raphael-icon-message.component';
export const RAPHAEL_ICONS_DIRECTIVES: any[] = [
RaphaelIconServiceDirective,
RaphaelIconSendDirective,
RaphaelIconUserDirective,
RaphaelIconManualDirective,
RaphaelIconCamelDirective,
RaphaelIconMuleDirective,
RaphaelIconAlfrescoPublishDirective,
RaphaelIconRestCallDirective,
RaphaelIconGoogleDrivePublishDirective,
RaphaelIconBoxPublishDirective,
RaphaelIconReceiveDirective,
RaphaelIconScriptDirective,
RaphaelIconBusinessRuleDirective,
RaphaelIconTimerDirective,
RaphaelIconErrorDirective,
RaphaelIconSignalDirective,
RaphaelIconMessageDirective
];
@@ -1,61 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { RaphaelCircleDirective } from './raphael-circle.component';
import { RaphaelCrossDirective } from './raphael-cross.component';
import { RaphaelFlowArrowDirective } from './raphael-flow-arrow.component';
import { RaphaelMultilineTextDirective } from './raphael-multiline-text.component';
import { RaphaelPentagonDirective } from './raphael-pentagon.component';
import { RaphaelPlusDirective } from './raphael-plus.component';
import { RaphaelRectDirective } from './raphael-rect.component';
import { RaphaelRhombusDirective } from './raphael-rhombus.component';
import { RaphaelTextDirective } from './raphael-text.component';
// services
import { RaphaelService } from './raphael.service';
// icons
import { RAPHAEL_ICONS_DIRECTIVES } from './icons/index';
// primitives
export * from './raphael-circle.component';
export * from './raphael-rect.component';
export * from './raphael-text.component';
export * from './raphael-multiline-text.component';
export * from './raphael-flow-arrow.component';
export * from './raphael-cross.component';
export * from './raphael-plus.component';
export * from './raphael-rhombus.component';
export * from './raphael-pentagon.component';
export * from './icons/index';
export const RAPHAEL_DIRECTIVES: any[] = [
RaphaelCircleDirective,
RaphaelRectDirective,
RaphaelTextDirective,
RaphaelMultilineTextDirective,
RaphaelFlowArrowDirective,
RaphaelCrossDirective,
RaphaelPlusDirective,
RaphaelRhombusDirective,
RaphaelPentagonDirective,
RAPHAEL_ICONS_DIRECTIVES
];
export const RAPHAEL_PROVIDERS: any[] = [
RaphaelService
];
@@ -148,13 +148,11 @@ export class Polyline {
}
pushAnchor(type, x, y) {
var index, typeIndex;
var index;
if (type === Anchor.ANCHOR_TYPE.first) {
index = 0;
typeIndex = 0;
} else if (type === Anchor.ANCHOR_TYPE.last) {
index = this.getAnchorsCount();
typeIndex = 0;
} else if (!index) {
index = this.anchors.length;
} else {
@@ -22,7 +22,7 @@ export class RaphaelBase {
paper: any;
private element: ElementRef;
public element: ElementRef;
public constructor(element: ElementRef,
private raphaelService: RaphaelService) {
@@ -45,7 +45,7 @@ export class RaphaelService implements OnDestroy {
public getPaperBuilder(ctx: any): any {
if (typeof Raphael === 'undefined') {
throw new Error('ng2-charts configuration issue: Embedding Chart.js lib is mandatory');
throw new Error('insights configuration issue: Embedding Chart.js lib is mandatory');
}
let paper = new Raphael(ctx, this.width, this.height);
// paper.setViewBox(0, 0, 583, 344.08374193550003, false);
@@ -1,30 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramEventSubprocessComponent } from './diagram-event-subprocess.component';
import { DiagramSubprocessComponent } from './diagram-subprocess.component';
// primitives
export * from './diagram-subprocess.component';
export * from './diagram-event-subprocess.component';
export const DIAGRAM_STRUCTURAL_DIRECTIVES: any[] = [
DiagramSubprocessComponent,
DiagramEventSubprocessComponent
];
@@ -1,37 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { DiagramPoolComponent } from './diagram-pool.component';
import { DiagramPoolsComponent } from './diagram-pools.component';
import { DiagramLaneComponent } from './diagram-lane.component';
import { DiagramLanesComponent } from './diagram-lanes.component';
// primitives
export * from './diagram-pools.component';
export * from './diagram-pool.component';
export * from './diagram-lanes.component';
export * from './diagram-lane.component';
export const DIAGRAM_SWIMLANES_DIRECTIVES: any[] = [
DiagramPoolsComponent,
DiagramPoolComponent,
DiagramLanesComponent,
DiagramLaneComponent
];
@@ -112,8 +112,6 @@ describe('DiagramTooltipComponent', () => {
describe('Tooltip functionality', () => {
let fixture: ComponentFixture<TestHostComponent>;
let component: TestHostComponent;
let event: MouseEvent;
beforeEach(async(() => {
TestBed.configureTestingModule({
@@ -123,8 +121,6 @@ describe('DiagramTooltipComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(TestHostComponent);
component = fixture.componentInstance;
event = new MouseEvent('mouseenter');
fixture.detectChanges();
});
@@ -1,20 +0,0 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
export * from './diagram-tooltip.component';
+256 -8
View File
@@ -19,10 +19,102 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
import { DIAGRAM_DIRECTIVES, DIAGRAM_PROVIDERS } from './components/index';
import { DiagramEndEventComponent } from './components/events/diagram-end-event.component';
import { DiagramEventComponent } from './components/events/diagram-event.component';
import { DiagramStartEventComponent } from './components/events/diagram-start-event.component';
import { RAPHAEL_DIRECTIVES } from './components/raphael/index';
import { RAPHAEL_PROVIDERS } from './components/raphael/index';
import { DiagramAlfrescoPublishTaskComponent } from './components/activities/diagram-alfresco-publish-task.component';
import { DiagramBoxPublishTaskComponent } from './components/activities/diagram-box-publish-task.component';
import { DiagramBusinessRuleTaskComponent } from './components/activities/diagram-business-rule-task.component';
import { DiagramCamelTaskComponent } from './components/activities/diagram-camel-task.component';
import { DiagramContainerServiceTaskComponent } from './components/activities/diagram-container-service-task.component';
import { DiagramGoogleDrivePublishTaskComponent } from './components/activities/diagram-google-drive-publish-task.component';
import { DiagramManualTaskComponent } from './components/activities/diagram-manual-task.component';
import { DiagramMuleTaskComponent } from './components/activities/diagram-mule-task.component';
import { DiagramReceiveTaskComponent } from './components/activities/diagram-receive-task.component';
import { DiagramRestCallTaskComponent } from './components/activities/diagram-rest-call-task.component';
import { DiagramScriptTaskComponent } from './components/activities/diagram-script-task.component';
import { DiagramSendTaskComponent } from './components/activities/diagram-send-task.component';
import { DiagramServiceTaskComponent } from './components/activities/diagram-service-task.component';
import { DiagramTaskComponent } from './components/activities/diagram-task.component';
import { DiagramUserTaskComponent } from './components/activities/diagram-user-task.component';
import { DiagramBoundaryEventComponent } from './components/boundary-events/diagram-boundary-event.component';
import { DiagramThrowEventComponent } from './components/boundary-events/diagram-throw-event.component';
import { DiagramIntermediateCatchingEventComponent } from './components/intermediate-catching-events/diagram-intermediate-catching-event.component';
import { DiagramEventGatewayComponent } from './components/gateways/diagram-event-gateway.component';
import { DiagramExclusiveGatewayComponent } from './components/gateways/diagram-exclusive-gateway.component';
import { DiagramGatewayComponent } from './components/gateways/diagram-gateway.component';
import { DiagramInclusiveGatewayComponent } from './components/gateways/diagram-inclusive-gateway.component';
import { DiagramParallelGatewayComponent } from './components/gateways/diagram-parallel-gateway.component';
import { DiagramSequenceFlowComponent } from './components/diagram-sequence-flow.component';
import { DiagramComponent } from './components/diagram.component';
import { DiagramContainerIconEventTaskComponent } from './components/icons/diagram-container-icon-event.component';
import { DiagramIconAlfrescoPublishTaskComponent } from './components/icons/diagram-icon-alfresco-publish-task.component';
import { DiagramIconBoxPublishTaskComponent } from './components/icons/diagram-icon-box-publish-task.component';
import { DiagramIconBusinessRuleTaskComponent } from './components/icons/diagram-icon-business-rule-task.component';
import { DiagramIconCamelTaskComponent } from './components/icons/diagram-icon-camel-task.component';
import { DiagramIconErrorComponent } from './components/icons/diagram-icon-error.component';
import { DiagramIconGoogleDrivePublishTaskComponent } from './components/icons/diagram-icon-google-drive-publish-task.component';
import { DiagramIconManualTaskComponent } from './components/icons/diagram-icon-manual-task.component';
import { DiagramIconMessageComponent } from './components/icons/diagram-icon-message.component';
import { DiagramIconMuleTaskComponent } from './components/icons/diagram-icon-mule-task.component';
import { DiagramIconReceiveTaskComponent } from './components/icons/diagram-icon-receive-task.component';
import { DiagramIconRestCallTaskComponent } from './components/icons/diagram-icon-rest-call-task.component';
import { DiagramIconScriptTaskComponent } from './components/icons/diagram-icon-script-task.component';
import { DiagramIconSendTaskComponent } from './components/icons/diagram-icon-send-task.component';
import { DiagramIconServiceTaskComponent } from './components/icons/diagram-icon-service-task.component';
import { DiagramIconSignalComponent } from './components/icons/diagram-icon-signal.component';
import { DiagramIconTimerComponent } from './components/icons/diagram-icon-timer.component';
import { DiagramIconUserTaskComponent } from './components/icons/diagram-icon-user-task.component';
import { DiagramEventSubprocessComponent } from './components/structural/diagram-event-subprocess.component';
import { DiagramSubprocessComponent } from './components/structural/diagram-subprocess.component';
import { DiagramPoolComponent } from './components/swimlanes/diagram-pool.component';
import { DiagramPoolsComponent } from './components/swimlanes/diagram-pools.component';
import { DiagramLaneComponent } from './components/swimlanes/diagram-lane.component';
import { DiagramLanesComponent } from './components/swimlanes/diagram-lanes.component';
import { DiagramTooltipComponent } from './components/tooltip/diagram-tooltip.component';
import { DiagramColorService } from './services/diagram-color.service';
import { DiagramsService } from './services/diagrams.service';
import { RaphaelService } from './components/raphael/raphael.service';
import { RaphaelCircleDirective } from './components/raphael/raphael-circle.component';
import { RaphaelCrossDirective } from './components/raphael/raphael-cross.component';
import { RaphaelFlowArrowDirective } from './components/raphael/raphael-flow-arrow.component';
import { RaphaelMultilineTextDirective } from './components/raphael/raphael-multiline-text.component';
import { RaphaelPentagonDirective } from './components/raphael/raphael-pentagon.component';
import { RaphaelPlusDirective } from './components/raphael/raphael-plus.component';
import { RaphaelRectDirective } from './components/raphael/raphael-rect.component';
import { RaphaelRhombusDirective } from './components/raphael/raphael-rhombus.component';
import { RaphaelTextDirective } from './components/raphael/raphael-text.component';
import { RaphaelIconAlfrescoPublishDirective } from './components/raphael/icons/raphael-icon-alfresco-publish.component';
import { RaphaelIconBoxPublishDirective } from './components/raphael/icons/raphael-icon-box-publish.component';
import { RaphaelIconBusinessRuleDirective } from './components/raphael/icons/raphael-icon-business-rule.component';
import { RaphaelIconCamelDirective } from './components/raphael/icons/raphael-icon-camel.component';
import { RaphaelIconErrorDirective } from './components/raphael/icons/raphael-icon-error.component';
import { RaphaelIconGoogleDrivePublishDirective } from './components/raphael/icons/raphael-icon-google-drive-publish.component';
import { RaphaelIconManualDirective } from './components/raphael/icons/raphael-icon-manual.component';
import { RaphaelIconMessageDirective } from './components/raphael/icons/raphael-icon-message.component';
import { RaphaelIconMuleDirective } from './components/raphael/icons/raphael-icon-mule.component';
import { RaphaelIconReceiveDirective } from './components/raphael/icons/raphael-icon-receive.component';
import { RaphaelIconRestCallDirective } from './components/raphael/icons/raphael-icon-rest-call.component';
import { RaphaelIconScriptDirective } from './components/raphael/icons/raphael-icon-script.component';
import { RaphaelIconSendDirective } from './components/raphael/icons/raphael-icon-send.component';
import { RaphaelIconServiceDirective } from './components/raphael/icons/raphael-icon-service.component';
import { RaphaelIconSignalDirective } from './components/raphael/icons/raphael-icon-signal.component';
import { RaphaelIconTimerDirective } from './components/raphael/icons/raphael-icon-timer.component';
import { RaphaelIconUserDirective } from './components/raphael/icons/raphael-icon-user.component';
@NgModule({
imports: [
@@ -30,15 +122,171 @@ import { RAPHAEL_PROVIDERS } from './components/raphael/index';
TranslateModule
],
declarations: [
...DIAGRAM_DIRECTIVES,
...RAPHAEL_DIRECTIVES
DiagramComponent,
DiagramEventComponent,
DiagramStartEventComponent,
DiagramEndEventComponent,
DiagramContainerServiceTaskComponent,
DiagramTaskComponent,
DiagramServiceTaskComponent,
DiagramSendTaskComponent,
DiagramUserTaskComponent,
DiagramManualTaskComponent,
DiagramCamelTaskComponent,
DiagramMuleTaskComponent,
DiagramAlfrescoPublishTaskComponent,
DiagramRestCallTaskComponent,
DiagramGoogleDrivePublishTaskComponent,
DiagramBoxPublishTaskComponent,
DiagramReceiveTaskComponent,
DiagramScriptTaskComponent,
DiagramBusinessRuleTaskComponent,
DiagramSequenceFlowComponent,
DiagramGatewayComponent,
DiagramExclusiveGatewayComponent,
DiagramInclusiveGatewayComponent,
DiagramParallelGatewayComponent,
DiagramEventGatewayComponent,
DiagramIconServiceTaskComponent,
DiagramIconSendTaskComponent,
DiagramIconUserTaskComponent,
DiagramIconManualTaskComponent,
DiagramIconCamelTaskComponent,
DiagramIconMuleTaskComponent,
DiagramIconAlfrescoPublishTaskComponent,
DiagramIconRestCallTaskComponent,
DiagramIconGoogleDrivePublishTaskComponent,
DiagramIconBoxPublishTaskComponent,
DiagramIconReceiveTaskComponent,
DiagramIconScriptTaskComponent,
DiagramIconBusinessRuleTaskComponent,
DiagramContainerIconEventTaskComponent,
DiagramIconTimerComponent,
DiagramIconErrorComponent,
DiagramIconSignalComponent,
DiagramIconMessageComponent,
DiagramBoundaryEventComponent,
DiagramThrowEventComponent,
DiagramIntermediateCatchingEventComponent,
DiagramSubprocessComponent,
DiagramEventSubprocessComponent,
DiagramPoolsComponent,
DiagramPoolComponent,
DiagramLanesComponent,
DiagramLaneComponent,
DiagramTooltipComponent,
RaphaelCircleDirective,
RaphaelRectDirective,
RaphaelTextDirective,
RaphaelMultilineTextDirective,
RaphaelFlowArrowDirective,
RaphaelCrossDirective,
RaphaelPlusDirective,
RaphaelRhombusDirective,
RaphaelPentagonDirective,
RaphaelIconServiceDirective,
RaphaelIconSendDirective,
RaphaelIconUserDirective,
RaphaelIconManualDirective,
RaphaelIconCamelDirective,
RaphaelIconMuleDirective,
RaphaelIconAlfrescoPublishDirective,
RaphaelIconRestCallDirective,
RaphaelIconGoogleDrivePublishDirective,
RaphaelIconBoxPublishDirective,
RaphaelIconReceiveDirective,
RaphaelIconScriptDirective,
RaphaelIconBusinessRuleDirective,
RaphaelIconTimerDirective,
RaphaelIconErrorDirective,
RaphaelIconSignalDirective,
RaphaelIconMessageDirective
],
providers: [
...DIAGRAM_PROVIDERS,
...RAPHAEL_PROVIDERS
DiagramsService,
DiagramColorService,
RaphaelService
],
exports: [
...DIAGRAM_DIRECTIVES
DiagramComponent,
DiagramEventComponent,
DiagramStartEventComponent,
DiagramEndEventComponent,
DiagramContainerServiceTaskComponent,
DiagramTaskComponent,
DiagramServiceTaskComponent,
DiagramSendTaskComponent,
DiagramUserTaskComponent,
DiagramManualTaskComponent,
DiagramCamelTaskComponent,
DiagramMuleTaskComponent,
DiagramAlfrescoPublishTaskComponent,
DiagramRestCallTaskComponent,
DiagramGoogleDrivePublishTaskComponent,
DiagramBoxPublishTaskComponent,
DiagramReceiveTaskComponent,
DiagramScriptTaskComponent,
DiagramBusinessRuleTaskComponent,
DiagramSequenceFlowComponent,
DiagramGatewayComponent,
DiagramExclusiveGatewayComponent,
DiagramInclusiveGatewayComponent,
DiagramParallelGatewayComponent,
DiagramEventGatewayComponent,
DiagramIconServiceTaskComponent,
DiagramIconSendTaskComponent,
DiagramIconUserTaskComponent,
DiagramIconManualTaskComponent,
DiagramIconCamelTaskComponent,
DiagramIconMuleTaskComponent,
DiagramIconAlfrescoPublishTaskComponent,
DiagramIconRestCallTaskComponent,
DiagramIconGoogleDrivePublishTaskComponent,
DiagramIconBoxPublishTaskComponent,
DiagramIconReceiveTaskComponent,
DiagramIconScriptTaskComponent,
DiagramIconBusinessRuleTaskComponent,
DiagramContainerIconEventTaskComponent,
DiagramIconTimerComponent,
DiagramIconErrorComponent,
DiagramIconSignalComponent,
DiagramIconMessageComponent,
DiagramBoundaryEventComponent,
DiagramThrowEventComponent,
DiagramIntermediateCatchingEventComponent,
DiagramSubprocessComponent,
DiagramEventSubprocessComponent,
DiagramPoolsComponent,
DiagramPoolComponent,
DiagramLanesComponent,
DiagramLaneComponent,
DiagramTooltipComponent,
RaphaelCircleDirective,
RaphaelRectDirective,
RaphaelTextDirective,
RaphaelMultilineTextDirective,
RaphaelFlowArrowDirective,
RaphaelCrossDirective,
RaphaelPlusDirective,
RaphaelRhombusDirective,
RaphaelPentagonDirective,
RaphaelIconServiceDirective,
RaphaelIconSendDirective,
RaphaelIconUserDirective,
RaphaelIconManualDirective,
RaphaelIconCamelDirective,
RaphaelIconMuleDirective,
RaphaelIconAlfrescoPublishDirective,
RaphaelIconRestCallDirective,
RaphaelIconGoogleDrivePublishDirective,
RaphaelIconBoxPublishDirective,
RaphaelIconReceiveDirective,
RaphaelIconScriptDirective,
RaphaelIconBusinessRuleDirective,
RaphaelIconTimerDirective,
RaphaelIconErrorDirective,
RaphaelIconSignalDirective,
RaphaelIconMessageDirective
]
})
export class DiagramsModule {}
+1 -1
View File
@@ -15,7 +15,7 @@
* limitations under the License.
*/
import * as moment from 'moment';
import moment from 'moment-es6';
export class Chart {
id: string;
+8 -4
View File
@@ -15,8 +15,12 @@
* limitations under the License.
*/
export * from './components/index';
export * from './components/raphael/index';
export * from './models/index';
export * from './components/diagram-sequence-flow.component';
export * from './components/diagram.component';
export * from './diagram.module';
export * from './services/diagram-color.service';
export * from './services/diagrams.service';
export * from './models/diagram.model';
export * from './models/chart.model';
export * from './models/report.model';
@@ -17,7 +17,8 @@
import { AlfrescoApiService, LogService } from '@alfresco/adf-core';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Rx';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/throw';
@Injectable()
export class DiagramsService {
+5 -2
View File
@@ -15,7 +15,10 @@
* limitations under the License.
*/
export * from './insights.module';
export * from './diagram/diagram.module';
export * from './analytics-process/analytics-process.module';
export * from './diagram';
export * from './analytics-process';
export * from './insights.module';
+7 -7
View File
@@ -21,10 +21,10 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
import { MaterialModule } from './material.module';
import { DiagramsModule } from './diagram/diagram.module';
import { AnalyticsProcessModule } from './analytics-process/analytics-process.module';
import { AnalyticsProcessModule } from './analytics-process';
import { DiagramsModule } from './diagram';
import { MaterialModule } from './material.module';
@NgModule({
imports: [
@@ -34,8 +34,8 @@ import { DiagramsModule } from './diagram';
ReactiveFormsModule,
BrowserAnimationsModule,
MaterialModule,
AnalyticsProcessModule,
DiagramsModule
DiagramsModule,
AnalyticsProcessModule
],
providers: [
{
@@ -54,8 +54,8 @@ import { DiagramsModule } from './diagram';
ReactiveFormsModule,
BrowserAnimationsModule,
MaterialModule,
AnalyticsProcessModule,
DiagramsModule
DiagramsModule,
AnalyticsProcessModule
]
})
export class InsightsModule {
@@ -15,5 +15,4 @@
* limitations under the License.
*/
export * from './chart.model';
export * from './report.model';
export * from './index';