diff --git a/ng2-components/ng2-activiti-analytics/config/webpack.common.js b/ng2-components/ng2-activiti-analytics/config/webpack.common.js
index eabc6b5f9b..874cdbecfd 100644
--- a/ng2-components/ng2-activiti-analytics/config/webpack.common.js
+++ b/ng2-components/ng2-activiti-analytics/config/webpack.common.js
@@ -43,7 +43,8 @@ module.exports = {
loader: 'tslint-loader',
options: {
emitErrors: true,
- failOnHint: true
+ failOnHint: true,
+ fix: true
},
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
@@ -63,8 +64,17 @@ module.exports = {
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
- test: /\.component.scss$/,
- use: ['to-string-loader', 'raw-loader', 'sass-loader'],
+ test: /\.scss$/,
+ use: [{
+ loader: "to-string-loader"
+ }, {
+ loader: "raw-loader"
+ }, {
+ loader: "sass-loader",
+ options: {
+ includePaths: [ path.resolve(__dirname, '../../ng2-alfresco-core/styles')]
+ }
+ }],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html
index 8201575569..419e7e6b48 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-parameters.component.html
@@ -88,7 +88,7 @@
{{'DIALOG.SAVE_MESSAGE' | translate}}
-
+
{{field.nameKey | translate}}
-
\ No newline at end of file
+
diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/checkbox/checkbox.widget.ts b/ng2-components/ng2-activiti-analytics/src/components/widgets/checkbox/checkbox.widget.ts
index db6d9f48d1..651eaaa6b6 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/widgets/checkbox/checkbox.widget.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/checkbox/checkbox.widget.ts
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+/* tslint:disable:no-access-missing-member */
import { Component, ElementRef, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { WidgetComponent } from './../widget.component';
@@ -23,7 +24,7 @@ import { WidgetComponent } from './../widget.component';
selector: 'checkbox-widget',
templateUrl: './checkbox.widget.html'
})
-export class CheckboxWidget extends WidgetComponent {
+export class CheckboxWidgetComponent extends WidgetComponent {
@Input()
field: any;
diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html
index e6b3c60e37..1533982dc2 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.html
@@ -45,4 +45,4 @@
FormGroup status : {{dateRange && dateRange.errors | json }}
FormGroup start status : {{dateRange && dateRange.controls.startDate && dateRange.controls.startDate.errors | json }}
FormGroup end status: {{dateRange && dateRange.controls.endDate.errors | json }}
-
\ No newline at end of file
+
diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts
index a2a5b4826b..501fe4c229 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/date-range/date-range.widget.ts
@@ -15,7 +15,8 @@
* limitations under the License.
*/
-import { Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';
+/* tslint:disable::no-access-missing-member */
+import { Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
import { AbstractControl, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import * as moment from 'moment';
import { WidgetComponent } from './../widget.component';
@@ -34,7 +35,7 @@ declare let mdDateTimePicker: any;
templateUrl: './date-range.widget.html',
styleUrls: ['./date-range.widget.css']
})
-export class DateRangeWidget extends WidgetComponent {
+export class DateRangeWidgetComponent extends WidgetComponent implements OnInit, OnDestroy {
public static FORMAT_DATE_ACTIVITI: string = 'YYYY-MM-DD';
@@ -97,7 +98,7 @@ export class DateRangeWidget extends WidgetComponent {
future: moment().add(100, 'years')
};
- settings.init = moment(date, DateRangeWidget.FORMAT_DATE_ACTIVITI);
+ settings.init = moment(date, DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI);
this.dialogStart = new mdDateTimePicker.default(settings);
this.dialogStart.trigger = this.startElement.nativeElement;
@@ -145,7 +146,7 @@ export class DateRangeWidget extends WidgetComponent {
future: moment().add(100, 'years')
};
- settings.init = moment(date, DateRangeWidget.FORMAT_DATE_ACTIVITI);
+ settings.init = moment(date, DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI);
this.dialogEnd = new mdDateTimePicker.default(settings);
this.dialogEnd.trigger = this.endElement.nativeElement;
@@ -157,7 +158,7 @@ export class DateRangeWidget extends WidgetComponent {
}
onOkStart(inputEl: HTMLInputElement) {
- let date = this.dialogStart.time.format(DateRangeWidget.FORMAT_DATE_ACTIVITI);
+ let date = this.dialogStart.time.format(DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI);
this.dateRange.patchValue({
startDate: date
});
@@ -168,7 +169,7 @@ export class DateRangeWidget extends WidgetComponent {
}
onOkEnd(inputEl: HTMLInputElement) {
- let date = this.dialogEnd.time.format(DateRangeWidget.FORMAT_DATE_ACTIVITI);
+ let date = this.dialogEnd.time.format(DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI);
this.dateRange.patchValue({
endDate: date
});
@@ -188,14 +189,14 @@ export class DateRangeWidget extends WidgetComponent {
}
public convertToMomentDateWithTime(date: string) {
- return moment(date, DateRangeWidget.FORMAT_DATE_ACTIVITI, true).format(DateRangeWidget.FORMAT_DATE_ACTIVITI) + 'T00:00:00.000Z';
+ return moment(date, DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI, true).format(DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI) + 'T00:00:00.000Z';
}
private convertToMomentDate(date: string) {
if (date) {
- return moment(date).format(DateRangeWidget.FORMAT_DATE_ACTIVITI);
+ return moment(date).format(DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI);
} else {
- return moment().format(DateRangeWidget.FORMAT_DATE_ACTIVITI);
+ return moment().format(DateRangeWidgetComponent.FORMAT_DATE_ACTIVITI);
}
}
diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.html b/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.html
index 25d819965c..688b591560 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.html
@@ -5,4 +5,4 @@