@esfaenza/dashboard-feature 19.2.9 → 20.3.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 (36) hide show
  1. package/fesm2022/esfaenza-dashboard-feature.mjs +291 -223
  2. package/fesm2022/esfaenza-dashboard-feature.mjs.map +1 -1
  3. package/index.d.ts +693 -3
  4. package/package.json +15 -14
  5. package/lib/components/dashboard/dashboard.component.d.ts +0 -46
  6. package/lib/components/widgets/BaseWidgetComponent.d.ts +0 -44
  7. package/lib/components/widgets/IWidgetComponent.d.ts +0 -23
  8. package/lib/components/widgets/JaceWidgetTypes.d.ts +0 -6
  9. package/lib/components/widgets/chart/jace-dsh-chart.component.d.ts +0 -29
  10. package/lib/components/widgets/counter/jace-dsh-counter.component.d.ts +0 -24
  11. package/lib/components/widgets/list/jace-dsh-list.component.d.ts +0 -27
  12. package/lib/components/widgets/multiprog/circle-progress/circle-progress.component.d.ts +0 -219
  13. package/lib/components/widgets/multiprog/jace-dsh-multiprog.component.d.ts +0 -26
  14. package/lib/components/widgets/multiprog/progress-bar/progress-bar.component.d.ts +0 -6
  15. package/lib/dashboard-feature.module.d.ts +0 -24
  16. package/lib/models/config/JaceDashboardConfig.d.ts +0 -51
  17. package/lib/models/externals/JaceDashboardLayoutAppSearch.d.ts +0 -6
  18. package/lib/models/externals/JaceDashboardLayoutDetail.d.ts +0 -6
  19. package/lib/models/externals/JaceWidgetInstanceDetail.d.ts +0 -18
  20. package/lib/models/externals/Repository.d.ts +0 -5
  21. package/lib/models/externals/SaveJaceDashboardLayoutDTO.d.ts +0 -6
  22. package/lib/models/options/DefaultDashboardModuleOptions.d.ts +0 -6
  23. package/lib/models/options/IDashboardModuleOptions.d.ts +0 -4
  24. package/lib/models/options/IWidgetTypeConfig.d.ts +0 -8
  25. package/lib/models/widgets/BaseJaceWidgetModel.d.ts +0 -32
  26. package/lib/models/widgets/IJaceWidgetModel.d.ts +0 -33
  27. package/lib/models/widgets/JaceChartWidgetModel.d.ts +0 -10
  28. package/lib/models/widgets/JaceCounterWidgetModel.d.ts +0 -10
  29. package/lib/models/widgets/JaceListWidgetModel.d.ts +0 -16
  30. package/lib/models/widgets/JaceMultiprogWidgetModel.d.ts +0 -9
  31. package/lib/private-injection-tokens.d.ts +0 -3
  32. package/lib/public-injection-tokens.d.ts +0 -7
  33. package/lib/services/DashboardWidgetFactory.d.ts +0 -28
  34. package/lib/services/IDashboardFeatureDataService.d.ts +0 -11
  35. package/lib/services/dashboard-feature.service.d.ts +0 -18
  36. package/public-api.d.ts +0 -25
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "@esfaenza/dashboard-feature",
3
- "version": "19.2.9",
3
+ "version": "20.3.1",
4
4
  "peerDependencies": {
5
- "@angular/animations": "^19.2.15",
6
- "@angular/cdk": "^19.2.19",
7
- "@angular/common": "^19.2.15",
8
- "@angular/compiler": "^19.2.15",
9
- "@angular/core": "^19.2.15",
10
- "@angular/forms": "^19.2.15",
11
- "@angular/platform-browser": "^19.2.15",
12
- "@angular/platform-browser-dynamic": "^19.2.15",
13
- "@angular/router": "^19.2.15",
14
- "@angular/service-worker": "^19.2.15",
15
- "angular-gridster2": "19.0.0",
16
- "@esfaenza/core": "^19.2.246"
5
+ "@angular/animations": "^20.3.24",
6
+ "@angular/cdk": "^20.2.14",
7
+ "@angular/common": "^20.3.24",
8
+ "@angular/compiler": "^20.3.24",
9
+ "@angular/core": "^20.3.24",
10
+ "@angular/forms": "^20.3.24",
11
+ "@angular/platform-browser": "^20.3.24",
12
+ "@angular/platform-browser-dynamic": "^20.3.24",
13
+ "@angular/router": "^20.3.24",
14
+ "@angular/service-worker": "^20.3.24",
15
+ "angular-gridster2": "20.2.4",
16
+ "@esfaenza/core": "^20.3.7"
17
17
  },
18
18
  "dependencies": {
19
- "tslib": "^2.0.0"
19
+ "tslib": "^2.0.0",
20
+ "angular-gridster2": "20.2.4"
20
21
  },
21
22
  "module": "fesm2022/esfaenza-dashboard-feature.mjs",
22
23
  "typings": "index.d.ts",
@@ -1,46 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, ViewContainerRef } from "@angular/core";
2
- import { JaceDashboardConfig } from "../../models/config/JaceDashboardConfig";
3
- import { IJaceWidgetModel } from "../../models/widgets/IJaceWidgetModel";
4
- import { InterComService } from "@esfaenza/extensions";
5
- import { ActivatedRoute } from "@angular/router";
6
- import { JaceDashboardLayoutDetail } from "../../models/externals/JaceDashboardLayoutDetail";
7
- import { DashboardWidgetFactory } from "../../services/DashboardWidgetFactory";
8
- import { Subject, Subscription } from "rxjs";
9
- import { IDashboardFeatureDataService } from "../../services/IDashboardFeatureDataService";
10
- import * as i0 from "@angular/core";
11
- /**
12
- * Componente di base che rappresenta una dashboard.
13
- * Utilizza Gridster2 per il layout delle widget [Gridster2](https://tiberiuzuld.github.io/angular-gridster2/)
14
- */
15
- export declare class DashboardComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges {
16
- private dshService;
17
- private intercom;
18
- private route;
19
- private cmpFactory;
20
- private cdr;
21
- /**
22
- * Configurazione di questa dashboard.
23
- * Contiene anche le configurazioni di layout di Gridster2
24
- */
25
- Configuration: JaceDashboardConfig;
26
- dashboardDate: Date;
27
- dashboardLayout?: JaceDashboardLayoutDetail;
28
- widgetDefinitions: IJaceWidgetModel[];
29
- changesSub?: Subscription;
30
- trackedSubscriptions: Subscription[];
31
- readonly destroySignal$: Subject<void>;
32
- gridItemRefs: QueryList<ViewContainerRef>;
33
- constructor(dshService: IDashboardFeatureDataService, intercom: InterComService, route: ActivatedRoute, cmpFactory: DashboardWidgetFactory, cdr: ChangeDetectorRef);
34
- ngOnInit(): void;
35
- ngAfterViewInit(): void;
36
- ngOnDestroy(): void;
37
- clearTrackedSubscriptions(): void;
38
- ngOnChanges(changes: SimpleChanges): void;
39
- reloadData(): void;
40
- removeItem(widgetName: string): void;
41
- saveDashboard(): void;
42
- renderLayout(comps: QueryList<ViewContainerRef>): void;
43
- addItem(): void;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "es-dashboard", never, { "Configuration": { "alias": "Configuration"; "required": false; }; }, {}, never, never, false, never>;
46
- }
@@ -1,44 +0,0 @@
1
- import { EventEmitter, SimpleChanges } from "@angular/core";
2
- import { IJaceWidgetModel } from "../../models/widgets/IJaceWidgetModel";
3
- import { IWidgetComponent } from "./IWidgetComponent";
4
- import { IDashboardFeatureDataService } from "../../services/IDashboardFeatureDataService";
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Classe di base astratta per la creazione di Widget custom.
8
- */
9
- export declare abstract class BaseWidgetComponent<T extends IJaceWidgetModel> implements IWidgetComponent {
10
- protected dshService: IDashboardFeatureDataService;
11
- model?: T;
12
- DashboardDate: Date;
13
- OnRemove: EventEmitter<string>;
14
- configuration: boolean;
15
- dataReady: boolean;
16
- lastdate: string;
17
- constructor(dshService: IDashboardFeatureDataService);
18
- setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
19
- ngOnInit(): void;
20
- ngOnChanges(changes: SimpleChanges): void;
21
- /**
22
- * Prepara i parametri e lancia la chiamata GetWidgetData della DashboardFeatureService.
23
- * Imposta il model con i dati restituiti (setData) e imposta la variabile dataReady del campo a true
24
- */
25
- refreshData(): void;
26
- /**
27
- * Modifica/aggiorna i parametri della chiamata GetWidgetData prima di eseguirla. *
28
- *
29
- * @param pars parametri della chiamata. Se impostata, già contengono il parametro 'DT' con la data selezionata a livello di dashboard
30
- */
31
- abstract prepareGetDataParameters(pars: {
32
- [key: string]: string;
33
- }): void;
34
- /**
35
- * Da chiamare quando l'utente preme il pulsante 'rimuovi' nella toolbar della widget.
36
- */
37
- removeWidget(): void;
38
- /**
39
- * Da chiamare quando viene premuto il pulsante 'configure' nella toolbar della widget
40
- */
41
- configureWidget(): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseWidgetComponent<any>, never>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseWidgetComponent<any>>;
44
- }
@@ -1,23 +0,0 @@
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 +0,0 @@
1
- export declare enum JaceWidgetTypes {
2
- CHART = "CHART",
3
- COUNTER = "COUNTER",
4
- LIST = "LIST",
5
- MULTIPROGRESS = "MULTIPROGRESS"
6
- }
@@ -1,29 +0,0 @@
1
- import { ElementRef, 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
- sizeCalculated: boolean;
11
- size: number;
12
- DashboardDate: Date;
13
- OnRemove: EventEmitter<string>;
14
- configuration: boolean;
15
- dataReady: boolean;
16
- lastdate: string;
17
- chartName: string;
18
- containerEl: ElementRef;
19
- constructor(dshService: IDashboardFeatureDataService);
20
- setWidgetModel(dshBackendId: string, widgetModel: IJaceWidgetModel): void;
21
- ngOnInit(): void;
22
- ngAfterViewInit(): void;
23
- ngOnChanges(changes: SimpleChanges): void;
24
- refreshData(): void;
25
- removeWidget(): void;
26
- configure(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<JaceChartWidgetComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<JaceChartWidgetComponent, "jace-dsh-chart", never, { "DashboardDate": { "alias": "DashboardDate"; "required": false; }; }, { "OnRemove": "OnRemove"; }, never, never, false, never>;
29
- }
@@ -1,24 +0,0 @@
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 +0,0 @@
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
- }
@@ -1,219 +0,0 @@
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 +0,0 @@
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,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ProgressBarComponent {
3
- value: number;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "progress-bar", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
6
- }
@@ -1,24 +0,0 @@
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 "./components/widgets/multiprog/progress-bar/progress-bar.component";
12
- import * as i8 from "@angular/common";
13
- import * as i9 from "@angular/forms";
14
- import * as i10 from "angular-gridster2";
15
- import * as i11 from "@esfaenza/forms-and-validations";
16
- import * as i12 from "@esfaenza/es-charts";
17
- import * as i13 from "@esfaenza/httpservice";
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.CircleProgressComponent, typeof i7.ProgressBarComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.GridsterModule, typeof i11.FormsAndValidationsModule, typeof i12.EsChartsModule, typeof i13.HttpserviceModule], [typeof i1.DashboardComponent, typeof i2.JaceListWidgetComponent, typeof i3.JaceCounterWidgetComponent, typeof i4.JaceChartWidgetComponent, typeof i5.JaceMultiprogWidgetComponent, typeof i6.CircleProgressComponent, typeof i7.ProgressBarComponent]>;
23
- static ɵinj: i0.ɵɵInjectorDeclaration<DashboardFeatureModule>;
24
- }
@@ -1,51 +0,0 @@
1
- import { GridsterConfig } from 'angular-gridster2';
2
- /**
3
- * Configurazione della dashboard
4
- */
5
- export declare class JaceDashboardConfig {
6
- /**
7
- * Id del backend a cui verranno indirizzate le chiamate di questa dashboard.
8
- * Deve essere uno di quelli definiti in appsetting.json del FE nella sezione **Backends**.
9
- */
10
- backendId: string;
11
- /**
12
- * Nome della dashboard (deve essere univoco nel modulo).
13
- * Deve essere 'conosciuto' nel BE in modo da ottenere il layout delle widget da visualizzare.
14
- * Verrà usato anche per salvare le preferenze dell'account (widget ridimensionate/spostate/eliminate)
15
- */
16
- dashboardName: string;
17
- /**
18
- * ID dell'account dell'utente che deve visualizzare la dashboard.
19
- * HINT: Leggerlo da JaceIdentity dell'account al momento loggato.
20
- */
21
- accountId: number;
22
- /**
23
- * Configurazioni specifiche del layout di [Gridster2](https://tiberiuzuld.github.io/angular-gridster2/)
24
- */
25
- gridsterConfig: GridsterConfig;
26
- /**
27
- * Se questa dashboard contiene widget che mostrano dati che dipendono dalla data corrente
28
- * mostra il controllo (datetimepicker) per variare la data in base a cui mostrare i dati.
29
- *
30
- * NOTA: showToolbar deve essere a true.
31
- *
32
- * Default = false
33
- */
34
- showDateInput: boolean;
35
- /**
36
- * Mostrare la toolbar in cima alla dashboard che contiene il titolo, il pulsante per salvare il proprio layout personalizzato
37
- * e il picker per scegliere la data nel caso che le widget nella dashboard mostrino dati dipendenti dalla data.
38
- *
39
- * Default = true
40
- */
41
- showToolbar: boolean;
42
- /**
43
- * Titolo della dashboard mostrato in cima al layout all'interno della toolbar.
44
- *
45
- * NOTA: showToolbar deve essere a true.
46
- *
47
- * Default = undefined
48
- */
49
- dashboardTitle: string;
50
- constructor();
51
- }
@@ -1,6 +0,0 @@
1
- import { AppSearch } from "@esfaenza/es-table";
2
- import { JaceDashboardLayoutDetail } from "./JaceDashboardLayoutDetail";
3
- export declare class JaceDashboardLayoutAppSearch extends AppSearch<JaceDashboardLayoutDetail> {
4
- backendid: string;
5
- filtname?: string;
6
- }
@@ -1,6 +0,0 @@
1
- import { JaceWidgetInstanceDetail } from "./JaceWidgetInstanceDetail";
2
- export declare class JaceDashboardLayoutDetail {
3
- accountid: number;
4
- name: string;
5
- widgets: JaceWidgetInstanceDetail[];
6
- }
@@ -1,18 +0,0 @@
1
- export declare class JaceWidgetInstanceDetail {
2
- id?: number;
3
- name: string;
4
- title?: string;
5
- type: string;
6
- x: number;
7
- y: number;
8
- cols: number;
9
- rows: number;
10
- backendid?: string;
11
- dragenabled?: boolean;
12
- resizeenabled?: boolean;
13
- compactenabled?: boolean;
14
- options?: {
15
- [key: string]: any;
16
- };
17
- queryerror: boolean;
18
- }
@@ -1,5 +0,0 @@
1
- export declare const Repository: {
2
- GET_Dashboard_GetLayout: string;
3
- POST_Dashboard_SaveLayout: string;
4
- GET_Dashboard_GetWidgetData: string;
5
- };
@@ -1,6 +0,0 @@
1
- import { JaceWidgetInstanceDetail } from "./JaceWidgetInstanceDetail";
2
- export declare class SaveJaceDashboardLayoutDTO {
3
- backendid: string;
4
- name: string;
5
- widgets: JaceWidgetInstanceDetail[];
6
- }
@@ -1,6 +0,0 @@
1
- import { IDashboardModuleOptions } from "./IDashboardModuleOptions";
2
- import { IWidgetTypeConfig } from "./IWidgetTypeConfig";
3
- export declare class DefaultDashboardModuleOptions implements IDashboardModuleOptions {
4
- widgetTypes: IWidgetTypeConfig[];
5
- constructor();
6
- }
@@ -1,4 +0,0 @@
1
- import { IWidgetTypeConfig } from "./IWidgetTypeConfig";
2
- export interface IDashboardModuleOptions {
3
- widgetTypes: IWidgetTypeConfig[];
4
- }