@esfaenza/dashboard-feature 15.2.14 → 19.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +24 -24
  2. package/fesm2022/esfaenza-dashboard-feature.mjs +1814 -0
  3. package/fesm2022/esfaenza-dashboard-feature.mjs.map +1 -0
  4. package/index.d.ts +5 -5
  5. package/lib/components/dashboard/dashboard.component.d.ts +46 -46
  6. package/lib/components/widgets/BaseWidgetComponent.d.ts +44 -47
  7. package/lib/components/widgets/IWidgetComponent.d.ts +23 -23
  8. package/lib/components/widgets/JaceWidgetTypes.d.ts +6 -6
  9. package/lib/components/widgets/chart/jace-dsh-chart.component.d.ts +25 -25
  10. package/lib/components/widgets/counter/jace-dsh-counter.component.d.ts +24 -24
  11. package/lib/components/widgets/list/jace-dsh-list.component.d.ts +27 -27
  12. package/lib/components/widgets/multiprog/circle-progress/circle-progress.component.d.ts +219 -0
  13. package/lib/components/widgets/multiprog/jace-dsh-multiprog.component.d.ts +26 -26
  14. package/lib/dashboard-feature.module.d.ts +23 -24
  15. package/lib/models/config/JaceDashboardConfig.d.ts +51 -51
  16. package/lib/models/externals/JaceDashboardLayoutAppSearch.d.ts +6 -6
  17. package/lib/models/externals/JaceDashboardLayoutDetail.d.ts +6 -6
  18. package/lib/models/externals/JaceWidgetInstanceDetail.d.ts +18 -18
  19. package/lib/models/externals/Repository.d.ts +5 -5
  20. package/lib/models/externals/SaveJaceDashboardLayoutDTO.d.ts +6 -6
  21. package/lib/models/options/DefaultDashboardModuleOptions.d.ts +6 -6
  22. package/lib/models/options/IDashboardModuleOptions.d.ts +4 -4
  23. package/lib/models/options/IWidgetTypeConfig.d.ts +8 -8
  24. package/lib/models/widgets/BaseJaceWidgetModel.d.ts +32 -38
  25. package/lib/models/widgets/IJaceWidgetModel.d.ts +33 -39
  26. package/lib/models/widgets/JaceChartWidgetModel.d.ts +8 -14
  27. package/lib/models/widgets/JaceCounterWidgetModel.d.ts +10 -18
  28. package/lib/models/widgets/JaceListWidgetModel.d.ts +16 -27
  29. package/lib/models/widgets/JaceMultiprogWidgetModel.d.ts +9 -15
  30. package/lib/private-injection-tokens.d.ts +3 -0
  31. package/lib/{tokens.d.ts → public-injection-tokens.d.ts} +7 -9
  32. package/lib/services/DashboardWidgetFactory.d.ts +28 -28
  33. package/lib/services/IDashboardFeatureDataService.d.ts +11 -31
  34. package/lib/services/dashboard-feature.service.d.ts +18 -38
  35. package/package.json +15 -16
  36. package/public-api.d.ts +24 -23
  37. package/esm2020/esfaenza-dashboard-feature.mjs +0 -5
  38. package/esm2020/lib/components/dashboard/dashboard.component.mjs +0 -163
  39. package/esm2020/lib/components/widgets/BaseWidgetComponent.mjs +0 -89
  40. package/esm2020/lib/components/widgets/IWidgetComponent.mjs +0 -2
  41. package/esm2020/lib/components/widgets/JaceWidgetTypes.mjs +0 -8
  42. package/esm2020/lib/components/widgets/chart/jace-dsh-chart.component.mjs +0 -81
  43. package/esm2020/lib/components/widgets/counter/jace-dsh-counter.component.mjs +0 -80
  44. package/esm2020/lib/components/widgets/list/jace-dsh-list.component.mjs +0 -91
  45. package/esm2020/lib/components/widgets/multiprog/jace-dsh-multiprog.component.mjs +0 -82
  46. package/esm2020/lib/dashboard-feature.module.mjs +0 -98
  47. package/esm2020/lib/models/config/JaceDashboardConfig.mjs +0 -57
  48. package/esm2020/lib/models/externals/JaceDashboardLayoutAppSearch.mjs +0 -8
  49. package/esm2020/lib/models/externals/JaceDashboardLayoutDetail.mjs +0 -4
  50. package/esm2020/lib/models/externals/JaceWidgetInstanceDetail.mjs +0 -7
  51. package/esm2020/lib/models/externals/Repository.mjs +0 -6
  52. package/esm2020/lib/models/externals/SaveJaceDashboardLayoutDTO.mjs +0 -6
  53. package/esm2020/lib/models/options/DefaultDashboardModuleOptions.mjs +0 -35
  54. package/esm2020/lib/models/options/IDashboardModuleOptions.mjs +0 -2
  55. package/esm2020/lib/models/options/IWidgetTypeConfig.mjs +0 -2
  56. package/esm2020/lib/models/widgets/BaseJaceWidgetModel.mjs +0 -38
  57. package/esm2020/lib/models/widgets/IJaceWidgetModel.mjs +0 -2
  58. package/esm2020/lib/models/widgets/JaceChartWidgetModel.mjs +0 -29
  59. package/esm2020/lib/models/widgets/JaceCounterWidgetModel.mjs +0 -29
  60. package/esm2020/lib/models/widgets/JaceListWidgetModel.mjs +0 -48
  61. package/esm2020/lib/models/widgets/JaceMultiprogWidgetModel.mjs +0 -32
  62. package/esm2020/lib/services/DashboardWidgetFactory.mjs +0 -49
  63. package/esm2020/lib/services/IDashboardFeatureDataService.mjs +0 -2
  64. package/esm2020/lib/services/dashboard-feature.service.mjs +0 -58
  65. package/esm2020/lib/tokens.mjs +0 -8
  66. package/esm2020/public-api.mjs +0 -34
  67. package/fesm2015/esfaenza-dashboard-feature.mjs +0 -1076
  68. package/fesm2015/esfaenza-dashboard-feature.mjs.map +0 -1
  69. package/fesm2020/esfaenza-dashboard-feature.mjs +0 -1059
  70. package/fesm2020/esfaenza-dashboard-feature.mjs.map +0 -1
@@ -1,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
+ }
@@ -1,15 +1,9 @@
1
- import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
2
- export declare const JaceMultiprogWidgetConstants: {
3
- readonly TYPE: "MULTIPROGRESS";
4
- readonly DATAFIELD_TITLES: "progresstitles";
5
- readonly DATAFIELD_VALUES: "progressvalues";
6
- readonly DATAFIELD_AS_CIRCLES: "circleprogress";
7
- };
8
- export declare class JaceMultiprogWidgetModel extends BaseJaceWidgetModel {
9
- resizeEnabled: boolean;
10
- progressTitles: string[];
11
- progressValues: number[];
12
- circleProgress: boolean;
13
- constructor();
14
- setWidgetData(data?: any): void;
15
- }
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
+ }
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ import { IDashboardModuleOptions } from "./models/options/IDashboardModuleOptions";
3
+ export declare const DSH_OPTIONS: InjectionToken<IDashboardModuleOptions>;
@@ -1,9 +1,7 @@
1
- import { InjectionToken } from "@angular/core";
2
- import { IDashboardFeatureDataService } from "./services/IDashboardFeatureDataService";
3
- import { IDashboardModuleOptions } from "./models/options/IDashboardModuleOptions";
4
- /**
5
- * Token di registrazione della DashboardFeatureService.
6
- * Permette di fare l'override dell'implementazione di default a scopo di test delle widget
7
- */
8
- export declare const DSH_DATA_SERVICE: InjectionToken<IDashboardFeatureDataService>;
9
- export declare const DSH_OPTIONS: InjectionToken<IDashboardModuleOptions>;
1
+ import { InjectionToken } from "@angular/core";
2
+ import { IDashboardFeatureDataService } from "./services/IDashboardFeatureDataService";
3
+ /**
4
+ * Token di registrazione della DashboardFeatureService.
5
+ * Permette di fare l'override dell'implementazione di default a scopo di test delle widget
6
+ */
7
+ export declare const DSH_DATA_SERVICE: InjectionToken<IDashboardFeatureDataService>;
@@ -1,28 +1,28 @@
1
- import { ComponentRef, ViewContainerRef } from '@angular/core';
2
- import { IWidgetComponent } from '../components/widgets/IWidgetComponent';
3
- import { JaceWidgetInstanceDetail } from '../models/externals/JaceWidgetInstanceDetail';
4
- import { IJaceWidgetModel } from '../models/widgets/IJaceWidgetModel';
5
- import { IDashboardModuleOptions } from '../models/options/IDashboardModuleOptions';
6
- import { IWidgetTypeConfig } from '../models/options/IWidgetTypeConfig';
7
- import * as i0 from "@angular/core";
8
- export interface IConstructableModel<T> {
9
- new (): T;
10
- }
11
- export declare class DashboardWidgetFactory {
12
- types: {
13
- [name: string]: IWidgetTypeConfig;
14
- };
15
- constructor();
16
- addOption(option: IDashboardModuleOptions): void;
17
- /**
18
- * Versione ng13+ della creazione dei componenti dinamici delle widget
19
- * @param type
20
- * @param vcr
21
- * @returns
22
- */
23
- resolveComponent(type: string, vcr: ViewContainerRef): ComponentRef<IWidgetComponent> | null;
24
- resolveDefinition(type: string, details: JaceWidgetInstanceDetail): IJaceWidgetModel | null;
25
- private createInstance;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<DashboardWidgetFactory, never>;
27
- static ɵprov: i0.ɵɵInjectableDeclaration<DashboardWidgetFactory>;
28
- }
1
+ import { ComponentRef, ViewContainerRef } from '@angular/core';
2
+ import { IWidgetComponent } from '../components/widgets/IWidgetComponent';
3
+ import { JaceWidgetInstanceDetail } from '../models/externals/JaceWidgetInstanceDetail';
4
+ import { IJaceWidgetModel } from '../models/widgets/IJaceWidgetModel';
5
+ import { IDashboardModuleOptions } from '../models/options/IDashboardModuleOptions';
6
+ import { IWidgetTypeConfig } from '../models/options/IWidgetTypeConfig';
7
+ import * as i0 from "@angular/core";
8
+ export interface IConstructableModel<T> {
9
+ new (): T;
10
+ }
11
+ export declare class DashboardWidgetFactory {
12
+ types: {
13
+ [name: string]: IWidgetTypeConfig;
14
+ };
15
+ constructor();
16
+ addOption(option: IDashboardModuleOptions): void;
17
+ /**
18
+ * Versione ng11 della creazione dei componenti dinamici delle widget
19
+ * @param type
20
+ * @param vcr
21
+ * @returns
22
+ */
23
+ resolveComponent(type: string, vcr: ViewContainerRef): ComponentRef<IWidgetComponent> | null;
24
+ resolveDefinition(type: string, details: JaceWidgetInstanceDetail): IJaceWidgetModel | null;
25
+ private createInstance;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardWidgetFactory, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<DashboardWidgetFactory>;
28
+ }
@@ -1,31 +1,11 @@
1
- import { CallResult } from "@esfaenza/extensions";
2
- import { Observable } from "rxjs";
3
- import { JaceDashboardLayoutDetail } from "../models/externals/JaceDashboardLayoutDetail";
4
- import { SaveJaceDashboardLayoutDTO } from "../models/externals/SaveJaceDashboardLayoutDTO";
5
- export interface IDashboardFeatureDataService {
6
- /**
7
- * Recupera la dashboard specificata dal backend specificato per l'account specificato.
8
- * Usata dal component DashboardComponent
9
- * @param backendid id del backend che pubblica questa dashboard
10
- * @param idaccount idaccount dell'utente che sta visitando questa dashboard
11
- * @param dashboardName identificativo della dashboard da recuperare
12
- * @returns JaceDashboardLayoutDetail layout della dashboard
13
- */
14
- GetUserDashboard(backendid: string, idaccount: number, dashboardName: string): Observable<JaceDashboardLayoutDetail>;
15
- /**
16
- *Salva le impostazioni della dashboard (es. preferenze specifiche dell'utente)
17
- * @param dto dati di salvataggio
18
- * @returns CallResult
19
- */
20
- SaveUserDashboard(dto: SaveJaceDashboardLayoutDTO): Observable<CallResult>;
21
- /**
22
- * Recupera i dati di una specifica Widget. Chiamato dal metodo refreshData() di BaseWidgetComponent.
23
- * @param backendid id del backend che pubblica i dati di questa Widget
24
- * @param name nome univoco di questa Widget
25
- * @param options dizionario di configurazioni impostate sulla specifica Widget (aka configurazioni particolari)
26
- * @returns Un oggetto any con i dati della Widget (Nota: ogni Widget è responsabile di interpretare i propri dati)
27
- */
28
- GetWidgetData(backendid: string, name: string, options: {
29
- [key: string]: string;
30
- }): Observable<any>;
31
- }
1
+ import { CallResult } from "@esfaenza/extensions";
2
+ import { Observable } from "rxjs";
3
+ import { JaceDashboardLayoutDetail } from "../models/externals/JaceDashboardLayoutDetail";
4
+ import { SaveJaceDashboardLayoutDTO } from "../models/externals/SaveJaceDashboardLayoutDTO";
5
+ export interface IDashboardFeatureDataService {
6
+ GetUserDashboard(backendid: string, idaccount: number, dashboardName: string): Observable<JaceDashboardLayoutDetail>;
7
+ SaveUserDashboard(dto: SaveJaceDashboardLayoutDTO): Observable<CallResult>;
8
+ GetWidgetData(backendid: string, name: string, options: {
9
+ [key: string]: string;
10
+ }): Observable<any>;
11
+ }