clean all the events that start wit on prefix (#2536)

This commit is contained in:
Eugenio Romano
2017-10-25 09:35:38 +01:00
committed by Maurizio Vitale
parent b2414781d4
commit ded3847762
169 changed files with 705 additions and 749 deletions

View File

@@ -33,7 +33,9 @@
"@angular/platform-browser-dynamic": "4.4.5", "@angular/platform-browser-dynamic": "4.4.5",
"@angular/router": "4.4.5", "@angular/router": "4.4.5",
"@ngx-translate/core": "7.0.0", "@ngx-translate/core": "7.0.0",
"alfresco-js-api": "1.9.0",
"chart.js": "2.5.0", "chart.js": "2.5.0",
"classlist.js": "1.1.20150312",
"core-js": "2.4.1", "core-js": "2.4.1",
"custom-event-polyfill": "0.3.0", "custom-event-polyfill": "0.3.0",
"dialog-polyfill": "0.4.7", "dialog-polyfill": "0.4.7",
@@ -44,7 +46,6 @@
"minimatch": "3.0.4", "minimatch": "3.0.4",
"moment": "2.15.1", "moment": "2.15.1",
"ng2-3d-editor": "0.0.18", "ng2-3d-editor": "0.0.18",
"alfresco-js-api": "1.9.0",
"ng2-activiti-analytics": "1.9.0", "ng2-activiti-analytics": "1.9.0",
"ng2-activiti-diagrams": "1.9.0", "ng2-activiti-diagrams": "1.9.0",
"ng2-activiti-form": "1.9.0", "ng2-activiti-form": "1.9.0",

View File

@@ -17,7 +17,7 @@
[appId]="appId" [appId]="appId"
[hasIcon]="false" [hasIcon]="false"
(filterClick)="onTaskFilterClick($event)" (filterClick)="onTaskFilterClick($event)"
(onSuccess)="onSuccessTaskFilterList($event)" (success)="onSuccessTaskFilterList($event)"
#activitifilter> #activitifilter>
</adf-filters> </adf-filters>
</adf-accordion-group> </adf-accordion-group>
@@ -37,7 +37,7 @@
[data]="dataTasks" [data]="dataTasks"
[landingTaskId]="currentTaskId" [landingTaskId]="currentTaskId"
(rowClick)="onTaskRowClick($event)" (rowClick)="onTaskRowClick($event)"
(onSuccess)="onSuccessTaskList($event)" (success)="onSuccessTaskList($event)"
(row-click)="onRowClick($event)" (row-click)="onRowClick($event)"
(row-dblclick)="onTaskRowDblClick($event)" (row-dblclick)="onTaskRowDblClick($event)"
#activititasklist> #activititasklist>
@@ -123,7 +123,7 @@
[filterParam]="{index: 0}" [filterParam]="{index: 0}"
[appId]="appId" [appId]="appId"
(filterClick)="onProcessFilterClick($event)" (filterClick)="onProcessFilterClick($event)"
(onSuccess)="onSuccessProcessFilterList($event)"> (success)="onSuccessProcessFilterList($event)">
</adf-process-instance-filters> </adf-process-instance-filters>
</adf-accordion-group> </adf-accordion-group>
</adf-accordion> </adf-accordion>
@@ -139,7 +139,7 @@
[data]="dataProcesses" [data]="dataProcesses"
(rowClick)="onProcessRowClick($event)" (rowClick)="onProcessRowClick($event)"
(row-dblclick)="onProcessRowDblClick($event)" (row-dblclick)="onProcessRowDblClick($event)"
(onSuccess)="onSuccessProcessList($event)"> (success)="onSuccessProcessList($event)">
<!-- Custom column definition demo --> <!-- Custom column definition demo -->
<data-columns> <data-columns>

View File

@@ -53,8 +53,8 @@
[showLoginActions]="showFooter" [showLoginActions]="showFooter"
[showRememberMe]="showFooter" [showRememberMe]="showFooter"
copyrightText="© 2016 Alfresco Software, Inc. All Rights Reserved. (customised text)" copyrightText="© 2016 Alfresco Software, Inc. All Rights Reserved. (customised text)"
(onSuccess)="onLogin($event)" (success)="onLogin($event)"
(onError)="onError($event)"> (error)="onError($event)">
<div class="mobile-settings"> <div class="mobile-settings">
<p> <p>
<mat-slide-toggle <mat-slide-toggle

View File

@@ -10,5 +10,5 @@
[contextRoot]="contextRoot" [contextRoot]="contextRoot"
[servicePath]="servicePath" [servicePath]="servicePath"
[contentType]="'HTML'" [contentType]="'HTML'"
(onSuccess)= "logData($event)"> (success)= "logData($event)">
</alfresco-webscript-get> </alfresco-webscript-get>

View File

@@ -19,25 +19,25 @@
*/ */
/** IE9, IE10 and IE11 requires all of the following polyfills. **/ /** IE9, IE10 and IE11 requires all of the following polyfills. **/
// import 'core-js/es6/symbol'; import 'core-js/es6/symbol';
// import 'core-js/es6/object'; import 'core-js/es6/object';
// import 'core-js/es6/function'; import 'core-js/es6/function';
// import 'core-js/es6/parse-int'; import 'core-js/es6/parse-int';
// import 'core-js/es6/parse-float'; import 'core-js/es6/parse-float';
// import 'core-js/es6/number'; import 'core-js/es6/number';
// import 'core-js/es6/math'; import 'core-js/es6/math';
// import 'core-js/es6/string'; import 'core-js/es6/string';
// import 'core-js/es6/date'; import 'core-js/es6/date';
// import 'core-js/es6/array'; import 'core-js/es6/array';
// import 'core-js/es6/regexp'; import 'core-js/es6/regexp';
// import 'core-js/es6/map'; import 'core-js/es6/map';
// import 'core-js/es6/set'; import 'core-js/es6/set';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */ /** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`. import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following to support `@angular/animation`. */ /** IE10 and IE11 requires the following to support `@angular/animation`. */
// import 'web-animations-js'; // Run `npm install --save web-animations-js`. import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** Evergreen browsers require these. **/ /** Evergreen browsers require these. **/
@@ -65,4 +65,4 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
* Date, currency, decimal and percent pipes. * Date, currency, decimal and percent pipes.
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/ */
// import 'intl'; // Run `npm install --save intl`. import 'intl'; // Run `npm install --save intl`.

View File

@@ -75,7 +75,7 @@ the following example:
<adf-process-instance-filters <adf-process-instance-filters
[appId]="appId" [appId]="appId"
(filterClick)="onProcessFilterClick($event)" (filterClick)="onProcessFilterClick($event)"
(onSuccess)="onSuccessProcessFilterList($event)"> (success)="onSuccessProcessFilterList($event)">
</adf-process-instance-filters> </adf-process-instance-filters>
</adf-accordion-group> </adf-accordion-group>
</adf-accordion> </adf-accordion>

View File

@@ -34,5 +34,5 @@ The component generates and shows the charts
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | Raised when the charts are loaded | | success | Raised when the charts are loaded |
| onError | Raised when an error occurs during the loading | | error | Raised when an error occurs during the loading |

View File

@@ -34,6 +34,6 @@ The component shows the list of all the available reports
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | The event is emitted when the report list is loaded | | success | The event is emitted when the report list is loaded |
| onError | The event is emitted when an error occurs during the loading | | error | The event is emitted when an error occurs during the loading |
| reportClick | The event is emitted when the report in the list is selected | | reportClick | The event is emitted when the report in the list is selected |

View File

@@ -47,7 +47,7 @@ You can also hide chart parameters UI by setting the `hideParameters` to `true`:
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | The event is emitted when the report parameters are loaded | | success | The event is emitted when the report parameters are loaded |
| onError | The event is emitted when an error occurs during the loading | | error | The event is emitted when an error occurs during the loading |
| reportSaved | The event is emitted when a report is saved | | reportSaved | The event is emitted when a report is saved |
| reportDeleted | The event is emitted when a report is deleted | | reportDeleted | The event is emitted when a report is deleted |

View File

@@ -45,5 +45,5 @@ The below component shows the diagram of a running process instance with the act
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | Raised when the diagrams elements are loaded | | success | Raised when the diagrams elements are loaded |
| onError | Raised when an error occurs during loading | | error | Raised when an error occurs during loading |

View File

@@ -141,7 +141,7 @@ and store the form field as metadata. The param nameNode is optional.
| formCompleted | [FormModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form.model.ts) | Invoked when form is submitted with `Complete` outcome. | | formCompleted | [FormModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form.model.ts) | Invoked when form is submitted with `Complete` outcome. |
| formDataRefreshed | [FormModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form.model.ts) | Invoked when form values are refreshed due to a data property change | | formDataRefreshed | [FormModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form.model.ts) | Invoked when form values are refreshed due to a data property change |
| executeOutcome | [FormOutcomeEvent](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form-outcome-event.model.ts) | Invoked when any outcome is executed, default behaviour can be prevented via `event.preventDefault()` | | executeOutcome | [FormOutcomeEvent](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form-outcome-event.model.ts) | Invoked when any outcome is executed, default behaviour can be prevented via `event.preventDefault()` |
| onError | any | Invoked at any error | | error | any | Invoked at any error |
## Details ## Details

View File

@@ -53,8 +53,8 @@ Authenticates to Alfresco Content Services and Alfresco Process Services.
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | Raised when the login is done | | success | Raised when the login is done |
| onError | Raised when the login fails | | error | Raised when the login fails |
| executeSubmit | Raised when the form is submitted | | executeSubmit | Raised when the form is submitted |
## Details ## Details
@@ -66,8 +66,8 @@ Authenticates to Alfresco Content Services and Alfresco Process Services.
```html ```html
<adf-login <adf-login
providers="ALL" providers="ALL"
(onSuccess)="mySuccessMethod($event)" (success)="mySuccessMethod($event)"
(onError)="myErrorMethod($event)"> (error)="myErrorMethod($event)">
</adf-login> </adf-login>
``` ```

View File

@@ -41,8 +41,8 @@ If both `appId` and `appName` are specified then `appName` will take precedence
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | Raised when the list of filters has been successfully loaded from the server | | success | Raised when the list of filters has been successfully loaded from the server |
| onError | Raised when an error occurs | | error | Raised when an error occurs |
| filterClick | Raised when the user selects a filter from the list | | filterClick | Raised when the user selects a filter from the list |
## Details ## Details

View File

@@ -38,9 +38,14 @@ This component renders a list containing all the process instances matched by th
### Events ### Events
- **rowClick**: Emitted when a row in the process list is clicked | Name | Description |
- **onSuccess**: Emitted when the list of process instances has been loaded successfully from the server | --- | --- |
- **onError**: Emitted when an error is encountered loading the list of process instances from the server | rowClick | Emitted when a row in the process list is clicked |
| success | Emitted when the list of process instances has been loaded successfully from the server |
| error | Emitted when an error is encountered loading the list of process instances from the server |
## Details ## Details

View File

@@ -52,7 +52,7 @@ Shows the details of the task id passed in input
| formCompleted | Raised when form is submitted with `Complete` outcome. | | formCompleted | Raised when form is submitted with `Complete` outcome. |
| taskCreated | Raised when a checklist task is created. | | taskCreated | Raised when a checklist task is created. |
| executeOutcome | Raised when any outcome is executed, default behaviour can be prevented via `event.preventDefault()` | | executeOutcome | Raised when any outcome is executed, default behaviour can be prevented via `event.preventDefault()` |
| onError | Raised at any error | | error | Raised at any error |
## Details ## Details

View File

@@ -40,8 +40,8 @@ If both `appId` and `appName` are specified then `appName` will take precedence
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| filterClick | Raised when the filter in the list is clicked | | filterClick | Raised when the filter in the list is clicked |
| onSuccess | Raised when the list is loaded | | success | Raised when the list is loaded |
| onError | Raised if there is an error during the loading | | error | Raised if there is an error during the loading |
## Details ## Details

View File

@@ -45,7 +45,7 @@ You can also use HTML-based schema declaration like shown below:
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | Raised when the task list is loaded | | success | Raised when the task list is loaded |
| rowClick | Raised when the task in the list is clicked | | rowClick | Raised when the task in the list is clicked |
| rowsSelected | Raised when the a row is selected/unselected | | rowsSelected | Raised when the a row is selected/unselected |

View File

@@ -24,7 +24,7 @@
[multipleFiles]="false" [multipleFiles]="false"
[acceptedFilesType]=".jpg,.gif,.png,.svg" [acceptedFilesType]=".jpg,.gif,.png,.svg"
[versioning]="false" [versioning]="false"
(onSuccess)="customMethod($event)"> (success)="customMethod($event)">
</adf-upload-button> </adf-upload-button>
<file-uploading-dialog></file-uploading-dialog> <file-uploading-dialog></file-uploading-dialog>
``` ```
@@ -50,7 +50,7 @@
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | Raised when the file is uploaded | | success | Raised when the file is uploaded |
## Details ## Details

View File

@@ -17,7 +17,7 @@ Adds a drag and drop area to upload files to Alfresco.
## Basic Usage ## Basic Usage
```html ```html
<adf-upload-drag-area (onSuccess)="customMethod($event)"> <adf-upload-drag-area (success)="onSuccess($event)">
<div style="width: 200px; height: 100px; border: 1px solid #888888"> <div style="width: 200px; height: 100px; border: 1px solid #888888">
DRAG HERE DRAG HERE
</div> </div>
@@ -50,4 +50,4 @@ export class AppComponent {
| Name | Description | | Name | Description |
| --- | --- | | --- | --- |
| onSuccess | Raised when the file is uploaded | | success | Raised when the file is uploaded |

View File

@@ -25,7 +25,7 @@
[servicePath]="string" [servicePath]="string"
[showData]="boolean" [showData]="boolean"
[contentType]="JSON | HTML | DATATABLE | TEXT" [contentType]="JSON | HTML | DATATABLE | TEXT"
(onSuccess)= "logData($event)"> (success)= "logData($event)">
</adf-webscript-get> </adf-webscript-get>
``` ```
@@ -63,8 +63,14 @@ export class AppComponent {
| scriptPath | string | alfresco | path to Web Script (as defined by Web Script) | | scriptPath | string | alfresco | path to Web Script (as defined by Web Script) |
| contentType | string | service | path where Web Script service is mapped default value | | contentType | string | service | path where Web Script service is mapped default value |
| contentType | string | TEXT | how to handle the data received from the web script JSON , HTML , DATATABLE or TEXT | | contentType | string | TEXT | how to handle the data received from the web script JSON , HTML , DATATABLE or TEXT |
| onSuccess | event | | You can get the plain data from the webscript through the **onSuccess** event parameter and use it as you need in your application | | showData | boolean | true | render the webscript data |
| showData | booleann | true | render the webscript data |
### Events
| Name | Description |
| --- | --- |
| success | You can get the plain data from the webscript through the **success** event parameter and use it as you need in your application |
**contentType** {string} **contentType** {string}
***data*** {string} data containing the plain value you get from the webscipt as an output parameter ***data*** {string} data containing the plain value you get from the webscipt as an output parameter
@@ -162,11 +168,11 @@ This sample Web Scripts reside in your Alfresco Server. You can access the folde
[scriptPath]="'Sample/folder/JSON_EXAMPLE'" [scriptPath]="'Sample/folder/JSON_EXAMPLE'"
[contentType]="'HTML'" [contentType]="'HTML'"
[showData]="false" [showData]="false"
(onSuccess)="logDataExample($event)"> (success)="logDataExample($event)">
</adf-webscript-get> </adf-webscript-get>
``` ```
You can get the plain data from the webscript through the **onSuccess** event parameter and use it as you need in your application You can get the plain data from the webscript through the **success** event parameter and use it as you need in your application
```ts ```ts
logDataExample(data) { logDataExample(data) {

View File

@@ -62,7 +62,7 @@
"@types/hammerjs": "2.0.35", "@types/hammerjs": "2.0.35",
"@types/jasmine": "2.5.35", "@types/jasmine": "2.5.35",
"@types/node": "6.0.45", "@types/node": "6.0.45",
"adf-tslint-rules": "0.0.3", "adf-tslint-rules": "0.0.4",
"angular2-template-loader": "0.6.2", "angular2-template-loader": "0.6.2",
"autoprefixer": "6.5.4", "autoprefixer": "6.5.4",
"codelyzer": "3.1.2", "codelyzer": "3.1.2",

View File

@@ -92,7 +92,7 @@ describe('AnalyticsGeneratorComponent', () => {
}); });
it('Should render the Process definition overview report ', (done) => { it('Should render the Process definition overview report ', (done) => {
component.onSuccess.subscribe((res) => { component.success.subscribe((res) => {
expect(res).toBeDefined(); expect(res).toBeDefined();
expect(res.length).toEqual(3); expect(res.length).toEqual(3);
@@ -134,7 +134,7 @@ describe('AnalyticsGeneratorComponent', () => {
}); });
it('Should render the Process definition overview report when onchanges is called ', (done) => { it('Should render the Process definition overview report when onchanges is called ', (done) => {
component.onSuccess.subscribe((res) => { component.success.subscribe((res) => {
expect(res).toBeDefined(); expect(res).toBeDefined();
expect(res.length).toEqual(3); expect(res.length).toEqual(3);
@@ -176,7 +176,7 @@ describe('AnalyticsGeneratorComponent', () => {
}); });
it('Should render the Task overview report ', (done) => { it('Should render the Task overview report ', (done) => {
component.onSuccess.subscribe((res) => { component.success.subscribe((res) => {
expect(res).toBeDefined(); expect(res).toBeDefined();
expect(res.length).toEqual(3); expect(res.length).toEqual(3);
@@ -260,7 +260,7 @@ describe('AnalyticsGeneratorComponent', () => {
}); });
it('Should emit onError event with a 404 response ', (done) => { it('Should emit onError event with a 404 response ', (done) => {
component.onError.subscribe((err) => { component.error.subscribe((err) => {
expect(err).toBeDefined(); expect(err).toBeDefined();
done(); done();
}); });

View File

@@ -35,10 +35,10 @@ export class AnalyticsGeneratorComponent implements OnChanges {
reportParamQuery: ReportQuery = undefined; reportParamQuery: ReportQuery = undefined;
@Output() @Output()
onSuccess = new EventEmitter(); success = new EventEmitter();
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
reports: Chart[]; reports: Chart[];
@@ -83,10 +83,10 @@ export class AnalyticsGeneratorComponent implements OnChanges {
if (this.reports) { if (this.reports) {
this.selectFirstReport(); this.selectFirstReport();
} }
this.onSuccess.emit(res); this.success.emit(res);
}, },
(err: any) => { (err: any) => {
this.onError.emit(err); this.error.emit(err);
} }
); );
} }

View File

@@ -93,7 +93,7 @@ describe('AnalyticsReportHeatMapComponent', () => {
it('should render the dropdown with the metric options', async(() => { it('should render the dropdown with the metric options', async(() => {
component.report = { totalCountsPercentages: { 'sid-fake-id': 10, 'fake-start-event': 30 } }; component.report = { totalCountsPercentages: { 'sid-fake-id': 10, 'fake-start-event': 30 } };
component.onSuccess.subscribe(() => { component.success.subscribe(() => {
fixture.whenStable().then(() => { fixture.whenStable().then(() => {
let dropDown: any = element.querySelector('#select-metrics'); let dropDown: any = element.querySelector('#select-metrics');
expect(dropDown).toBeDefined(); expect(dropDown).toBeDefined();

View File

@@ -29,10 +29,10 @@ export class AnalyticsReportHeatMapComponent implements OnInit {
report: any; report: any;
@Output() @Output()
onSuccess = new EventEmitter(); success = new EventEmitter();
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
field: any = {}; field: any = {};
@@ -53,7 +53,7 @@ export class AnalyticsReportHeatMapComponent implements OnInit {
this.analyticsService.getMetricValues().subscribe( this.analyticsService.getMetricValues().subscribe(
(opts: any[]) => { (opts: any[]) => {
this.field.options = opts; this.field.options = opts;
this.onSuccess.emit(opts); this.success.emit(opts);
} }
); );
} }

View File

@@ -113,7 +113,7 @@ describe('AnalyticsReportListComponent', () => {
responseText: reportList responseText: reportList
}); });
component.onSuccess.subscribe(() => { component.success.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
expect(element.querySelector('#report-list-0 .activiti-filters__entry-icon').innerHTML).toBe('assignment'); expect(element.querySelector('#report-list-0 .activiti-filters__entry-icon').innerHTML).toBe('assignment');
expect(element.querySelector('#report-list-0 > span').innerHTML).toBe('Fake Test Process definition heat map'); expect(element.querySelector('#report-list-0 > span').innerHTML).toBe('Fake Test Process definition heat map');
@@ -124,13 +124,12 @@ describe('AnalyticsReportListComponent', () => {
expect(component.isReportsEmpty()).toBeFalsy(); expect(component.isReportsEmpty()).toBeFalsy();
done(); done();
}); });
}); });
it('Report render the report list relative to a single app', (done) => { it('Report render the report list relative to a single app', (done) => {
fixture.detectChanges(); fixture.detectChanges();
component.onSuccess.subscribe(() => { component.success.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
expect(element.querySelector('#report-list-0 .activiti-filters__entry-icon').innerHTML).toBe('assignment'); expect(element.querySelector('#report-list-0 .activiti-filters__entry-icon').innerHTML).toBe('assignment');
expect(element.querySelector('#report-list-0 > span').innerHTML).toBe('Fake Test Process definition heat map'); expect(element.querySelector('#report-list-0 > span').innerHTML).toBe('Fake Test Process definition heat map');
@@ -152,7 +151,7 @@ describe('AnalyticsReportListComponent', () => {
it('Report emit an error with a empty response', (done) => { it('Report emit an error with a empty response', (done) => {
fixture.detectChanges(); fixture.detectChanges();
component.onError.subscribe((err) => { component.error.subscribe((err) => {
expect(err).toBeDefined(); expect(err).toBeDefined();
done(); done();
}); });
@@ -190,7 +189,7 @@ describe('AnalyticsReportListComponent', () => {
expect(component.reports.length).toEqual(1); expect(component.reports.length).toEqual(1);
component.reload(); component.reload();
component.onSuccess.subscribe(() => { component.success.subscribe(() => {
expect(component.reports.length).toEqual(5); expect(component.reports.length).toEqual(5);
done(); done();
}); });
@@ -208,7 +207,7 @@ describe('AnalyticsReportListComponent', () => {
component.reload(2002); component.reload(2002);
component.onSuccess.subscribe(() => { component.success.subscribe(() => {
expect(component.reports.length).toEqual(5); expect(component.reports.length).toEqual(5);
expect(component.currentReport).toBeDefined(); expect(component.currentReport).toBeDefined();
expect(component.currentReport).not.toBeNull(); expect(component.currentReport).not.toBeNull();

View File

@@ -44,10 +44,10 @@ export class AnalyticsReportListComponent implements OnInit {
reportClick: EventEmitter<ReportParametersModel> = new EventEmitter<ReportParametersModel>(); reportClick: EventEmitter<ReportParametersModel> = new EventEmitter<ReportParametersModel>();
@Output() @Output()
onSuccess = new EventEmitter(); success = new EventEmitter();
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
private reportObserver: Observer<any>; private reportObserver: Observer<any>;
report$: Observable<any>; report$: Observable<any>;
@@ -98,11 +98,11 @@ export class AnalyticsReportListComponent implements OnInit {
if (this.selectFirst) { if (this.selectFirst) {
this.selectFirstReport(); this.selectFirstReport();
} }
this.onSuccess.emit(res); this.success.emit(res);
} }
}, },
(err: any) => { (err: any) => {
this.onError.emit(err); this.error.emit(err);
} }
); );
} }
@@ -118,7 +118,7 @@ export class AnalyticsReportListComponent implements OnInit {
response.forEach((report) => { response.forEach((report) => {
this.reportObserver.next(report); this.reportObserver.next(report);
}); });
this.onSuccess.emit(response); this.success.emit(response);
} }
); );
} }

View File

@@ -81,17 +81,17 @@ describe('AnalyticsReportParametersComponent', () => {
it('Should initialize the Report form with a Form Group ', (done) => { it('Should initialize the Report form with a Form Group ', (done) => {
let fakeReportParam = new ReportParametersModel(analyticParamsMock.reportDefParamTask); let fakeReportParam = new ReportParametersModel(analyticParamsMock.reportDefParamTask);
component.onSuccessReportParams.subscribe(() => { component.successReportParams.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
expect(component.reportForm.get('taskGroup')).toBeDefined(); expect(component.reportForm.get('taskGroup')).toBeDefined();
expect(component.reportForm.get('taskGroup').get('taskName')).toBeDefined(); expect(component.reportForm.get('taskGroup').get('taskName')).toBeDefined();
done(); done();
}); });
component.onSuccessReportParams.emit(fakeReportParam); component.successReportParams.emit(fakeReportParam);
}); });
it('Should render a dropdown with all the status when the definition parameter type is \'status\' ', (done) => { it('Should render a dropdown with all the status when the definition parameter type is \'status\' ', (done) => {
component.onSuccessReportParams.subscribe(() => { component.successReportParams.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
let dropDown: any = element.querySelector('#select-status'); let dropDown: any = element.querySelector('#select-status');
expect(element.querySelector('h4').textContent.trim()).toEqual('Fake Task overview status'); expect(element.querySelector('h4').textContent.trim()).toEqual('Fake Task overview status');
@@ -116,7 +116,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should render a number with the default value when the definition parameter type is \'integer\' ', (done) => { it('Should render a number with the default value when the definition parameter type is \'integer\' ', (done) => {
component.onSuccessReportParams.subscribe(() => { component.successReportParams.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
let numberElement: any = element.querySelector('#slowProcessInstanceInteger'); let numberElement: any = element.querySelector('#slowProcessInstanceInteger');
expect(numberElement.value).toEqual('10'); expect(numberElement.value).toEqual('10');
@@ -136,7 +136,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should render a duration component when the definition parameter type is \'duration\' ', (done) => { it('Should render a duration component when the definition parameter type is \'duration\' ', (done) => {
component.onSuccessReportParams.subscribe(() => { component.successReportParams.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
let numberElement: any = element.querySelector('#duration'); let numberElement: any = element.querySelector('#duration');
expect(numberElement.value).toEqual('0'); expect(numberElement.value).toEqual('0');
@@ -163,7 +163,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should save an Params object when the submit is performed', () => { it('Should save an Params object when the submit is performed', () => {
component.onSuccess.subscribe((res) => { component.success.subscribe((res) => {
expect(res.dateRange.startDate).toEqual('2016-09-01T00:00:00.000Z'); expect(res.dateRange.startDate).toEqual('2016-09-01T00:00:00.000Z');
expect(res.dateRange.endDate).toEqual('2016-10-05T00:00:00.000Z'); expect(res.dateRange.endDate).toEqual('2016-10-05T00:00:00.000Z');
expect(res.status).toEqual('All'); expect(res.status).toEqual('All');
@@ -206,7 +206,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should render a checkbox with the value true when the definition parameter type is \'boolean\' ', (done) => { it('Should render a checkbox with the value true when the definition parameter type is \'boolean\' ', (done) => {
component.onSuccessReportParams.subscribe(() => { component.successReportParams.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
let checkElement: any = element.querySelector('#typeFiltering-input'); let checkElement: any = element.querySelector('#typeFiltering-input');
expect(checkElement.checked).toBeTruthy(); expect(checkElement.checked).toBeTruthy();
@@ -225,7 +225,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should render a date range components when the definition parameter type is \'dateRange\' ', (done) => { it('Should render a date range components when the definition parameter type is \'dateRange\' ', (done) => {
component.onSuccessReportParams.subscribe(() => { component.successReportParams.subscribe(() => {
let dateElement: any = element.querySelector('adf-date-range-widget'); let dateElement: any = element.querySelector('adf-date-range-widget');
expect(dateElement).toBeDefined(); expect(dateElement).toBeDefined();
done(); done();
@@ -244,7 +244,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should render a dropdown with all the RangeInterval when the definition parameter type is \'dateRangeInterval\' ', (done) => { it('Should render a dropdown with all the RangeInterval when the definition parameter type is \'dateRangeInterval\' ', (done) => {
component.onSuccessReportParams.subscribe(() => { component.successReportParams.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
let dropDown: any = element.querySelector('#select-dateRangeInterval'); let dropDown: any = element.querySelector('#select-dateRangeInterval');
expect(dropDown).toBeDefined(); expect(dropDown).toBeDefined();
@@ -270,7 +270,7 @@ describe('AnalyticsReportParametersComponent', () => {
it('Should render a dropdown with all the process definition when the definition parameter type is \'processDefinition\' and the' + it('Should render a dropdown with all the process definition when the definition parameter type is \'processDefinition\' and the' +
' reportId change', (done) => { ' reportId change', (done) => {
component.onSuccessParamOpt.subscribe(() => { component.successParamOpt.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
let dropDown: any = element.querySelector('#select-processDefinitionId'); let dropDown: any = element.querySelector('#select-processDefinitionId');
expect(dropDown).toBeDefined(); expect(dropDown).toBeDefined();
@@ -303,7 +303,7 @@ describe('AnalyticsReportParametersComponent', () => {
it('Should render a dropdown with all the process definition when the definition parameter type is \'processDefinition\' and the' + it('Should render a dropdown with all the process definition when the definition parameter type is \'processDefinition\' and the' +
' appId change', (done) => { ' appId change', (done) => {
component.onSuccessParamOpt.subscribe(() => { component.successParamOpt.subscribe(() => {
fixture.detectChanges(); fixture.detectChanges();
let dropDown: any = element.querySelector('#select-processDefinitionId'); let dropDown: any = element.querySelector('#select-processDefinitionId');
expect(dropDown).toBeDefined(); expect(dropDown).toBeDefined();
@@ -336,7 +336,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should create an empty valid form when there are no parameters definitions', () => { it('Should create an empty valid form when there are no parameters definitions', () => {
component.onSuccess.subscribe((res) => { component.success.subscribe((res) => {
expect(component.reportForm).toBeDefined(); expect(component.reportForm).toBeDefined();
expect(component.reportForm.valid).toEqual(true); expect(component.reportForm.valid).toEqual(true);
expect(component.reportForm.controls).toEqual({}); expect(component.reportForm.controls).toEqual({});
@@ -354,7 +354,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should load the task list when a process definition is selected', () => { it('Should load the task list when a process definition is selected', () => {
component.onSuccessReportParams.subscribe((res) => { component.successReportParams.subscribe((res) => {
expect(res).toBeDefined(); expect(res).toBeDefined();
expect(res.length).toEqual(2); expect(res.length).toEqual(2);
expect(res[0].id).toEqual('Fake task name 1'); expect(res[0].id).toEqual('Fake task name 1');
@@ -375,7 +375,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should emit an error with a 404 response when the options response is not found', (done) => { it('Should emit an error with a 404 response when the options response is not found', (done) => {
component.onError.subscribe((err) => { component.error.subscribe((err) => {
expect(err).toBeDefined(); expect(err).toBeDefined();
done(); done();
}); });
@@ -399,7 +399,7 @@ describe('AnalyticsReportParametersComponent', () => {
}); });
it('Should emit an error with a 404 response when the report parameters response is not found', (done) => { it('Should emit an error with a 404 response when the report parameters response is not found', (done) => {
component.onError.subscribe((err) => { component.error.subscribe((err) => {
expect(err).toBeDefined(); expect(err).toBeDefined();
done(); done();
}); });

View File

@@ -55,16 +55,16 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
hideComponent: boolean = false; hideComponent: boolean = false;
@Output() @Output()
onSuccess = new EventEmitter(); success = new EventEmitter();
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Output() @Output()
onEdit = new EventEmitter(); edit = new EventEmitter();
@Output() @Output()
onFormValueChanged = new EventEmitter(); formValueChanged = new EventEmitter();
@Output() @Output()
saveReportSuccess = new EventEmitter(); saveReportSuccess = new EventEmitter();
@@ -77,9 +77,9 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
onDropdownChanged = new EventEmitter(); onDropdownChanged = new EventEmitter();
onSuccessReportParams = new EventEmitter(); successReportParams = new EventEmitter();
onSuccessParamOpt = new EventEmitter(); successParamOpt = new EventEmitter();
reportParameters: ReportParametersModel; reportParameters: ReportParametersModel;
@@ -113,7 +113,7 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
} }
}); });
this.paramOpts = this.onSuccessReportParams.subscribe((report: ReportParametersModel) => { this.paramOpts = this.successReportParams.subscribe((report: ReportParametersModel) => {
if (report.hasParameters()) { if (report.hasParameters()) {
this.retrieveParameterOptions(report.definition.parameters, this.appId); this.retrieveParameterOptions(report.definition.parameters, this.appId);
this.generateFormGroupFromParameter(report.definition.parameters); this.generateFormGroupFromParameter(report.definition.parameters);
@@ -193,14 +193,14 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
(res: ReportParametersModel) => { (res: ReportParametersModel) => {
this.reportParameters = res; this.reportParameters = res;
if (this.reportParameters.hasParameters()) { if (this.reportParameters.hasParameters()) {
this.onSuccessReportParams.emit(res); this.successReportParams.emit(res);
} else { } else {
this.reportForm = this.formBuilder.group({}); this.reportForm = this.formBuilder.group({});
this.onSuccess.emit(); this.success.emit();
} }
}, },
(err: any) => { (err: any) => {
this.onError.emit(err); this.error.emit(err);
} }
); );
} }
@@ -210,10 +210,10 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
this.analyticsService.getParamValuesByType(param.type, appId, reportId, processDefinitionId).subscribe( this.analyticsService.getParamValuesByType(param.type, appId, reportId, processDefinitionId).subscribe(
(opts: ParameterValueModel[]) => { (opts: ParameterValueModel[]) => {
param.options = opts; param.options = opts;
this.onSuccessParamOpt.emit(opts); this.successParamOpt.emit(opts);
}, },
(err: any) => { (err: any) => {
this.onError.emit(err); this.error.emit(err);
} }
); );
}); });
@@ -227,11 +227,11 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
public submit(values: any) { public submit(values: any) {
this.reportParamQuery = this.convertFormValuesToReportParamQuery(values); this.reportParamQuery = this.convertFormValuesToReportParamQuery(values);
this.onSuccess.emit(this.reportParamQuery); this.success.emit(this.reportParamQuery);
} }
onValueChanged(values: any) { onValueChanged(values: any) {
this.onFormValueChanged.emit(values); this.formValueChanged.emit(values);
if (this.reportForm && this.reportForm.valid) { if (this.reportForm && this.reportForm.valid) {
this.submit(values); this.submit(values);
} }
@@ -306,10 +306,10 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
this.reportParamsSub = this.analyticsService.updateReport(this.reportParameters.id, this.reportParameters.name).subscribe( this.reportParamsSub = this.analyticsService.updateReport(this.reportParameters.id, this.reportParameters.name).subscribe(
(res: ReportParametersModel) => { (res: ReportParametersModel) => {
this.editDisable(); this.editDisable();
this.onEdit.emit(this.reportParameters.name); this.edit.emit(this.reportParameters.name);
}, },
(err: any) => { (err: any) => {
this.onError.emit(err); this.error.emit(err);
} }
); );
} }

View File

@@ -1,11 +1,11 @@
<div class="adf-analytics-container"> <div class="adf-analytics-container">
<analytics-report-parameters [appId]="appId" [reportId]="reportId" <analytics-report-parameters [appId]="appId" [reportId]="reportId"
[hideComponent]="hideParameters" [hideComponent]="hideParameters"
(onFormValueChanged)="reset()" (formValueChanged)="reset()"
(onSuccess)="showReport($event)" (success)="showReport($event)"
(saveReportSuccess)="onSaveReportSuccess($event)" (saveReportSuccess)="onSaveReportSuccess($event)"
(deleteReportSuccess)="onDeleteReportSuccess()" (deleteReportSuccess)="onDeleteReportSuccess()"
(onEdit)="onEditReport($event)"> (edit)="onEditReport($event)">
</analytics-report-parameters> </analytics-report-parameters>
<adf-analytics-generator [reportId]="reportId" <adf-analytics-generator [reportId]="reportId"

View File

@@ -152,6 +152,7 @@
"templates-use-public": true, "templates-use-public": true,
"invoke-injectable": true, "invoke-injectable": true,
"adf-file-name": true, "adf-file-name": true,
"adf-class-name": true "adf-class-name": true,
} "adf-prefix-name": true
}
} }

View File

@@ -54,7 +54,7 @@
"@types/hammerjs": "2.0.35", "@types/hammerjs": "2.0.35",
"@types/jasmine": "2.5.35", "@types/jasmine": "2.5.35",
"@types/node": "6.0.45", "@types/node": "6.0.45",
"adf-tslint-rules": "0.0.3", "adf-tslint-rules": "0.0.4",
"angular2-template-loader": "0.6.2", "angular2-template-loader": "0.6.2",
"autoprefixer": "6.5.4", "autoprefixer": "6.5.4",
"codelyzer": "3.1.2", "codelyzer": "3.1.2",

View File

@@ -26,7 +26,7 @@ export class DiagramAlfrescoPublishTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramBoxPublishTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramBusinessRuleTaskComponent {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}
} }

View File

@@ -28,7 +28,7 @@ export class DiagramCamelTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramContainerServiceTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramGoogleDrivePublishTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramManualTaskComponent {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) { constructor(public elementRef: ElementRef) {
} }

View File

@@ -28,7 +28,7 @@ export class DiagramMuleTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramReceiveTaskComponent {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}
} }

View File

@@ -28,7 +28,7 @@ export class DiagramRestCallTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramScriptTaskComponent {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}
} }

View File

@@ -28,7 +28,7 @@ export class DiagramSendTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -28,7 +28,7 @@ export class DiagramServiceTaskComponent {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}
} }

View File

@@ -29,7 +29,7 @@ export class DiagramTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
rectLeftCorner: any; rectLeftCorner: any;
textPosition: any; textPosition: any;

View File

@@ -28,7 +28,7 @@ export class DiagramUserTaskComponent {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}
} }

View File

@@ -29,7 +29,7 @@ export class DiagramBoundaryEventComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 1}; options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 1};

View File

@@ -29,7 +29,7 @@ export class DiagramThrowEventComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 1}; options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 1};

View File

@@ -26,7 +26,7 @@ export class DiagramSequenceFlowComponent implements OnInit {
flow: any; flow: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}

View File

@@ -49,10 +49,10 @@ export class DiagramComponent implements OnChanges {
height: number = 500; height: number = 500;
@Output() @Output()
onSuccess = new EventEmitter(); success = new EventEmitter();
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
PADDING_WIDTH: number = 60; PADDING_WIDTH: number = 60;
PADDING_HEIGHT: number = 60; PADDING_HEIGHT: number = 60;
@@ -81,10 +81,10 @@ export class DiagramComponent implements OnChanges {
this.raphaelService.setting(this.diagram.diagramWidth + this.PADDING_WIDTH, this.raphaelService.setting(this.diagram.diagramWidth + this.PADDING_WIDTH,
this.diagram.diagramHeight + this.PADDING_HEIGHT); this.diagram.diagramHeight + this.PADDING_HEIGHT);
this.setMetricValueToDiagramElement(this.diagram, this.metricPercentages, this.metricType); this.setMetricValueToDiagramElement(this.diagram, this.metricPercentages, this.metricType);
this.onSuccess.emit(res); this.success.emit(res);
}, },
(err: any) => { (err: any) => {
this.onError.emit(err); this.error.emit(err);
} }
); );
} }
@@ -96,10 +96,10 @@ export class DiagramComponent implements OnChanges {
this.raphaelService.setting(this.diagram.diagramWidth + this.PADDING_WIDTH, this.raphaelService.setting(this.diagram.diagramWidth + this.PADDING_WIDTH,
this.diagram.diagramHeight + this.PADDING_HEIGHT); this.diagram.diagramHeight + this.PADDING_HEIGHT);
this.setMetricValueToDiagramElement(this.diagram, this.metricPercentages, this.metricType); this.setMetricValueToDiagramElement(this.diagram, this.metricPercentages, this.metricType);
this.onSuccess.emit(res); this.success.emit(res);
}, },
(err: any) => { (err: any) => {
this.onError.emit(err); this.error.emit(err);
} }
); );
} }

View File

@@ -29,7 +29,7 @@ export class DiagramEndEventComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: '', radius: ''}; options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: '', radius: ''};
iconFillColor: any; iconFillColor: any;

View File

@@ -34,7 +34,7 @@ export class DiagramEventComponent implements OnInit {
iconFillColor: any; iconFillColor: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};

View File

@@ -29,7 +29,7 @@ export class DiagramStartEventComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: '', radius: ''}; options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: '', radius: ''};
iconFillColor: any; iconFillColor: any;

View File

@@ -29,7 +29,7 @@ export class DiagramEventGatewayComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
centerPentagon: any = {}; centerPentagon: any = {};

View File

@@ -29,7 +29,7 @@ export class DiagramExclusiveGatewayComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
width: any; width: any;

View File

@@ -29,7 +29,7 @@ export class DiagramGatewayComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
width: any; width: any;

View File

@@ -29,7 +29,7 @@ export class DiagramInclusiveGatewayComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
width: any; width: any;

View File

@@ -29,7 +29,7 @@ export class DiagramParallelGatewayComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
width: any; width: any;

View File

@@ -34,7 +34,7 @@ export class DiagramContainerIconEventTaskComponent {
fillColor: string; fillColor: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef) {} constructor(public elementRef: ElementRef) {}
} }

View File

@@ -28,7 +28,7 @@ export class DiagramIconAlfrescoPublishTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconBoxPublishTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconBusinessRuleTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconCamelTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -31,7 +31,7 @@ export class DiagramIconErrorComponent implements OnInit {
fillColor: string; fillColor: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconGoogleDrivePublishTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconManualTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconMessageComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconMuleTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconReceiveTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconRestCallTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconScriptTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconSendTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconServiceTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -31,7 +31,7 @@ export class DiagramIconSignalComponent implements OnInit {
fillColor: string; fillColor: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconTimerComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
position: any; position: any;

View File

@@ -28,7 +28,7 @@ export class DiagramIconUserTaskComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
position: any; position: any;

View File

@@ -29,7 +29,7 @@ export class DiagramIntermediateCatchingEventComponent implements OnInit {
data: any; data: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
center: any = {}; center: any = {};
options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 1}; options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 1};

View File

@@ -32,7 +32,7 @@ export class RaphaelIconAlfrescoPublishDirective extends RaphaelBase implements
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconBoxPublishDirective extends RaphaelBase implements OnIni
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconBusinessRuleDirective extends RaphaelBase implements OnI
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconCamelDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconErrorDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconGoogleDrivePublishDirective extends RaphaelBase implemen
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconManualDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconMessageDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconMuleDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconReceiveDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconRestCallDirective extends RaphaelBase implements OnInit
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconScriptDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconSendDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconServiceDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconSignalDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconTimerDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -32,7 +32,7 @@ export class RaphaelIconUserDirective extends RaphaelBase implements OnInit {
text: string; text: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
@Input() @Input()
strokeWidth: number; strokeWidth: number;

View File

@@ -47,7 +47,7 @@ export class RaphaelCircleDirective extends RaphaelBase implements OnInit {
elementId: string; elementId: string;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef, constructor(public elementRef: ElementRef,
raphaelService: RaphaelService) { raphaelService: RaphaelService) {

View File

@@ -44,7 +44,7 @@ export class RaphaelCrossDirective extends RaphaelBase implements OnInit {
fillOpacity: any; fillOpacity: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
constructor(public elementRef: ElementRef, constructor(public elementRef: ElementRef,
raphaelService: RaphaelService) { raphaelService: RaphaelService) {

View File

@@ -31,7 +31,7 @@ export class RaphaelFlowArrowDirective extends RaphaelBase implements OnInit {
flow: any; flow: any;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
ARROW_WIDTH = 4; ARROW_WIDTH = 4;
SEQUENCEFLOW_STROKE = 1.5; SEQUENCEFLOW_STROKE = 1.5;

View File

@@ -39,7 +39,7 @@ export class RaphaelMultilineTextDirective extends RaphaelBase implements OnInit
elementWidth: number; elementWidth: number;
@Output() @Output()
onError = new EventEmitter(); error = new EventEmitter();
TEXT_PADDING = 3; TEXT_PADDING = 3;

Some files were not shown because too many files have changed in this diff Show More