@esfaenza/dashboard-feature 15.2.14 → 19.2.1

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.
Files changed (70) hide show
  1. package/README.md +24 -24
  2. package/fesm2022/esfaenza-dashboard-feature.mjs +1814 -0
  3. package/fesm2022/esfaenza-dashboard-feature.mjs.map +1 -0
  4. package/index.d.ts +5 -5
  5. package/lib/components/dashboard/dashboard.component.d.ts +46 -46
  6. package/lib/components/widgets/BaseWidgetComponent.d.ts +44 -47
  7. package/lib/components/widgets/IWidgetComponent.d.ts +23 -23
  8. package/lib/components/widgets/JaceWidgetTypes.d.ts +6 -6
  9. package/lib/components/widgets/chart/jace-dsh-chart.component.d.ts +25 -25
  10. package/lib/components/widgets/counter/jace-dsh-counter.component.d.ts +24 -24
  11. package/lib/components/widgets/list/jace-dsh-list.component.d.ts +27 -27
  12. package/lib/components/widgets/multiprog/circle-progress/circle-progress.component.d.ts +219 -0
  13. package/lib/components/widgets/multiprog/jace-dsh-multiprog.component.d.ts +26 -26
  14. package/lib/dashboard-feature.module.d.ts +23 -24
  15. package/lib/models/config/JaceDashboardConfig.d.ts +51 -51
  16. package/lib/models/externals/JaceDashboardLayoutAppSearch.d.ts +6 -6
  17. package/lib/models/externals/JaceDashboardLayoutDetail.d.ts +6 -6
  18. package/lib/models/externals/JaceWidgetInstanceDetail.d.ts +18 -18
  19. package/lib/models/externals/Repository.d.ts +5 -5
  20. package/lib/models/externals/SaveJaceDashboardLayoutDTO.d.ts +6 -6
  21. package/lib/models/options/DefaultDashboardModuleOptions.d.ts +6 -6
  22. package/lib/models/options/IDashboardModuleOptions.d.ts +4 -4
  23. package/lib/models/options/IWidgetTypeConfig.d.ts +8 -8
  24. package/lib/models/widgets/BaseJaceWidgetModel.d.ts +32 -38
  25. package/lib/models/widgets/IJaceWidgetModel.d.ts +33 -39
  26. package/lib/models/widgets/JaceChartWidgetModel.d.ts +8 -14
  27. package/lib/models/widgets/JaceCounterWidgetModel.d.ts +10 -18
  28. package/lib/models/widgets/JaceListWidgetModel.d.ts +16 -27
  29. package/lib/models/widgets/JaceMultiprogWidgetModel.d.ts +9 -15
  30. package/lib/private-injection-tokens.d.ts +3 -0
  31. package/lib/{tokens.d.ts → public-injection-tokens.d.ts} +7 -9
  32. package/lib/services/DashboardWidgetFactory.d.ts +28 -28
  33. package/lib/services/IDashboardFeatureDataService.d.ts +11 -31
  34. package/lib/services/dashboard-feature.service.d.ts +18 -38
  35. package/package.json +15 -16
  36. package/public-api.d.ts +24 -23
  37. package/esm2020/esfaenza-dashboard-feature.mjs +0 -5
  38. package/esm2020/lib/components/dashboard/dashboard.component.mjs +0 -163
  39. package/esm2020/lib/components/widgets/BaseWidgetComponent.mjs +0 -89
  40. package/esm2020/lib/components/widgets/IWidgetComponent.mjs +0 -2
  41. package/esm2020/lib/components/widgets/JaceWidgetTypes.mjs +0 -8
  42. package/esm2020/lib/components/widgets/chart/jace-dsh-chart.component.mjs +0 -81
  43. package/esm2020/lib/components/widgets/counter/jace-dsh-counter.component.mjs +0 -80
  44. package/esm2020/lib/components/widgets/list/jace-dsh-list.component.mjs +0 -91
  45. package/esm2020/lib/components/widgets/multiprog/jace-dsh-multiprog.component.mjs +0 -82
  46. package/esm2020/lib/dashboard-feature.module.mjs +0 -98
  47. package/esm2020/lib/models/config/JaceDashboardConfig.mjs +0 -57
  48. package/esm2020/lib/models/externals/JaceDashboardLayoutAppSearch.mjs +0 -8
  49. package/esm2020/lib/models/externals/JaceDashboardLayoutDetail.mjs +0 -4
  50. package/esm2020/lib/models/externals/JaceWidgetInstanceDetail.mjs +0 -7
  51. package/esm2020/lib/models/externals/Repository.mjs +0 -6
  52. package/esm2020/lib/models/externals/SaveJaceDashboardLayoutDTO.mjs +0 -6
  53. package/esm2020/lib/models/options/DefaultDashboardModuleOptions.mjs +0 -35
  54. package/esm2020/lib/models/options/IDashboardModuleOptions.mjs +0 -2
  55. package/esm2020/lib/models/options/IWidgetTypeConfig.mjs +0 -2
  56. package/esm2020/lib/models/widgets/BaseJaceWidgetModel.mjs +0 -38
  57. package/esm2020/lib/models/widgets/IJaceWidgetModel.mjs +0 -2
  58. package/esm2020/lib/models/widgets/JaceChartWidgetModel.mjs +0 -29
  59. package/esm2020/lib/models/widgets/JaceCounterWidgetModel.mjs +0 -29
  60. package/esm2020/lib/models/widgets/JaceListWidgetModel.mjs +0 -48
  61. package/esm2020/lib/models/widgets/JaceMultiprogWidgetModel.mjs +0 -32
  62. package/esm2020/lib/services/DashboardWidgetFactory.mjs +0 -49
  63. package/esm2020/lib/services/IDashboardFeatureDataService.mjs +0 -2
  64. package/esm2020/lib/services/dashboard-feature.service.mjs +0 -58
  65. package/esm2020/lib/tokens.mjs +0 -8
  66. package/esm2020/public-api.mjs +0 -34
  67. package/fesm2015/esfaenza-dashboard-feature.mjs +0 -1076
  68. package/fesm2015/esfaenza-dashboard-feature.mjs.map +0 -1
  69. package/fesm2020/esfaenza-dashboard-feature.mjs +0 -1059
  70. package/fesm2020/esfaenza-dashboard-feature.mjs.map +0 -1
@@ -1,23 +1,23 @@
1
- import { EventEmitter } from "@angular/core";
2
- import { IJaceWidgetModel } from "../../models/widgets/IJaceWidgetModel";
3
- /**
4
- * Interfaccia che ogni Component che rappresenta una widget deve implementare.
5
- */
6
- export interface IWidgetComponent {
7
- /**
8
- * Se rilevante per questa dashboard, in questo input viene impostata la data selezionata dall'utente.
9
- */
10
- DashboardDate: Date;
11
- /**
12
- * Lanciato quando questa widget viene rimossa dalla dashboard
13
- */
14
- OnRemove: EventEmitter<string>;
15
- /**
16
- * Imposta il modello della widget nel componente e l'id del backend da contattare impostato a livello di dashboard (vedi JaceDashboardConfig).
17
- *
18
- * Lanciata subito dopo la creazione del Componente, durante il rendering del layout della dashboard.
19
- *
20
- * @param widgetModel Imposta il modello della widget letto nel layout ricevuto dal BE
21
- */
22
- setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
23
- }
1
+ import { EventEmitter } from "@angular/core";
2
+ import { IJaceWidgetModel } from "../../models/widgets/IJaceWidgetModel";
3
+ /**
4
+ * Interfaccia che ogni Component che rappresenta una widget deve implementare.
5
+ */
6
+ export interface IWidgetComponent {
7
+ /**
8
+ * Se rilevante per questa dashboard, in questo input viene impostata la data selezionata dall'utente.
9
+ */
10
+ DashboardDate: Date;
11
+ /**
12
+ * Lanciato quando questa widget viene rimossa dalla dashboard
13
+ */
14
+ OnRemove: EventEmitter<string>;
15
+ /**
16
+ * Imposta il modello della widget nel componente e l'id del backend da contattare impostato a livello di dashboard (vedi JaceDashboardConfig).
17
+ *
18
+ * Lanciata subito dopo la creazione del Componente, durante il rendering del layout della dashboard.
19
+ *
20
+ * @param widgetModel Imposta il modello della widget letto nel layout ricevuto dal BE
21
+ */
22
+ setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
23
+ }
@@ -1,6 +1,6 @@
1
- export declare enum JaceWidgetTypes {
2
- CHART = "CHART",
3
- COUNTER = "COUNTER",
4
- LIST = "LIST",
5
- MULTIPROGRESS = "MULTIPROGRESS"
6
- }
1
+ export declare enum JaceWidgetTypes {
2
+ CHART = "CHART",
3
+ COUNTER = "COUNTER",
4
+ LIST = "LIST",
5
+ MULTIPROGRESS = "MULTIPROGRESS"
6
+ }
@@ -1,25 +1,25 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
- import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
- import { IWidgetComponent } from '../IWidgetComponent';
4
- import { JaceChartWidgetModel } from '../../../models/widgets/JaceChartWidgetModel';
5
- import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
6
- import * as i0 from "@angular/core";
7
- export declare class JaceChartWidgetComponent implements IWidgetComponent, OnInit {
8
- private dshService;
9
- model?: JaceChartWidgetModel;
10
- DashboardDate: Date;
11
- OnRemove: EventEmitter<string>;
12
- configuration: boolean;
13
- dataReady: boolean;
14
- lastdate: string;
15
- chartName: string;
16
- constructor(dshService: IDashboardFeatureDataService);
17
- setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
18
- ngOnInit(): void;
19
- ngOnChanges(changes: SimpleChanges): void;
20
- refreshData(): void;
21
- removeWidget(): void;
22
- configure(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<JaceChartWidgetComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<JaceChartWidgetComponent, "jace-dsh-chart", never, { "DashboardDate": "DashboardDate"; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
25
- }
1
+ import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
+ import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
+ import { IWidgetComponent } from '../IWidgetComponent';
4
+ import { JaceChartWidgetModel } from '../../../models/widgets/JaceChartWidgetModel';
5
+ import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
6
+ import * as i0 from "@angular/core";
7
+ export declare class JaceChartWidgetComponent implements IWidgetComponent, OnInit {
8
+ private dshService;
9
+ model?: JaceChartWidgetModel;
10
+ DashboardDate: Date;
11
+ OnRemove: EventEmitter<string>;
12
+ configuration: boolean;
13
+ dataReady: boolean;
14
+ lastdate: string;
15
+ chartName: string;
16
+ constructor(dshService: IDashboardFeatureDataService);
17
+ setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
18
+ ngOnInit(): void;
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ refreshData(): void;
21
+ removeWidget(): void;
22
+ configure(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<JaceChartWidgetComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<JaceChartWidgetComponent, "jace-dsh-chart", never, { "DashboardDate": { "alias": "DashboardDate"; "required": false; }; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
25
+ }
@@ -1,24 +1,24 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
- import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
- import { IWidgetComponent } from '../IWidgetComponent';
4
- import { JaceCounterWidgetModel } from '../../../models/widgets/JaceCounterWidgetModel';
5
- import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
6
- import * as i0 from "@angular/core";
7
- export declare class JaceCounterWidgetComponent implements IWidgetComponent, OnInit {
8
- private dshService;
9
- model?: JaceCounterWidgetModel;
10
- DashboardDate: Date;
11
- OnRemove: EventEmitter<string>;
12
- configuration: boolean;
13
- dataReady: boolean;
14
- lastdate: string;
15
- constructor(dshService: IDashboardFeatureDataService);
16
- setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
17
- ngOnInit(): void;
18
- ngOnChanges(changes: SimpleChanges): void;
19
- refreshData(): void;
20
- removeWidget(): void;
21
- configure(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<JaceCounterWidgetComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<JaceCounterWidgetComponent, "jace-dsh-counter", never, { "DashboardDate": "DashboardDate"; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
24
- }
1
+ import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
+ import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
+ import { IWidgetComponent } from '../IWidgetComponent';
4
+ import { JaceCounterWidgetModel } from '../../../models/widgets/JaceCounterWidgetModel';
5
+ import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
6
+ import * as i0 from "@angular/core";
7
+ export declare class JaceCounterWidgetComponent implements IWidgetComponent, OnInit {
8
+ private dshService;
9
+ model?: JaceCounterWidgetModel;
10
+ DashboardDate: Date;
11
+ OnRemove: EventEmitter<string>;
12
+ configuration: boolean;
13
+ dataReady: boolean;
14
+ lastdate: string;
15
+ constructor(dshService: IDashboardFeatureDataService);
16
+ setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
17
+ ngOnInit(): void;
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ refreshData(): void;
20
+ removeWidget(): void;
21
+ configure(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<JaceCounterWidgetComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<JaceCounterWidgetComponent, "jace-dsh-counter", never, { "DashboardDate": { "alias": "DashboardDate"; "required": false; }; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
24
+ }
@@ -1,27 +1,27 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
- import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
- import { IWidgetComponent } from '../IWidgetComponent';
4
- import { JaceListItemWidget, JaceListWidgetModel } from '../../../models/widgets/JaceListWidgetModel';
5
- import { Router } from '@angular/router';
6
- import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
7
- import * as i0 from "@angular/core";
8
- export declare class JaceListWidgetComponent implements IWidgetComponent, OnInit {
9
- private dshService;
10
- private router;
11
- model?: JaceListWidgetModel;
12
- DashboardDate: Date;
13
- OnRemove: EventEmitter<string>;
14
- configuration: boolean;
15
- dataReady: boolean;
16
- lastdate: string;
17
- constructor(dshService: IDashboardFeatureDataService, router: Router);
18
- setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
19
- ngOnInit(): void;
20
- ngOnChanges(changes: SimpleChanges): void;
21
- refreshData(): void;
22
- removeWidget(): void;
23
- itemClicked(item: JaceListItemWidget): void;
24
- configure(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<JaceListWidgetComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<JaceListWidgetComponent, "jace-dsh-list", never, { "DashboardDate": "DashboardDate"; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
27
- }
1
+ import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
+ import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
+ import { IWidgetComponent } from '../IWidgetComponent';
4
+ import { JaceListItemWidget, JaceListWidgetModel } from '../../../models/widgets/JaceListWidgetModel';
5
+ import { Router } from '@angular/router';
6
+ import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
7
+ import * as i0 from "@angular/core";
8
+ export declare class JaceListWidgetComponent implements IWidgetComponent, OnInit {
9
+ private dshService;
10
+ private router;
11
+ model?: JaceListWidgetModel;
12
+ DashboardDate: Date;
13
+ OnRemove: EventEmitter<string>;
14
+ configuration: boolean;
15
+ dataReady: boolean;
16
+ lastdate: string;
17
+ constructor(dshService: IDashboardFeatureDataService, router: Router);
18
+ setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
19
+ ngOnInit(): void;
20
+ ngOnChanges(changes: SimpleChanges): void;
21
+ refreshData(): void;
22
+ removeWidget(): void;
23
+ itemClicked(item: JaceListItemWidget): void;
24
+ configure(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<JaceListWidgetComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<JaceListWidgetComponent, "jace-dsh-list", never, { "DashboardDate": { "alias": "DashboardDate"; "required": false; }; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
27
+ }
@@ -0,0 +1,219 @@
1
+ import { EventEmitter, OnChanges, OnInit, OnDestroy, ElementRef, SimpleChanges, NgZone, Injector } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export interface CircleProgressOptionsInterface {
5
+ class?: string;
6
+ backgroundGradient?: boolean;
7
+ backgroundColor?: string;
8
+ backgroundGradientStopColor?: string;
9
+ backgroundOpacity?: number;
10
+ backgroundStroke?: string;
11
+ backgroundStrokeWidth?: number;
12
+ backgroundPadding?: number;
13
+ percent?: number;
14
+ radius?: number;
15
+ space?: number;
16
+ toFixed?: number;
17
+ maxPercent?: number;
18
+ renderOnClick?: boolean;
19
+ units?: string;
20
+ unitsFontSize?: string;
21
+ unitsFontWeight?: string;
22
+ unitsColor?: string;
23
+ outerStrokeGradient?: boolean;
24
+ outerStrokeWidth?: number;
25
+ outerStrokeColor?: string;
26
+ outerStrokeGradientStopColor?: string;
27
+ outerStrokeLinecap?: string;
28
+ innerStrokeColor?: string;
29
+ innerStrokeWidth?: number;
30
+ titleFormat?: Function;
31
+ title?: string | Array<String>;
32
+ titleColor?: string;
33
+ titleFontSize?: string;
34
+ titleFontWeight?: string;
35
+ subtitleFormat?: Function;
36
+ subtitle?: string | Array<String>;
37
+ subtitleColor?: string;
38
+ subtitleFontSize?: string;
39
+ subtitleFontWeight?: string;
40
+ imageSrc?: string;
41
+ imageHeight?: number;
42
+ imageWidth?: number;
43
+ animation?: boolean;
44
+ animateTitle?: boolean;
45
+ animateSubtitle?: boolean;
46
+ animationDuration?: number;
47
+ showTitle?: boolean;
48
+ showSubtitle?: boolean;
49
+ showUnits?: boolean;
50
+ showImage?: boolean;
51
+ showBackground?: boolean;
52
+ showInnerStroke?: boolean;
53
+ clockwise?: boolean;
54
+ responsive?: boolean;
55
+ startFromZero?: boolean;
56
+ showZeroOuterStroke?: boolean;
57
+ lazy?: boolean;
58
+ }
59
+ export declare class CircleProgressOptions implements CircleProgressOptionsInterface {
60
+ class: string;
61
+ backgroundGradient: boolean;
62
+ backgroundColor: string;
63
+ backgroundGradientStopColor: string;
64
+ backgroundOpacity: number;
65
+ backgroundStroke: string;
66
+ backgroundStrokeWidth: number;
67
+ backgroundPadding: number;
68
+ percent: number;
69
+ radius: number;
70
+ space: number;
71
+ toFixed: number;
72
+ maxPercent: number;
73
+ renderOnClick: boolean;
74
+ units: string;
75
+ unitsFontSize: string;
76
+ unitsFontWeight: string;
77
+ unitsColor: string;
78
+ outerStrokeGradient: boolean;
79
+ outerStrokeWidth: number;
80
+ outerStrokeColor: string;
81
+ outerStrokeGradientStopColor: string;
82
+ outerStrokeLinecap: string;
83
+ innerStrokeColor: string;
84
+ innerStrokeWidth: number;
85
+ titleFormat: any;
86
+ title: string | Array<String>;
87
+ titleColor: string;
88
+ titleFontSize: string;
89
+ titleFontWeight: string;
90
+ subtitleFormat: any;
91
+ subtitle: string | Array<String>;
92
+ subtitleColor: string;
93
+ subtitleFontSize: string;
94
+ subtitleFontWeight: string;
95
+ imageSrc: any;
96
+ imageHeight: number;
97
+ imageWidth: number;
98
+ animation: boolean;
99
+ animateTitle: boolean;
100
+ animateSubtitle: boolean;
101
+ animationDuration: number;
102
+ showTitle: boolean;
103
+ showSubtitle: boolean;
104
+ showUnits: boolean;
105
+ showImage: boolean;
106
+ showBackground: boolean;
107
+ showInnerStroke: boolean;
108
+ clockwise: boolean;
109
+ responsive: boolean;
110
+ startFromZero: boolean;
111
+ showZeroOuterStroke: boolean;
112
+ lazy: boolean;
113
+ }
114
+ export declare class CircleProgressComponent implements OnChanges, OnInit, OnDestroy {
115
+ private ngZone;
116
+ private elRef;
117
+ onClick: EventEmitter<MouseEvent>;
118
+ name: string;
119
+ class: string;
120
+ backgroundGradient: boolean;
121
+ backgroundColor: string;
122
+ backgroundGradientStopColor: String;
123
+ backgroundOpacity: number;
124
+ backgroundStroke: string;
125
+ backgroundStrokeWidth: number;
126
+ backgroundPadding: number;
127
+ radius: number;
128
+ space: number;
129
+ percent: number;
130
+ toFixed: number;
131
+ maxPercent: number;
132
+ renderOnClick: boolean;
133
+ units: string;
134
+ unitsFontSize: string;
135
+ unitsFontWeight: string;
136
+ unitsColor: string;
137
+ outerStrokeGradient: boolean;
138
+ outerStrokeWidth: number;
139
+ outerStrokeColor: string;
140
+ outerStrokeGradientStopColor: String;
141
+ outerStrokeLinecap: string;
142
+ innerStrokeColor: string;
143
+ innerStrokeWidth: string | number;
144
+ titleFormat: Function;
145
+ title: string | Array<String>;
146
+ titleColor: string;
147
+ titleFontSize: string;
148
+ titleFontWeight: string;
149
+ subtitleFormat: Function;
150
+ subtitle: string | string[];
151
+ subtitleColor: string;
152
+ subtitleFontSize: string;
153
+ subtitleFontWeight: string;
154
+ imageSrc: string;
155
+ imageHeight: number;
156
+ imageWidth: number;
157
+ animation: boolean;
158
+ animateTitle: boolean;
159
+ animateSubtitle: boolean;
160
+ animationDuration: number;
161
+ showTitle: boolean;
162
+ showSubtitle: boolean;
163
+ showUnits: boolean;
164
+ showImage: boolean;
165
+ showBackground: boolean;
166
+ showInnerStroke: boolean;
167
+ clockwise: boolean;
168
+ responsive: boolean;
169
+ startFromZero: boolean;
170
+ showZeroOuterStroke: boolean;
171
+ lazy: boolean;
172
+ templateOptions: CircleProgressOptions;
173
+ svgElement: HTMLElement;
174
+ isInViewport: Boolean;
175
+ onViewportChanged: EventEmitter<{
176
+ oldValue: Boolean;
177
+ newValue: Boolean;
178
+ }>;
179
+ window: Window;
180
+ _viewportChangedSubscriber: Subscription;
181
+ svg: any;
182
+ options: CircleProgressOptions;
183
+ defaultOptions: CircleProgressOptions;
184
+ _lastPercent: number;
185
+ _gradientUUID: string;
186
+ render: () => void;
187
+ polarToCartesian: (centerX: number, centerY: number, radius: number, angleInDegrees: number) => {
188
+ x: number;
189
+ y: number;
190
+ };
191
+ draw: (percent: number) => void;
192
+ getAnimationParameters: (previousPercent: number, currentPercent: number) => {
193
+ times: number;
194
+ step: number;
195
+ interval: number;
196
+ };
197
+ animate: (previousPercent: number, currentPercent: number) => void;
198
+ emitClickEvent(event: MouseEvent): void;
199
+ private _timerSubscription;
200
+ private applyOptions;
201
+ private getRelativeY;
202
+ private min;
203
+ private max;
204
+ private uuid;
205
+ isDrawing(): boolean;
206
+ findSvgElement(): void;
207
+ private isElementInViewport;
208
+ checkViewport: () => void;
209
+ onScroll: (event: Event) => void;
210
+ loadEventsForLazyMode: () => void;
211
+ unloadEventsForLazyMode: () => void;
212
+ ngOnInit(): void;
213
+ ngOnDestroy(): void;
214
+ ngOnChanges(changes: SimpleChanges): void;
215
+ private document;
216
+ constructor(defaultOptions: CircleProgressOptions, ngZone: NgZone, elRef: ElementRef, injector: Injector);
217
+ static ɵfac: i0.ɵɵFactoryDeclaration<CircleProgressComponent, never>;
218
+ static ɵcmp: i0.ɵɵComponentDeclaration<CircleProgressComponent, "circle-progress", never, { "name": { "alias": "name"; "required": false; }; "class": { "alias": "class"; "required": false; }; "backgroundGradient": { "alias": "backgroundGradient"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "backgroundGradientStopColor": { "alias": "backgroundGradientStopColor"; "required": false; }; "backgroundOpacity": { "alias": "backgroundOpacity"; "required": false; }; "backgroundStroke": { "alias": "backgroundStroke"; "required": false; }; "backgroundStrokeWidth": { "alias": "backgroundStrokeWidth"; "required": false; }; "backgroundPadding": { "alias": "backgroundPadding"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "space": { "alias": "space"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "toFixed": { "alias": "toFixed"; "required": false; }; "maxPercent": { "alias": "maxPercent"; "required": false; }; "renderOnClick": { "alias": "renderOnClick"; "required": false; }; "units": { "alias": "units"; "required": false; }; "unitsFontSize": { "alias": "unitsFontSize"; "required": false; }; "unitsFontWeight": { "alias": "unitsFontWeight"; "required": false; }; "unitsColor": { "alias": "unitsColor"; "required": false; }; "outerStrokeGradient": { "alias": "outerStrokeGradient"; "required": false; }; "outerStrokeWidth": { "alias": "outerStrokeWidth"; "required": false; }; "outerStrokeColor": { "alias": "outerStrokeColor"; "required": false; }; "outerStrokeGradientStopColor": { "alias": "outerStrokeGradientStopColor"; "required": false; }; "outerStrokeLinecap": { "alias": "outerStrokeLinecap"; "required": false; }; "innerStrokeColor": { "alias": "innerStrokeColor"; "required": false; }; "innerStrokeWidth": { "alias": "innerStrokeWidth"; "required": false; }; "titleFormat": { "alias": "titleFormat"; "required": false; }; "title": { "alias": "title"; "required": false; }; "titleColor": { "alias": "titleColor"; "required": false; }; "titleFontSize": { "alias": "titleFontSize"; "required": false; }; "titleFontWeight": { "alias": "titleFontWeight"; "required": false; }; "subtitleFormat": { "alias": "subtitleFormat"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "subtitleColor": { "alias": "subtitleColor"; "required": false; }; "subtitleFontSize": { "alias": "subtitleFontSize"; "required": false; }; "subtitleFontWeight": { "alias": "subtitleFontWeight"; "required": false; }; "imageSrc": { "alias": "imageSrc"; "required": false; }; "imageHeight": { "alias": "imageHeight"; "required": false; }; "imageWidth": { "alias": "imageWidth"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "animateTitle": { "alias": "animateTitle"; "required": false; }; "animateSubtitle": { "alias": "animateSubtitle"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "showUnits": { "alias": "showUnits"; "required": false; }; "showImage": { "alias": "showImage"; "required": false; }; "showBackground": { "alias": "showBackground"; "required": false; }; "showInnerStroke": { "alias": "showInnerStroke"; "required": false; }; "clockwise": { "alias": "clockwise"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "startFromZero": { "alias": "startFromZero"; "required": false; }; "showZeroOuterStroke": { "alias": "showZeroOuterStroke"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; "templateOptions": { "alias": "options"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
219
+ }
@@ -1,26 +1,26 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
- import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
- import { IWidgetComponent } from '../IWidgetComponent';
4
- import { Router } from '@angular/router';
5
- import { JaceMultiprogWidgetModel } from '../../../models/widgets/JaceMultiprogWidgetModel';
6
- import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
7
- import * as i0 from "@angular/core";
8
- export declare class JaceMultiprogWidgetComponent implements IWidgetComponent, OnInit {
9
- private dshService;
10
- private router;
11
- model?: JaceMultiprogWidgetModel;
12
- DashboardDate: Date;
13
- OnRemove: EventEmitter<string>;
14
- configuration: boolean;
15
- dataReady: boolean;
16
- lastdate: string;
17
- constructor(dshService: IDashboardFeatureDataService, router: Router);
18
- setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
19
- ngOnInit(): void;
20
- ngOnChanges(changes: SimpleChanges): void;
21
- refreshData(): void;
22
- removeWidget(): void;
23
- configure(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<JaceMultiprogWidgetComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<JaceMultiprogWidgetComponent, "jace-dsh-multiprog", never, { "DashboardDate": "DashboardDate"; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
26
- }
1
+ import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
+ import { IJaceWidgetModel } from '../../../models/widgets/IJaceWidgetModel';
3
+ import { IWidgetComponent } from '../IWidgetComponent';
4
+ import { Router } from '@angular/router';
5
+ import { JaceMultiprogWidgetModel } from '../../../models/widgets/JaceMultiprogWidgetModel';
6
+ import { IDashboardFeatureDataService } from '../../../services/IDashboardFeatureDataService';
7
+ import * as i0 from "@angular/core";
8
+ export declare class JaceMultiprogWidgetComponent implements IWidgetComponent, OnInit {
9
+ private dshService;
10
+ private router;
11
+ model?: JaceMultiprogWidgetModel;
12
+ DashboardDate: Date;
13
+ OnRemove: EventEmitter<string>;
14
+ configuration: boolean;
15
+ dataReady: boolean;
16
+ lastdate: string;
17
+ constructor(dshService: IDashboardFeatureDataService, router: Router);
18
+ setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
19
+ ngOnInit(): void;
20
+ ngOnChanges(changes: SimpleChanges): void;
21
+ refreshData(): void;
22
+ removeWidget(): void;
23
+ configure(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<JaceMultiprogWidgetComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<JaceMultiprogWidgetComponent, "jace-dsh-multiprog", never, { "DashboardDate": { "alias": "DashboardDate"; "required": false; }; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
26
+ }
@@ -1,24 +1,23 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { IDashboardModuleOptions } from './models/options/IDashboardModuleOptions';
3
- import { DashboardWidgetFactory } from './services/DashboardWidgetFactory';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./components/dashboard/dashboard.component";
6
- import * as i2 from "./components/widgets/list/jace-dsh-list.component";
7
- import * as i3 from "./components/widgets/counter/jace-dsh-counter.component";
8
- import * as i4 from "./components/widgets/chart/jace-dsh-chart.component";
9
- import * as i5 from "./components/widgets/multiprog/jace-dsh-multiprog.component";
10
- import * as i6 from "@angular/common";
11
- import * as i7 from "@angular/forms";
12
- import * as i8 from "angular-gridster2";
13
- import * as i9 from "@angular/material/progress-bar";
14
- import * as i10 from "@esfaenza/forms-and-validations";
15
- import * as i11 from "@esfaenza/es-charts";
16
- import * as i12 from "@esfaenza/httpservice";
17
- import * as i13 from "ng-circle-progress";
18
- export declare class DashboardFeatureModule {
19
- static forRoot(options?: IDashboardModuleOptions): ModuleWithProviders<DashboardFeatureModule>;
20
- constructor(componentFactory: DashboardWidgetFactory, options: IDashboardModuleOptions[]);
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DashboardFeatureModule, [null, { optional: true; }]>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardFeatureModule, [typeof i1.DashboardComponent, typeof i2.JaceListWidgetComponent, typeof i3.JaceCounterWidgetComponent, typeof i4.JaceChartWidgetComponent, typeof i5.JaceMultiprogWidgetComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.GridsterModule, typeof i9.MatProgressBarModule, typeof i10.FormsAndValidationsModule, typeof i11.EsChartsModule, typeof i12.HttpserviceModule, typeof i13.NgCircleProgressModule], [typeof i1.DashboardComponent, typeof i2.JaceListWidgetComponent, typeof i3.JaceCounterWidgetComponent, typeof i4.JaceChartWidgetComponent, typeof i5.JaceMultiprogWidgetComponent]>;
23
- static ɵinj: i0.ɵɵInjectorDeclaration<DashboardFeatureModule>;
24
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { IDashboardModuleOptions } from './models/options/IDashboardModuleOptions';
3
+ import { DashboardWidgetFactory } from './services/DashboardWidgetFactory';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./components/dashboard/dashboard.component";
6
+ import * as i2 from "./components/widgets/list/jace-dsh-list.component";
7
+ import * as i3 from "./components/widgets/counter/jace-dsh-counter.component";
8
+ import * as i4 from "./components/widgets/chart/jace-dsh-chart.component";
9
+ import * as i5 from "./components/widgets/multiprog/jace-dsh-multiprog.component";
10
+ import * as i6 from "./components/widgets/multiprog/circle-progress/circle-progress.component";
11
+ import * as i7 from "@angular/common";
12
+ import * as i8 from "@angular/forms";
13
+ import * as i9 from "angular-gridster2";
14
+ import * as i10 from "@esfaenza/forms-and-validations";
15
+ import * as i11 from "@esfaenza/es-charts";
16
+ import * as i12 from "@esfaenza/httpservice";
17
+ export declare class DashboardFeatureModule {
18
+ static forRoot(options?: IDashboardModuleOptions): ModuleWithProviders<DashboardFeatureModule>;
19
+ constructor(componentFactory: DashboardWidgetFactory, options: IDashboardModuleOptions[]);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardFeatureModule, [null, { optional: true; }]>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardFeatureModule, [typeof i1.DashboardComponent, typeof i2.JaceListWidgetComponent, typeof i3.JaceCounterWidgetComponent, typeof i4.JaceChartWidgetComponent, typeof i5.JaceMultiprogWidgetComponent, typeof i6.CircleProgressComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.GridsterModule, typeof i10.FormsAndValidationsModule, typeof i11.EsChartsModule, typeof i12.HttpserviceModule], [typeof i1.DashboardComponent, typeof i2.JaceListWidgetComponent, typeof i3.JaceCounterWidgetComponent, typeof i4.JaceChartWidgetComponent, typeof i5.JaceMultiprogWidgetComponent, typeof i6.CircleProgressComponent]>;
22
+ static ɵinj: i0.ɵɵInjectorDeclaration<DashboardFeatureModule>;
23
+ }