1.9.0 • Published 6 years ago

ng2-activiti-analytics v1.9.0

Weekly downloads
11
License
Apache-2.0
Repository
github
Last release
6 years ago

Activiti Analytics Components

Prerequisites

Before you start using this development framework, make sure you have installed all required software and done all the necessary configuration, see this page.

If you plan using this component with projects generated by Angular CLI, please refer to the following article: Using ADF with Angular CLI

Install

npm install ng2-activiti-analytics

Activiti Analytics List Component

The component shows the list of all the available reports

<analytics-report-list 
    [layoutType]="'LIST'">
</analytics-report-list>

Properties

NameTypeRequiredDefaultDescription
appIdstringoptionalThe application id
layoutTypestringrequiredDefine the layout of the apps. There are two possible values: GRID or LIST. LIST is the default value
selectFirstbooleanoptionalfalseChange the value to true if you want select the first item in the list as default

Events

NameDescription
onSuccessThe event is emitted when the report list are loaded
onErrorThe event is emitted when an error occur during the loading
reportClickThe event is emitted when the report in the list is selected

Activiti Analytics Component

The component shows the charts related to the reportId passed as input

<activiti-analytics 
    [appId]="1001" 
    [reportId]="2006">
</activiti-analytics>

Properties

NameTypeDescription
appIdstringThe application id
reportIdstringThe report id
hideParametersbooleanToggle the analytics parameters
debugbooleanToggle debug mode, outputs the Form values in the console log if enabled.

You can also hide chart parameters UI by setting the hideParameters to true:

<activiti-analytics 
    [appId]="appId" 
    [reportId]="reportId" 
    [hideParameters]="true">
</activiti-analytics>

Analytics-without-parameters

Events

NameDescription
onSuccessThe event is emitted when the report parameters are loaded
onErrorThe event is emitted when an error occur during the loading
reportSavedThe event is emitted when a report is saved
reportDeletedThe event is emitted when a report is deleted

Analytics Generator Component

The component generate and show the charts

<activiti-analytics-generator 
    [reportId]="reportId" 
    [reportParamQuery]="reportParamQuery">
</activiti-analytics>

Properties

NameTypeDescription
reportIdstringThe report id
reportParamQueryReportQueryThe object contains all the parameters that the report needs

Events

NameDescription
onSuccessRaised when the charts are loaded
onErrorRaised when an error occur during the loading

Build from sources

You can build component from sources with the following commands:

npm install
npm run build

The build task rebuilds all the code, runs tslint, license checks and other quality check tools before performing unit testing.

NPM scripts

CommandDescription
npm run buildBuild component
npm run testRun unit tests in the console
npm run test-browserRun unit tests in the browser
npm run coverageRun unit tests and display code coverage report

Demo

Please check the demo folder for a demo project

cd demo
npm install
npm start

License

Apache Version 2.0

1.10.0-beta7

6 years ago

1.10.0-beta6

6 years ago

1.10.0-beta5

6 years ago

1.10.0-beta4

7 years ago

1.10.0-beta3

7 years ago

1.10.0-beta2

7 years ago

1.10.0-beta1

7 years ago

1.9.0

7 years ago

1.9.0-beta8

7 years ago

1.9.0-beta7

7 years ago

1.9.0-beta6

7 years ago

1.9.0-beta5

7 years ago

1.9.0-beta4

7 years ago

1.9.0-beta3

7 years ago

1.9.0-beta1

7 years ago

1.8.0

7 years ago

1.8.0-beta7

7 years ago

1.8.0-beta6

7 years ago

1.8.0-beta5

7 years ago

1.8.0-beta4

7 years ago

1.8.0-beta1

7 years ago

1.7.0

7 years ago

1.7.0-beta5

7 years ago

1.7.0-beta4

7 years ago

1.7.0-beta3

7 years ago

1.7.0-beta2

7 years ago

1.7.0-beta1

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.6.0-beta14

7 years ago

1.6.0-alpha7

7 years ago

1.6.0-alpha6

7 years ago

1.6.0-alpha5

7 years ago

1.6.0-alpha3

7 years ago

1.6.0-alpha2

7 years ago

1.6.0-beta13

7 years ago

1.6.0-beta11

7 years ago

1.6.0-beta10

7 years ago

1.6.0-beta9

7 years ago

1.6.0-beta8

7 years ago

1.6.0-beta7

7 years ago

1.6.0-beta6

7 years ago

1.6.0-beta5

7 years ago

1.6.0-beta4

7 years ago

1.6.0-beta3

7 years ago

1.6.0-beta2

7 years ago

1.6.0-beta1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago