@esfaenza/dashboard-feature 15.2.13 → 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.
- package/README.md +24 -24
- package/fesm2022/esfaenza-dashboard-feature.mjs +988 -0
- package/fesm2022/esfaenza-dashboard-feature.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/components/dashboard/dashboard.component.d.ts +46 -46
- package/lib/components/widgets/BaseWidgetComponent.d.ts +44 -47
- package/lib/components/widgets/IWidgetComponent.d.ts +23 -23
- package/lib/components/widgets/JaceWidgetTypes.d.ts +6 -6
- package/lib/components/widgets/chart/jace-dsh-chart.component.d.ts +25 -25
- package/lib/components/widgets/counter/jace-dsh-counter.component.d.ts +24 -24
- package/lib/components/widgets/list/jace-dsh-list.component.d.ts +27 -27
- package/lib/components/widgets/multiprog/jace-dsh-multiprog.component.d.ts +26 -26
- package/lib/dashboard-feature.module.d.ts +22 -24
- package/lib/models/config/JaceDashboardConfig.d.ts +51 -51
- package/lib/models/externals/JaceDashboardLayoutAppSearch.d.ts +6 -6
- package/lib/models/externals/JaceDashboardLayoutDetail.d.ts +6 -6
- package/lib/models/externals/JaceWidgetInstanceDetail.d.ts +18 -18
- package/lib/models/externals/Repository.d.ts +5 -5
- package/lib/models/externals/SaveJaceDashboardLayoutDTO.d.ts +6 -6
- package/lib/models/options/DefaultDashboardModuleOptions.d.ts +6 -6
- package/lib/models/options/IDashboardModuleOptions.d.ts +4 -4
- package/lib/models/options/IWidgetTypeConfig.d.ts +8 -8
- package/lib/models/widgets/BaseJaceWidgetModel.d.ts +32 -32
- package/lib/models/widgets/IJaceWidgetModel.d.ts +33 -33
- package/lib/models/widgets/JaceChartWidgetModel.d.ts +8 -8
- package/lib/models/widgets/JaceCounterWidgetModel.d.ts +10 -10
- package/lib/models/widgets/JaceListWidgetModel.d.ts +16 -16
- package/lib/models/widgets/JaceMultiprogWidgetModel.d.ts +9 -9
- package/lib/private-injection-tokens.d.ts +3 -0
- package/lib/{tokens.d.ts → public-injection-tokens.d.ts} +7 -9
- package/lib/services/DashboardWidgetFactory.d.ts +28 -28
- package/lib/services/IDashboardFeatureDataService.d.ts +11 -31
- package/lib/services/dashboard-feature.service.d.ts +18 -38
- package/package.json +15 -16
- package/public-api.d.ts +23 -23
- package/esm2020/esfaenza-dashboard-feature.mjs +0 -5
- package/esm2020/lib/components/dashboard/dashboard.component.mjs +0 -163
- package/esm2020/lib/components/widgets/BaseWidgetComponent.mjs +0 -89
- package/esm2020/lib/components/widgets/IWidgetComponent.mjs +0 -2
- package/esm2020/lib/components/widgets/JaceWidgetTypes.mjs +0 -8
- package/esm2020/lib/components/widgets/chart/jace-dsh-chart.component.mjs +0 -81
- package/esm2020/lib/components/widgets/counter/jace-dsh-counter.component.mjs +0 -80
- package/esm2020/lib/components/widgets/list/jace-dsh-list.component.mjs +0 -91
- package/esm2020/lib/components/widgets/multiprog/jace-dsh-multiprog.component.mjs +0 -82
- package/esm2020/lib/dashboard-feature.module.mjs +0 -98
- package/esm2020/lib/models/config/JaceDashboardConfig.mjs +0 -57
- package/esm2020/lib/models/externals/JaceDashboardLayoutAppSearch.mjs +0 -8
- package/esm2020/lib/models/externals/JaceDashboardLayoutDetail.mjs +0 -4
- package/esm2020/lib/models/externals/JaceWidgetInstanceDetail.mjs +0 -7
- package/esm2020/lib/models/externals/Repository.mjs +0 -6
- package/esm2020/lib/models/externals/SaveJaceDashboardLayoutDTO.mjs +0 -6
- package/esm2020/lib/models/options/DefaultDashboardModuleOptions.mjs +0 -35
- package/esm2020/lib/models/options/IDashboardModuleOptions.mjs +0 -2
- package/esm2020/lib/models/options/IWidgetTypeConfig.mjs +0 -2
- package/esm2020/lib/models/widgets/BaseJaceWidgetModel.mjs +0 -24
- package/esm2020/lib/models/widgets/IJaceWidgetModel.mjs +0 -2
- package/esm2020/lib/models/widgets/JaceChartWidgetModel.mjs +0 -27
- package/esm2020/lib/models/widgets/JaceCounterWidgetModel.mjs +0 -23
- package/esm2020/lib/models/widgets/JaceListWidgetModel.mjs +0 -39
- package/esm2020/lib/models/widgets/JaceMultiprogWidgetModel.mjs +0 -28
- package/esm2020/lib/services/DashboardWidgetFactory.mjs +0 -49
- package/esm2020/lib/services/IDashboardFeatureDataService.mjs +0 -2
- package/esm2020/lib/services/dashboard-feature.service.mjs +0 -58
- package/esm2020/lib/tokens.mjs +0 -8
- package/esm2020/public-api.mjs +0 -34
- package/fesm2015/esfaenza-dashboard-feature.mjs +0 -1041
- package/fesm2015/esfaenza-dashboard-feature.mjs.map +0 -1
- package/fesm2020/esfaenza-dashboard-feature.mjs +0 -1024
- 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 "@
|
|
14
|
-
import * as i10 from "@esfaenza/
|
|
15
|
-
import * as i11 from "@esfaenza/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
static
|
|
20
|
-
|
|
21
|
-
static
|
|
22
|
-
|
|
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,32 +1,32 @@
|
|
|
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
|
+
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,33 +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
|
-
configureFromInstanceDetails(details: JaceWidgetInstanceDetail): void;
|
|
32
|
-
setData(data?: any): void;
|
|
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
|
+
configureFromInstanceDetails(details: JaceWidgetInstanceDetail): void;
|
|
32
|
+
setData(data?: any): void;
|
|
33
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
+
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,10 +1,10 @@
|
|
|
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
|
+
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,16 +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 class JaceListWidgetModel extends BaseJaceWidgetModel {
|
|
12
|
-
superText?: string;
|
|
13
|
-
items: JaceListItemWidget[];
|
|
14
|
-
constructor();
|
|
15
|
-
setData(data?: any): void;
|
|
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 class JaceListWidgetModel extends BaseJaceWidgetModel {
|
|
12
|
+
superText?: string;
|
|
13
|
+
items: JaceListItemWidget[];
|
|
14
|
+
constructor();
|
|
15
|
+
setData(data?: any): void;
|
|
16
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
|
|
2
|
-
export declare class JaceMultiprogWidgetModel extends BaseJaceWidgetModel {
|
|
3
|
-
resizeEnabled: boolean;
|
|
4
|
-
progressTitles: string[];
|
|
5
|
-
progressValues: number[];
|
|
6
|
-
circleProgress: boolean;
|
|
7
|
-
constructor();
|
|
8
|
-
setData(data?: any): void;
|
|
9
|
-
}
|
|
1
|
+
import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
|
|
2
|
+
export declare class JaceMultiprogWidgetModel extends BaseJaceWidgetModel {
|
|
3
|
+
resizeEnabled: boolean;
|
|
4
|
+
progressTitles: string[];
|
|
5
|
+
progressValues: number[];
|
|
6
|
+
circleProgress: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
setData(data?: any): void;
|
|
9
|
+
}
|