@esfaenza/admin-module 20.3.5 → 20.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ import { AppSearch, EsTableOperationDefinition, EsTableModule } from '@esfaenza/
15
15
  import * as i9 from '@esfaenza/forms-and-validations';
16
16
  import { FormsAndValidationsModule } from '@esfaenza/forms-and-validations';
17
17
  import * as i2 from '@esfaenza/es-charts';
18
- import { LineSerie, LineChartData, PieChartData, KeyValueColor, DateValue, Limit, EsChartsModule } from '@esfaenza/es-charts';
18
+ import { LineSerie, LineChartData, PieChartData, KeyValueColor, DateValue, Limit, BaseInterval, EsChartsModule } from '@esfaenza/es-charts';
19
19
  import { EsGertrudeModule } from '@esfaenza/gertrude';
20
20
  import * as i1$1 from '@esfaenza/extensions';
21
21
  import { MessageService, InboundMessageTypes, Export, ExportLocalization, ExtensionsModule } from '@esfaenza/extensions';
@@ -1044,15 +1044,12 @@ class AdmTopActivitiesComponent {
1044
1044
  onChartLoaded(chart, overwriteInstance = true) {
1045
1045
  if (overwriteInstance)
1046
1046
  this.ChartInstance = chart;
1047
- // chart.Chart!.events.on("ready", () => {
1048
- // (<am4charts.XYChart>(chart.Chart as any)).xAxes.each(x => x.zoom({ start: 0, end: 1 }, true, true));
1049
- // (<am4charts.XYChart>(chart.Chart as any)).yAxes.each(y => y.zoom({ start: 0, end: 1 }, true, true));
1050
- // setTimeout(() => {
1051
- // (<am4charts.XYChart>(chart.Chart as any)).xAxes.each(x => x.zoom({ start: 0, end: 1 }, true, true));
1052
- // (<am4charts.XYChart>(chart.Chart as any)).yAxes.each(y => y.zoom({ start: 0, end: 1 }, true, true));
1053
- // // 500 millisecondi è più o meno il tempo di prima animazione del grafico. Finito questo si resetta lo zoom
1054
- // }, 500);
1055
- // });
1047
+ let readyHandler = () => {
1048
+ chart.Chart.xAxes.each(x => x.zoom(0, 1, 0));
1049
+ chart.Chart.yAxes.each(y => y.zoom(0, 1, 0));
1050
+ chart.Chart.root.events.off("frameended", readyHandler);
1051
+ };
1052
+ chart.Chart.root.events.onDebounced("frameended", readyHandler, 500);
1056
1053
  }
1057
1054
  loadSessionDetails(sessionId, serialNo, instanceid) {
1058
1055
  this.SessionDetails = null;
@@ -1071,7 +1068,10 @@ class AdmTopActivitiesComponent {
1071
1068
  let props = Object.keys(sessDet.sessions[0]);
1072
1069
  for (let i = 0; i < props.length; i++) {
1073
1070
  if (props[i] != 'sampletime') {
1074
- let s = new LineSerie(this.propertiesSeriesMapping[props[i]], [], null, null, "sessions");
1071
+ var interval = new BaseInterval();
1072
+ interval.count = 5;
1073
+ interval.timeunit = "second";
1074
+ let s = new LineSerie(this.propertiesSeriesMapping[props[i]], [], interval, null, "sessions");
1075
1075
  series.push(s);
1076
1076
  this.seriesPropertiesMapping2[props[i]] = s;
1077
1077
  }