mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5199] upgrade 3rd party depedencies to support angular 14 and later (#8669)
* ACS-5199 Upgraded ng2-charts and chart.js * ACS-5199 Removed reports tab from demoshell * ACS-5199 Versions correction after upgrading charts * ACS-5199 Replaced ngx-monaco-editor with ngx-monaco-editor-v2
This commit is contained in:
@@ -20,16 +20,13 @@ import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { DiagramsModule } from '../diagram/diagram.module';
|
||||
import { MaterialModule } from '../material.module';
|
||||
|
||||
import { ChartsModule } from 'ng2-charts';
|
||||
|
||||
import { NgChartsModule } from 'ng2-charts';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { AnalyticsGeneratorComponent } from './components/analytics-generator.component';
|
||||
import { AnalyticsReportHeatMapComponent } from './components/analytics-report-heat-map.component';
|
||||
import { AnalyticsReportListComponent } from './components/analytics-report-list.component';
|
||||
import { AnalyticsReportParametersComponent } from './components/analytics-report-parameters.component';
|
||||
import { AnalyticsComponent } from './components/analytics.component';
|
||||
|
||||
import { CheckboxWidgetAnalyticsComponent } from './components/widgets/checkbox/checkbox.widget';
|
||||
import { DateRangeWidgetComponent } from './components/widgets/date-range/date-range.widget';
|
||||
import { DropdownWidgetAnalyticsComponent } from './components/widgets/dropdown/dropdown.widget';
|
||||
@@ -41,7 +38,7 @@ import { NumberWidgetAnalyticsComponent } from './components/widgets/number/numb
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
CommonModule,
|
||||
ChartsModule,
|
||||
NgChartsModule,
|
||||
DiagramsModule,
|
||||
MaterialModule,
|
||||
CoreModule
|
||||
|
@@ -18,9 +18,10 @@
|
||||
<div *ngIf="report.hasData()">
|
||||
<div *ngIf="report.hasZeroValues()">{{'ANALYTICS.MESSAGES.ZERO-DATA-FOUND' | translate}}</div>
|
||||
<canvas baseChart *ngIf="!report.hasZeroValues()" class="adf-chart"
|
||||
[data]="report.data"
|
||||
[datasets]="report.datasets"
|
||||
[labels]="report.labels"
|
||||
[chartType]="'pie'">
|
||||
[type]="'pie'"
|
||||
[options]="report.options">
|
||||
</canvas>
|
||||
</div>
|
||||
</div>
|
||||
@@ -75,7 +76,7 @@
|
||||
[datasets]="report.datasets"
|
||||
[labels]="report.labels"
|
||||
[options]="report.options"
|
||||
[chartType]="'bar'">
|
||||
[type]="'bar'">
|
||||
</canvas>
|
||||
</div>
|
||||
</div>
|
||||
@@ -95,7 +96,7 @@
|
||||
[datasets]="report.datasets"
|
||||
[labels]="report.labels"
|
||||
[options]="report.options"
|
||||
[chartType]="'bar'">
|
||||
[type]="'bar'">
|
||||
</canvas>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user