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/router": "4.4.5",
"@ngx-translate/core": "7.0.0",
"alfresco-js-api": "1.9.0",
"chart.js": "2.5.0",
"classlist.js": "1.1.20150312",
"core-js": "2.4.1",
"custom-event-polyfill": "0.3.0",
"dialog-polyfill": "0.4.7",
@@ -44,7 +46,6 @@
"minimatch": "3.0.4",
"moment": "2.15.1",
"ng2-3d-editor": "0.0.18",
"alfresco-js-api": "1.9.0",
"ng2-activiti-analytics": "1.9.0",
"ng2-activiti-diagrams": "1.9.0",
"ng2-activiti-form": "1.9.0",

View File

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

View File

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

View File

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

View File

@@ -19,25 +19,25 @@
*/
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
// import 'core-js/es6/symbol';
// import 'core-js/es6/object';
// import 'core-js/es6/function';
// import 'core-js/es6/parse-int';
// import 'core-js/es6/parse-float';
// import 'core-js/es6/number';
// import 'core-js/es6/math';
// import 'core-js/es6/string';
// import 'core-js/es6/date';
// import 'core-js/es6/array';
// import 'core-js/es6/regexp';
// import 'core-js/es6/map';
// import 'core-js/es6/set';
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
/** 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`. */
// 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. **/
@@ -65,4 +65,4 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
* Date, currency, decimal and percent pipes.
* 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
[appId]="appId"
(filterClick)="onProcessFilterClick($event)"
(onSuccess)="onSuccessProcessFilterList($event)">
(success)="onSuccessProcessFilterList($event)">
</adf-process-instance-filters>
</adf-accordion-group>
</adf-accordion>

View File

@@ -34,5 +34,5 @@ The component generates and shows the charts
| Name | Description |
| --- | --- |
| onSuccess | Raised when the charts are loaded |
| onError | Raised when an error occurs during the loading |
| success | Raised when the charts are loaded |
| 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 |
| --- | --- |
| onSuccess | The event is emitted when the report list is loaded |
| onError | The event is emitted when an error occurs during the loading |
| success | The event is emitted when the report list is loaded |
| 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 |

View File

@@ -47,7 +47,7 @@ You can also hide chart parameters UI by setting the `hideParameters` to `true`:
| Name | Description |
| --- | --- |
| onSuccess | The event is emitted when the report parameters are loaded |
| onError | The event is emitted when an error occurs during the loading |
| success | The event is emitted when the report parameters are loaded |
| error | The event is emitted when an error occurs during the loading |
| reportSaved | The event is emitted when a report is saved |
| 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 |
| --- | --- |
| onSuccess | Raised when the diagrams elements are loaded |
| onError | Raised when an error occurs during loading |
| success | Raised when the diagrams elements are loaded |
| 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. |
| 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()` |
| onError | any | Invoked at any error |
| error | any | Invoked at any error |
## Details

View File

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

View File

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

View File

@@ -38,9 +38,14 @@ This component renders a list containing all the process instances matched by th
### Events
- **rowClick**: Emitted when a row in the process list is clicked
- **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
| Name | Description |
| --- | --- |
| 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

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. |
| taskCreated | Raised when a checklist task is created. |
| 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

View File

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

View File

@@ -45,7 +45,7 @@ You can also use HTML-based schema declaration like shown below:
| 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 |
| rowsSelected | Raised when the a row is selected/unselected |

View File

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

View File

@@ -17,7 +17,7 @@ Adds a drag and drop area to upload files to Alfresco.
## Basic Usage
```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">
DRAG HERE
</div>
@@ -50,4 +50,4 @@ export class AppComponent {
| Name | Description |
| --- | --- |
| onSuccess | Raised when the file is uploaded |
| success | Raised when the file is uploaded |

View File

@@ -25,7 +25,7 @@
[servicePath]="string"
[showData]="boolean"
[contentType]="JSON | HTML | DATATABLE | TEXT"
(onSuccess)= "logData($event)">
(success)= "logData($event)">
</adf-webscript-get>
```
@@ -63,8 +63,14 @@ export class AppComponent {
| 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 | 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 | booleann | true | render the webscript data |
| showData | boolean | 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}
***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'"
[contentType]="'HTML'"
[showData]="false"
(onSuccess)="logDataExample($event)">
(success)="logDataExample($event)">
</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
logDataExample(data) {

View File

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

View File

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

View File

@@ -35,10 +35,10 @@ export class AnalyticsGeneratorComponent implements OnChanges {
reportParamQuery: ReportQuery = undefined;
@Output()
onSuccess = new EventEmitter();
success = new EventEmitter();
@Output()
onError = new EventEmitter();
error = new EventEmitter();
reports: Chart[];
@@ -83,10 +83,10 @@ export class AnalyticsGeneratorComponent implements OnChanges {
if (this.reports) {
this.selectFirstReport();
}
this.onSuccess.emit(res);
this.success.emit(res);
},
(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(() => {
component.report = { totalCountsPercentages: { 'sid-fake-id': 10, 'fake-start-event': 30 } };
component.onSuccess.subscribe(() => {
component.success.subscribe(() => {
fixture.whenStable().then(() => {
let dropDown: any = element.querySelector('#select-metrics');
expect(dropDown).toBeDefined();

View File

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

View File

@@ -113,7 +113,7 @@ describe('AnalyticsReportListComponent', () => {
responseText: reportList
});
component.onSuccess.subscribe(() => {
component.success.subscribe(() => {
fixture.detectChanges();
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');
@@ -124,13 +124,12 @@ describe('AnalyticsReportListComponent', () => {
expect(component.isReportsEmpty()).toBeFalsy();
done();
});
});
it('Report render the report list relative to a single app', (done) => {
fixture.detectChanges();
component.onSuccess.subscribe(() => {
component.success.subscribe(() => {
fixture.detectChanges();
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');
@@ -152,7 +151,7 @@ describe('AnalyticsReportListComponent', () => {
it('Report emit an error with a empty response', (done) => {
fixture.detectChanges();
component.onError.subscribe((err) => {
component.error.subscribe((err) => {
expect(err).toBeDefined();
done();
});
@@ -190,7 +189,7 @@ describe('AnalyticsReportListComponent', () => {
expect(component.reports.length).toEqual(1);
component.reload();
component.onSuccess.subscribe(() => {
component.success.subscribe(() => {
expect(component.reports.length).toEqual(5);
done();
});
@@ -208,7 +207,7 @@ describe('AnalyticsReportListComponent', () => {
component.reload(2002);
component.onSuccess.subscribe(() => {
component.success.subscribe(() => {
expect(component.reports.length).toEqual(5);
expect(component.currentReport).toBeDefined();
expect(component.currentReport).not.toBeNull();

View File

@@ -44,10 +44,10 @@ export class AnalyticsReportListComponent implements OnInit {
reportClick: EventEmitter<ReportParametersModel> = new EventEmitter<ReportParametersModel>();
@Output()
onSuccess = new EventEmitter();
success = new EventEmitter();
@Output()
onError = new EventEmitter();
error = new EventEmitter();
private reportObserver: Observer<any>;
report$: Observable<any>;
@@ -98,11 +98,11 @@ export class AnalyticsReportListComponent implements OnInit {
if (this.selectFirst) {
this.selectFirstReport();
}
this.onSuccess.emit(res);
this.success.emit(res);
}
},
(err: any) => {
this.onError.emit(err);
this.error.emit(err);
}
);
}
@@ -118,7 +118,7 @@ export class AnalyticsReportListComponent implements OnInit {
response.forEach((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) => {
let fakeReportParam = new ReportParametersModel(analyticParamsMock.reportDefParamTask);
component.onSuccessReportParams.subscribe(() => {
component.successReportParams.subscribe(() => {
fixture.detectChanges();
expect(component.reportForm.get('taskGroup')).toBeDefined();
expect(component.reportForm.get('taskGroup').get('taskName')).toBeDefined();
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) => {
component.onSuccessReportParams.subscribe(() => {
component.successReportParams.subscribe(() => {
fixture.detectChanges();
let dropDown: any = element.querySelector('#select-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) => {
component.onSuccessReportParams.subscribe(() => {
component.successReportParams.subscribe(() => {
fixture.detectChanges();
let numberElement: any = element.querySelector('#slowProcessInstanceInteger');
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) => {
component.onSuccessReportParams.subscribe(() => {
component.successReportParams.subscribe(() => {
fixture.detectChanges();
let numberElement: any = element.querySelector('#duration');
expect(numberElement.value).toEqual('0');
@@ -163,7 +163,7 @@ describe('AnalyticsReportParametersComponent', () => {
});
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.endDate).toEqual('2016-10-05T00:00:00.000Z');
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) => {
component.onSuccessReportParams.subscribe(() => {
component.successReportParams.subscribe(() => {
fixture.detectChanges();
let checkElement: any = element.querySelector('#typeFiltering-input');
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) => {
component.onSuccessReportParams.subscribe(() => {
component.successReportParams.subscribe(() => {
let dateElement: any = element.querySelector('adf-date-range-widget');
expect(dateElement).toBeDefined();
done();
@@ -244,7 +244,7 @@ describe('AnalyticsReportParametersComponent', () => {
});
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();
let dropDown: any = element.querySelector('#select-dateRangeInterval');
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' +
' reportId change', (done) => {
component.onSuccessParamOpt.subscribe(() => {
component.successParamOpt.subscribe(() => {
fixture.detectChanges();
let dropDown: any = element.querySelector('#select-processDefinitionId');
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' +
' appId change', (done) => {
component.onSuccessParamOpt.subscribe(() => {
component.successParamOpt.subscribe(() => {
fixture.detectChanges();
let dropDown: any = element.querySelector('#select-processDefinitionId');
expect(dropDown).toBeDefined();
@@ -336,7 +336,7 @@ describe('AnalyticsReportParametersComponent', () => {
});
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.valid).toEqual(true);
expect(component.reportForm.controls).toEqual({});
@@ -354,7 +354,7 @@ describe('AnalyticsReportParametersComponent', () => {
});
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.length).toEqual(2);
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) => {
component.onError.subscribe((err) => {
component.error.subscribe((err) => {
expect(err).toBeDefined();
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) => {
component.onError.subscribe((err) => {
component.error.subscribe((err) => {
expect(err).toBeDefined();
done();
});

View File

@@ -55,16 +55,16 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
hideComponent: boolean = false;
@Output()
onSuccess = new EventEmitter();
success = new EventEmitter();
@Output()
onError = new EventEmitter();
error = new EventEmitter();
@Output()
onEdit = new EventEmitter();
edit = new EventEmitter();
@Output()
onFormValueChanged = new EventEmitter();
formValueChanged = new EventEmitter();
@Output()
saveReportSuccess = new EventEmitter();
@@ -77,9 +77,9 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
onDropdownChanged = new EventEmitter();
onSuccessReportParams = new EventEmitter();
successReportParams = new EventEmitter();
onSuccessParamOpt = new EventEmitter();
successParamOpt = new EventEmitter();
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()) {
this.retrieveParameterOptions(report.definition.parameters, this.appId);
this.generateFormGroupFromParameter(report.definition.parameters);
@@ -193,14 +193,14 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
(res: ReportParametersModel) => {
this.reportParameters = res;
if (this.reportParameters.hasParameters()) {
this.onSuccessReportParams.emit(res);
this.successReportParams.emit(res);
} else {
this.reportForm = this.formBuilder.group({});
this.onSuccess.emit();
this.success.emit();
}
},
(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(
(opts: ParameterValueModel[]) => {
param.options = opts;
this.onSuccessParamOpt.emit(opts);
this.successParamOpt.emit(opts);
},
(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) {
this.reportParamQuery = this.convertFormValuesToReportParamQuery(values);
this.onSuccess.emit(this.reportParamQuery);
this.success.emit(this.reportParamQuery);
}
onValueChanged(values: any) {
this.onFormValueChanged.emit(values);
this.formValueChanged.emit(values);
if (this.reportForm && this.reportForm.valid) {
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(
(res: ReportParametersModel) => {
this.editDisable();
this.onEdit.emit(this.reportParameters.name);
this.edit.emit(this.reportParameters.name);
},
(err: any) => {
this.onError.emit(err);
this.error.emit(err);
}
);
}

View File

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

View File

@@ -152,6 +152,7 @@
"templates-use-public": true,
"invoke-injectable": 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/jasmine": "2.5.35",
"@types/node": "6.0.45",
"adf-tslint-rules": "0.0.3",
"adf-tslint-rules": "0.0.4",
"angular2-template-loader": "0.6.2",
"autoprefixer": "6.5.4",
"codelyzer": "3.1.2",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -49,10 +49,10 @@ export class DiagramComponent implements OnChanges {
height: number = 500;
@Output()
onSuccess = new EventEmitter();
success = new EventEmitter();
@Output()
onError = new EventEmitter();
error = new EventEmitter();
PADDING_WIDTH: 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.diagram.diagramHeight + this.PADDING_HEIGHT);
this.setMetricValueToDiagramElement(this.diagram, this.metricPercentages, this.metricType);
this.onSuccess.emit(res);
this.success.emit(res);
},
(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.diagram.diagramHeight + this.PADDING_HEIGHT);
this.setMetricValueToDiagramElement(this.diagram, this.metricPercentages, this.metricType);
this.onSuccess.emit(res);
this.success.emit(res);
},
(err: any) => {
this.onError.emit(err);
this.error.emit(err);
}
);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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