[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

View File

@@ -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
];

View File

@@ -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
];

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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();
});

View File

@@ -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
];

View File

@@ -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
];

View File

@@ -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
];

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
];

View File

@@ -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
];

View File

@@ -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
];

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 { 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
];

View File

@@ -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 {

View File

@@ -22,7 +22,7 @@ export class RaphaelBase {
paper: any;
private element: ElementRef;
public element: ElementRef;
public constructor(element: ElementRef,
private raphaelService: RaphaelService) {

View File

@@ -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);

View File

@@ -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
];

View File

@@ -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
];

View File

@@ -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();
});

View File

@@ -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';