@esfaenza/dashboard-feature 15.2.14 → 19.2.0

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 (69) hide show
  1. package/README.md +24 -24
  2. package/fesm2022/esfaenza-dashboard-feature.mjs +988 -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/jace-dsh-multiprog.component.d.ts +26 -26
  13. package/lib/dashboard-feature.module.d.ts +22 -24
  14. package/lib/models/config/JaceDashboardConfig.d.ts +51 -51
  15. package/lib/models/externals/JaceDashboardLayoutAppSearch.d.ts +6 -6
  16. package/lib/models/externals/JaceDashboardLayoutDetail.d.ts +6 -6
  17. package/lib/models/externals/JaceWidgetInstanceDetail.d.ts +18 -18
  18. package/lib/models/externals/Repository.d.ts +5 -5
  19. package/lib/models/externals/SaveJaceDashboardLayoutDTO.d.ts +6 -6
  20. package/lib/models/options/DefaultDashboardModuleOptions.d.ts +6 -6
  21. package/lib/models/options/IDashboardModuleOptions.d.ts +4 -4
  22. package/lib/models/options/IWidgetTypeConfig.d.ts +8 -8
  23. package/lib/models/widgets/BaseJaceWidgetModel.d.ts +32 -38
  24. package/lib/models/widgets/IJaceWidgetModel.d.ts +33 -39
  25. package/lib/models/widgets/JaceChartWidgetModel.d.ts +8 -14
  26. package/lib/models/widgets/JaceCounterWidgetModel.d.ts +10 -18
  27. package/lib/models/widgets/JaceListWidgetModel.d.ts +16 -27
  28. package/lib/models/widgets/JaceMultiprogWidgetModel.d.ts +9 -15
  29. package/lib/private-injection-tokens.d.ts +3 -0
  30. package/lib/{tokens.d.ts → public-injection-tokens.d.ts} +7 -9
  31. package/lib/services/DashboardWidgetFactory.d.ts +28 -28
  32. package/lib/services/IDashboardFeatureDataService.d.ts +11 -31
  33. package/lib/services/dashboard-feature.service.d.ts +18 -38
  34. package/package.json +15 -16
  35. package/public-api.d.ts +23 -23
  36. package/esm2020/esfaenza-dashboard-feature.mjs +0 -5
  37. package/esm2020/lib/components/dashboard/dashboard.component.mjs +0 -163
  38. package/esm2020/lib/components/widgets/BaseWidgetComponent.mjs +0 -89
  39. package/esm2020/lib/components/widgets/IWidgetComponent.mjs +0 -2
  40. package/esm2020/lib/components/widgets/JaceWidgetTypes.mjs +0 -8
  41. package/esm2020/lib/components/widgets/chart/jace-dsh-chart.component.mjs +0 -81
  42. package/esm2020/lib/components/widgets/counter/jace-dsh-counter.component.mjs +0 -80
  43. package/esm2020/lib/components/widgets/list/jace-dsh-list.component.mjs +0 -91
  44. package/esm2020/lib/components/widgets/multiprog/jace-dsh-multiprog.component.mjs +0 -82
  45. package/esm2020/lib/dashboard-feature.module.mjs +0 -98
  46. package/esm2020/lib/models/config/JaceDashboardConfig.mjs +0 -57
  47. package/esm2020/lib/models/externals/JaceDashboardLayoutAppSearch.mjs +0 -8
  48. package/esm2020/lib/models/externals/JaceDashboardLayoutDetail.mjs +0 -4
  49. package/esm2020/lib/models/externals/JaceWidgetInstanceDetail.mjs +0 -7
  50. package/esm2020/lib/models/externals/Repository.mjs +0 -6
  51. package/esm2020/lib/models/externals/SaveJaceDashboardLayoutDTO.mjs +0 -6
  52. package/esm2020/lib/models/options/DefaultDashboardModuleOptions.mjs +0 -35
  53. package/esm2020/lib/models/options/IDashboardModuleOptions.mjs +0 -2
  54. package/esm2020/lib/models/options/IWidgetTypeConfig.mjs +0 -2
  55. package/esm2020/lib/models/widgets/BaseJaceWidgetModel.mjs +0 -38
  56. package/esm2020/lib/models/widgets/IJaceWidgetModel.mjs +0 -2
  57. package/esm2020/lib/models/widgets/JaceChartWidgetModel.mjs +0 -29
  58. package/esm2020/lib/models/widgets/JaceCounterWidgetModel.mjs +0 -29
  59. package/esm2020/lib/models/widgets/JaceListWidgetModel.mjs +0 -48
  60. package/esm2020/lib/models/widgets/JaceMultiprogWidgetModel.mjs +0 -32
  61. package/esm2020/lib/services/DashboardWidgetFactory.mjs +0 -49
  62. package/esm2020/lib/services/IDashboardFeatureDataService.mjs +0 -2
  63. package/esm2020/lib/services/dashboard-feature.service.mjs +0 -58
  64. package/esm2020/lib/tokens.mjs +0 -8
  65. package/esm2020/public-api.mjs +0 -34
  66. package/fesm2015/esfaenza-dashboard-feature.mjs +0 -1076
  67. package/fesm2015/esfaenza-dashboard-feature.mjs.map +0 -1
  68. package/fesm2020/esfaenza-dashboard-feature.mjs +0 -1059
  69. package/fesm2020/esfaenza-dashboard-feature.mjs.map +0 -1
@@ -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
+ }
@@ -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,22 @@
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 "@angular/common";
11
+ import * as i7 from "@angular/forms";
12
+ import * as i8 from "angular-gridster2";
13
+ import * as i9 from "@esfaenza/forms-and-validations";
14
+ import * as i10 from "@esfaenza/es-charts";
15
+ import * as i11 from "@esfaenza/httpservice";
16
+ export declare class DashboardFeatureModule {
17
+ static forRoot(options?: IDashboardModuleOptions): ModuleWithProviders<DashboardFeatureModule>;
18
+ constructor(componentFactory: DashboardWidgetFactory, options: IDashboardModuleOptions[]);
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardFeatureModule, [null, { optional: true; }]>;
20
+ 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.FormsAndValidationsModule, typeof i10.EsChartsModule, typeof i11.HttpserviceModule], [typeof i1.DashboardComponent, typeof i2.JaceListWidgetComponent, typeof i3.JaceCounterWidgetComponent, typeof i4.JaceChartWidgetComponent, typeof i5.JaceMultiprogWidgetComponent]>;
21
+ static ɵinj: i0.ɵɵInjectorDeclaration<DashboardFeatureModule>;
22
+ }
@@ -1,51 +1,51 @@
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
+ 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 +1,6 @@
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
+ 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 +1,6 @@
1
- import { JaceWidgetInstanceDetail } from "./JaceWidgetInstanceDetail";
2
- export declare class JaceDashboardLayoutDetail {
3
- accountid: number;
4
- name: string;
5
- widgets: JaceWidgetInstanceDetail[];
6
- }
1
+ import { JaceWidgetInstanceDetail } from "./JaceWidgetInstanceDetail";
2
+ export declare class JaceDashboardLayoutDetail {
3
+ accountid: number;
4
+ name: string;
5
+ widgets: JaceWidgetInstanceDetail[];
6
+ }
@@ -1,18 +1,18 @@
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
+ 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 +1,5 @@
1
- export declare const Repository: {
2
- GET_Dashboard_GetLayout: string;
3
- POST_Dashboard_SaveLayout: string;
4
- GET_Dashboard_GetWidgetData: string;
5
- };
1
+ export declare const Repository: {
2
+ GET_Dashboard_GetLayout: string;
3
+ POST_Dashboard_SaveLayout: string;
4
+ GET_Dashboard_GetWidgetData: string;
5
+ };
@@ -1,6 +1,6 @@
1
- import { JaceWidgetInstanceDetail } from "./JaceWidgetInstanceDetail";
2
- export declare class SaveJaceDashboardLayoutDTO {
3
- backendid: string;
4
- name: string;
5
- widgets: JaceWidgetInstanceDetail[];
6
- }
1
+ import { JaceWidgetInstanceDetail } from "./JaceWidgetInstanceDetail";
2
+ export declare class SaveJaceDashboardLayoutDTO {
3
+ backendid: string;
4
+ name: string;
5
+ widgets: JaceWidgetInstanceDetail[];
6
+ }
@@ -1,6 +1,6 @@
1
- import { IDashboardModuleOptions } from "./IDashboardModuleOptions";
2
- import { IWidgetTypeConfig } from "./IWidgetTypeConfig";
3
- export declare class DefaultDashboardModuleOptions implements IDashboardModuleOptions {
4
- widgetTypes: IWidgetTypeConfig[];
5
- constructor();
6
- }
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 +1,4 @@
1
- import { IWidgetTypeConfig } from "./IWidgetTypeConfig";
2
- export interface IDashboardModuleOptions {
3
- widgetTypes: IWidgetTypeConfig[];
4
- }
1
+ import { IWidgetTypeConfig } from "./IWidgetTypeConfig";
2
+ export interface IDashboardModuleOptions {
3
+ widgetTypes: IWidgetTypeConfig[];
4
+ }
@@ -1,8 +1,8 @@
1
- import { Type } from "@angular/core";
2
- import { IWidgetComponent } from "../../components/widgets/IWidgetComponent";
3
- import { IJaceWidgetModel } from "../widgets/IJaceWidgetModel";
4
- export interface IWidgetTypeConfig {
5
- name: string;
6
- component: Type<IWidgetComponent>;
7
- model: Type<IJaceWidgetModel>;
8
- }
1
+ import { Type } from "@angular/core";
2
+ import { IWidgetComponent } from "../../components/widgets/IWidgetComponent";
3
+ import { IJaceWidgetModel } from "../widgets/IJaceWidgetModel";
4
+ export interface IWidgetTypeConfig {
5
+ name: string;
6
+ component: Type<IWidgetComponent>;
7
+ model: Type<IJaceWidgetModel>;
8
+ }
@@ -1,38 +1,32 @@
1
- import { GridsterItem, GridsterItemComponentInterface } from "angular-gridster2";
2
- import { JaceWidgetInstanceDetail } from "../externals/JaceWidgetInstanceDetail";
3
- import { IJaceWidgetModel } from "./IJaceWidgetModel";
4
- export declare const BaseJaceWidgetConstants: {
5
- readonly ITEMS: "items";
6
- readonly QUERYERROR: "queryerror";
7
- readonly OPTIONS: "options";
8
- };
9
- export declare abstract class BaseJaceWidgetModel implements IJaceWidgetModel {
10
- name: string;
11
- title?: string | undefined;
12
- widgetType: string;
13
- dataError: boolean;
14
- options?: {
15
- [key: string]: any;
16
- } | undefined;
17
- backendid: string;
18
- x: number;
19
- y: number;
20
- rows: number;
21
- cols: number;
22
- resizeEnabled?: boolean;
23
- layerIndex?: number | undefined;
24
- initCallback?: ((item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void) | undefined;
25
- dragEnabled?: boolean | undefined;
26
- compactEnabled?: boolean | undefined;
27
- maxItemRows?: number | undefined;
28
- minItemRows?: number | undefined;
29
- maxItemCols?: number | undefined;
30
- minItemCols?: number | undefined;
31
- minItemArea?: number | undefined;
32
- maxItemArea?: number | undefined;
33
- [propName: string]: any;
34
- constructor();
35
- configureFromInstanceDetails(details: JaceWidgetInstanceDetail): void;
36
- setData(data?: any): void;
37
- abstract setWidgetData(data?: any): void;
38
- }
1
+ import { GridsterItem, GridsterItemComponentInterface } from "angular-gridster2";
2
+ import { JaceWidgetInstanceDetail } from "../externals/JaceWidgetInstanceDetail";
3
+ import { IJaceWidgetModel } from "./IJaceWidgetModel";
4
+ export declare abstract class BaseJaceWidgetModel implements IJaceWidgetModel {
5
+ name: string;
6
+ title?: string | undefined;
7
+ widgetType: string;
8
+ dataError: boolean;
9
+ options?: {
10
+ [key: string]: any;
11
+ } | undefined;
12
+ backendid: string;
13
+ x: number;
14
+ y: number;
15
+ rows: number;
16
+ cols: number;
17
+ resizeEnabled?: boolean;
18
+ layerIndex?: number | undefined;
19
+ initCallback?: ((item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void) | undefined;
20
+ dragEnabled?: boolean | undefined;
21
+ compactEnabled?: boolean | undefined;
22
+ maxItemRows?: number | undefined;
23
+ minItemRows?: number | undefined;
24
+ maxItemCols?: number | undefined;
25
+ minItemCols?: number | undefined;
26
+ minItemArea?: number | undefined;
27
+ maxItemArea?: number | undefined;
28
+ [propName: string]: any;
29
+ constructor();
30
+ configureFromInstanceDetails(details: JaceWidgetInstanceDetail): void;
31
+ abstract setData(data?: any): void;
32
+ }
@@ -1,39 +1,33 @@
1
- import { GridsterItem } from 'angular-gridster2';
2
- import { JaceWidgetInstanceDetail } from '../externals/JaceWidgetInstanceDetail';
3
- export interface IJaceWidgetModel extends GridsterItem {
4
- /**
5
- * Nome della widget (univoco per dashboard)
6
- */
7
- name: string;
8
- /**
9
- * Titolo visualizzato
10
- */
11
- title?: string;
12
- /**
13
- * Tipo di widget
14
- */
15
- widgetType: string;
16
- /**
17
- * Indica che c'è un errore nel recupero dati
18
- */
19
- dataError: boolean;
20
- /**
21
- * Opzioni specifiche per questo tipo di widget
22
- */
23
- options?: {
24
- [key: string]: any;
25
- };
26
- /**
27
- * Id del backend da contattare per avere i dati di questa widget
28
- * Se non specificato o uguale a _default_backend_, viene usato quello specificato in JaceDashboardConfig della dashboard
29
- */
30
- backendid: string;
31
- /**
32
- * Inzializzazione del modello della widget dalla definizione arrivata da Backend
33
- */
34
- configureFromInstanceDetails(details: JaceWidgetInstanceDetail): void;
35
- /**
36
- * Chiamata quando arrivano i dati dal Backend
37
- */
38
- setData(data?: any): void;
39
- }
1
+ import { GridsterItem } from 'angular-gridster2';
2
+ import { JaceWidgetInstanceDetail } from '../externals/JaceWidgetInstanceDetail';
3
+ export interface IJaceWidgetModel extends GridsterItem {
4
+ /**
5
+ * Nome della widget (univoco per dashboard)
6
+ */
7
+ name: string;
8
+ /**
9
+ * Titolo visualizzato
10
+ */
11
+ title?: string;
12
+ /**
13
+ * Tipo di widget
14
+ */
15
+ widgetType: string;
16
+ /**
17
+ * Indica che c'è un errore nel recupero dati
18
+ */
19
+ dataError: boolean;
20
+ /**
21
+ * Opzioni specifiche per questo tipo di widget
22
+ */
23
+ options?: {
24
+ [key: string]: any;
25
+ };
26
+ /**
27
+ * Id del backend da contattare per avere i dati di questa widget
28
+ * Se non specificato o uguale a _default_backend_, viene usato quello specificato in JaceDashboardConfig della dashboard
29
+ */
30
+ backendid: string;
31
+ configureFromInstanceDetails(details: JaceWidgetInstanceDetail): void;
32
+ setData(data?: any): void;
33
+ }
@@ -1,14 +1,8 @@
1
- import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
2
- export declare const JaceChartWidgetConstants: {
3
- readonly TYPE: "CHART";
4
- readonly DATAFIELD_LEGEND: "legend";
5
- readonly DATAFIELD_CHART_TYPE: "charttype";
6
- readonly DATAFIELD_CHART_DATA: "chartdata";
7
- };
8
- export declare class JaceChartWidgetModel extends BaseJaceWidgetModel {
9
- chartType: 'pie' | 'line' | 'vertical' | 'vertical-2d' | 'vertical-stacked';
10
- legend: boolean;
11
- chartData: any;
12
- constructor();
13
- setWidgetData(data?: any): void;
14
- }
1
+ import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
2
+ export declare class JaceChartWidgetModel extends BaseJaceWidgetModel {
3
+ chartType: 'pie' | 'line' | 'vertical' | 'vertical-2d' | 'vertical-stacked';
4
+ legend: boolean;
5
+ chartData: any;
6
+ constructor();
7
+ setData(data?: any): void;
8
+ }
@@ -1,18 +1,10 @@
1
- import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
2
- export declare const JaceCounterWidgetConstants: {
3
- readonly TYPE: "COUNTER";
4
- readonly DATAFIELD_SUPERTEXT: "supertext";
5
- readonly DATAFIELD_SUBTEXT: "subtext";
6
- readonly DATAFIELD_VALUE: "value";
7
- readonly DATAFIELD_ICON: "icon";
8
- readonly DATAFIELD_UNIT: "unit";
9
- };
10
- export declare class JaceCounterWidgetModel extends BaseJaceWidgetModel {
11
- superText?: string;
12
- subText?: string;
13
- value: number;
14
- icon?: string;
15
- unit?: string;
16
- constructor();
17
- setWidgetData(data?: any): void;
18
- }
1
+ import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
2
+ export declare class JaceCounterWidgetModel extends BaseJaceWidgetModel {
3
+ superText?: string;
4
+ subText?: string;
5
+ value: number;
6
+ icon?: string;
7
+ unit?: string;
8
+ constructor();
9
+ setData(data?: any): void;
10
+ }
@@ -1,27 +1,16 @@
1
- import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
2
- export declare class JaceListItemWidget {
3
- id?: any;
4
- showId: boolean;
5
- idParamName?: string;
6
- description: string;
7
- subline?: string;
8
- classes?: string;
9
- link?: string;
10
- }
11
- export declare const JaceListWidgetConstants: {
12
- readonly TYPE: "LIST";
13
- readonly DATAFIELD_SUPERTEXT: "supertext";
14
- readonly DATAFIELD_ID: "id";
15
- readonly DATAFIELD_DESCRIPTION: "description";
16
- readonly DATAFIELD_SUBLINE: "subline";
17
- readonly DATAFIELD_CLASSES: "classes";
18
- readonly DATAFIELD_ID_PARAM_NAME: "idparamname";
19
- readonly DATAFIELD_LINK: "link";
20
- readonly DATAFIELD_SHOWID: "showId";
21
- };
22
- export declare class JaceListWidgetModel extends BaseJaceWidgetModel {
23
- superText?: string;
24
- items: JaceListItemWidget[];
25
- constructor();
26
- setWidgetData(data?: any): void;
27
- }
1
+ import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
2
+ export declare class JaceListItemWidget {
3
+ id?: any;
4
+ showId: boolean;
5
+ idParamName?: string;
6
+ description: string;
7
+ subline?: string;
8
+ classes?: string;
9
+ link?: string;
10
+ }
11
+ export declare class JaceListWidgetModel extends BaseJaceWidgetModel {
12
+ superText?: string;
13
+ items: JaceListItemWidget[];
14
+ constructor();
15
+ setData(data?: any): void;
16
+ }