@esfaenza/dashboard-feature 19.2.9 → 20.3.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/fesm2022/esfaenza-dashboard-feature.mjs +291 -223
- package/fesm2022/esfaenza-dashboard-feature.mjs.map +1 -1
- package/index.d.ts +693 -3
- package/package.json +13 -13
- package/lib/components/dashboard/dashboard.component.d.ts +0 -46
- package/lib/components/widgets/BaseWidgetComponent.d.ts +0 -44
- package/lib/components/widgets/IWidgetComponent.d.ts +0 -23
- package/lib/components/widgets/JaceWidgetTypes.d.ts +0 -6
- package/lib/components/widgets/chart/jace-dsh-chart.component.d.ts +0 -29
- package/lib/components/widgets/counter/jace-dsh-counter.component.d.ts +0 -24
- package/lib/components/widgets/list/jace-dsh-list.component.d.ts +0 -27
- package/lib/components/widgets/multiprog/circle-progress/circle-progress.component.d.ts +0 -219
- package/lib/components/widgets/multiprog/jace-dsh-multiprog.component.d.ts +0 -26
- package/lib/components/widgets/multiprog/progress-bar/progress-bar.component.d.ts +0 -6
- package/lib/dashboard-feature.module.d.ts +0 -24
- package/lib/models/config/JaceDashboardConfig.d.ts +0 -51
- package/lib/models/externals/JaceDashboardLayoutAppSearch.d.ts +0 -6
- package/lib/models/externals/JaceDashboardLayoutDetail.d.ts +0 -6
- package/lib/models/externals/JaceWidgetInstanceDetail.d.ts +0 -18
- package/lib/models/externals/Repository.d.ts +0 -5
- package/lib/models/externals/SaveJaceDashboardLayoutDTO.d.ts +0 -6
- package/lib/models/options/DefaultDashboardModuleOptions.d.ts +0 -6
- package/lib/models/options/IDashboardModuleOptions.d.ts +0 -4
- package/lib/models/options/IWidgetTypeConfig.d.ts +0 -8
- package/lib/models/widgets/BaseJaceWidgetModel.d.ts +0 -32
- package/lib/models/widgets/IJaceWidgetModel.d.ts +0 -33
- package/lib/models/widgets/JaceChartWidgetModel.d.ts +0 -10
- package/lib/models/widgets/JaceCounterWidgetModel.d.ts +0 -10
- package/lib/models/widgets/JaceListWidgetModel.d.ts +0 -16
- package/lib/models/widgets/JaceMultiprogWidgetModel.d.ts +0 -9
- package/lib/private-injection-tokens.d.ts +0 -3
- package/lib/public-injection-tokens.d.ts +0 -7
- package/lib/services/DashboardWidgetFactory.d.ts +0 -28
- package/lib/services/IDashboardFeatureDataService.d.ts +0 -11
- package/lib/services/dashboard-feature.service.d.ts +0 -18
- package/public-api.d.ts +0 -25
|
@@ -1,32 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
1
|
-
import { BaseJaceWidgetModel } from "./BaseJaceWidgetModel";
|
|
2
|
-
import { BaseSettings } from "@esfaenza/es-charts";
|
|
3
|
-
export declare class JaceChartWidgetModel extends BaseJaceWidgetModel {
|
|
4
|
-
chartType: 'pie' | 'line' | 'vertical' | 'vertical-2d' | 'vertical-stacked';
|
|
5
|
-
chartSettings: BaseSettings;
|
|
6
|
-
legend: boolean;
|
|
7
|
-
chartData: any;
|
|
8
|
-
constructor();
|
|
9
|
-
setData(data?: any): void;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,7 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { JaceDashboardLayoutDetail } from '../models/externals/JaceDashboardLayoutDetail';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { SaveJaceDashboardLayoutDTO } from '../models/externals/SaveJaceDashboardLayoutDTO';
|
|
4
|
-
import { CallResult } from '@esfaenza/extensions';
|
|
5
|
-
import { HTTPService } from '@esfaenza/httpservice';
|
|
6
|
-
import { IDashboardFeatureDataService } from './IDashboardFeatureDataService';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DashboardFeatureAPIDataService implements IDashboardFeatureDataService {
|
|
9
|
-
private http;
|
|
10
|
-
constructor(http: HTTPService);
|
|
11
|
-
GetUserDashboard(backendid: string, idaccount: number, dashboardName: string): Observable<JaceDashboardLayoutDetail>;
|
|
12
|
-
SaveUserDashboard(dto: SaveJaceDashboardLayoutDTO): Observable<CallResult>;
|
|
13
|
-
GetWidgetData(backendid: string, name: string, options: {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
}): Observable<any>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardFeatureAPIDataService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DashboardFeatureAPIDataService>;
|
|
18
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export * from './lib/public-injection-tokens';
|
|
2
|
-
export * from './lib/dashboard-feature.module';
|
|
3
|
-
export * from './lib/models/config/JaceDashboardConfig';
|
|
4
|
-
export * from './lib/models/externals/JaceDashboardLayoutAppSearch';
|
|
5
|
-
export * from './lib/models/externals/JaceDashboardLayoutDetail';
|
|
6
|
-
export * from './lib/models/externals/JaceWidgetInstanceDetail';
|
|
7
|
-
export * from './lib/models/externals/SaveJaceDashboardLayoutDTO';
|
|
8
|
-
export * from './lib/models/options/IWidgetTypeConfig';
|
|
9
|
-
export * from './lib/models/options/IDashboardModuleOptions';
|
|
10
|
-
export * from './lib/models/options/DefaultDashboardModuleOptions';
|
|
11
|
-
export * from './lib/models/widgets/IJaceWidgetModel';
|
|
12
|
-
export * from './lib/models/widgets/BaseJaceWidgetModel';
|
|
13
|
-
export * from './lib/services/IDashboardFeatureDataService';
|
|
14
|
-
export * from './lib/services/dashboard-feature.service';
|
|
15
|
-
export * from './lib/services/DashboardWidgetFactory';
|
|
16
|
-
export * from './lib/components/dashboard/dashboard.component';
|
|
17
|
-
export * from './lib/components/widgets/chart/jace-dsh-chart.component';
|
|
18
|
-
export * from './lib/components/widgets/counter/jace-dsh-counter.component';
|
|
19
|
-
export * from './lib/components/widgets/list/jace-dsh-list.component';
|
|
20
|
-
export * from './lib/components/widgets/multiprog/jace-dsh-multiprog.component';
|
|
21
|
-
export * from './lib/components/widgets/BaseWidgetComponent';
|
|
22
|
-
export * from './lib/components/widgets/IWidgetComponent';
|
|
23
|
-
export * from './lib/components/widgets/JaceWidgetTypes';
|
|
24
|
-
export * from './lib/components/widgets/multiprog/circle-progress/circle-progress.component';
|
|
25
|
-
export * from './lib/components/widgets/multiprog/progress-bar/progress-bar.component';
|