@schneideress/dashboardframework 17.0.4 → 17.0.5
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/esm2022/gridster/lib/gridster.component.mjs +3 -3
- package/esm2022/gridster/lib/gridster.module.mjs +4 -4
- package/esm2022/gridster/lib/gridsterItem.component.mjs +7 -4
- package/esm2022/gridster/lib/gridsterPreview.component.mjs +3 -3
- package/esm2022/gridster/lib/gridsterRenderer.service.mjs +1 -1
- package/esm2022/lib/ra-dashboard-area/ra.dashboard.area.mjs +164 -63
- package/esm2022/lib/ra-widget-container/lock-tooltip/lock.tooltip.component.mjs +3 -3
- package/esm2022/lib/ra-widget-container/ra.widget.container.component.mjs +277 -120
- package/esm2022/lib/ra.base.dashboard.filter.mjs +3 -3
- package/esm2022/lib/ra.base.dashboard.template.mjs +7 -5
- package/esm2022/lib/ra.dashbard.event.bus.mjs +3 -3
- package/esm2022/lib/ra.dashboard.module.mjs +4 -4
- package/esm2022/lib/ra.dashboard.responsive.service.mjs +15 -5
- package/esm2022/lib/ra.dashboard.service.mjs +10 -4
- package/esm2022/lib/ra.event.enum.mjs +7 -1
- package/esm2022/lib/ra.gridster.config.mjs +3 -3
- package/fesm2022/schneideress-dashboardframework.mjs +505 -220
- package/fesm2022/schneideress-dashboardframework.mjs.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +25 -3
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +10 -3
- package/lib/ra.base.dashboard.template.d.ts +4 -2
- package/lib/ra.dashboard.responsive.service.d.ts +1 -1
- package/lib/ra.event.enum.d.ts +7 -1
- package/package.json +1 -1
|
@@ -2,11 +2,12 @@ import { OnInit, OnChanges, SimpleChanges, NgZone, OnDestroy, ElementRef, EventE
|
|
|
2
2
|
import { GridsterConfig, GridsterItem } from '../../gridster/index';
|
|
3
3
|
import { RaDashboardService } from '../ra.dashboard.service';
|
|
4
4
|
import { RADashboardEventBus } from '../ra.dashbard.event.bus';
|
|
5
|
-
import { IWidgetInfo, IAppConfig } from '@schneideress/widgetframework';
|
|
5
|
+
import { IWidgetInfo, IAppConfig, IBulkAction } from '@schneideress/widgetframework';
|
|
6
6
|
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
7
7
|
import { NotifierService } from 'angular-notifier';
|
|
8
8
|
import { RATranslateService, RAPermissionService } from '@schneideress/ra-common';
|
|
9
9
|
import { RADashboardResponsiveService } from '../ra.dashboard.responsive.service';
|
|
10
|
+
import { IDashboardInfo } from '@schneideress/widgetframework';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
12
13
|
private dashboardService;
|
|
@@ -23,6 +24,8 @@ export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
|
23
24
|
userWidgets: any[];
|
|
24
25
|
PAMWidgets: any;
|
|
25
26
|
private conifgAddClick;
|
|
27
|
+
private curatedFilterChange;
|
|
28
|
+
private bulkActionClick;
|
|
26
29
|
private rearrangeWidgetClick;
|
|
27
30
|
private widgetDeleteEvent;
|
|
28
31
|
private widgetAddEvent;
|
|
@@ -32,6 +35,16 @@ export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
|
32
35
|
showEmptyDashboard: boolean;
|
|
33
36
|
isWidgetMgmnt: boolean;
|
|
34
37
|
lastViewType: string;
|
|
38
|
+
bulkActionData: IBulkAction;
|
|
39
|
+
emptyDashboardTitle: any;
|
|
40
|
+
emptyDashboardMsg1: any;
|
|
41
|
+
emptyDashboardMsg2: any;
|
|
42
|
+
emptyDashboardButtonText: any;
|
|
43
|
+
emptyDashboardButtonIcon: any;
|
|
44
|
+
emptyDashboardButtonAction: any;
|
|
45
|
+
private initialWidgetCount;
|
|
46
|
+
private currentLoadedIndex;
|
|
47
|
+
private loading;
|
|
35
48
|
userDashboardId: number;
|
|
36
49
|
areaKey: string;
|
|
37
50
|
globalFilter: any;
|
|
@@ -39,13 +52,18 @@ export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
|
39
52
|
widgetHeight: number;
|
|
40
53
|
widgetWidth: number;
|
|
41
54
|
appConfig: IAppConfig;
|
|
55
|
+
dashboardInfo: IDashboardInfo;
|
|
56
|
+
templateConfig: any;
|
|
42
57
|
hideDashboardBanner: EventEmitter<any>;
|
|
43
58
|
gridWrapper: ElementRef;
|
|
59
|
+
divBottom: ElementRef;
|
|
44
60
|
constructor(dashboardService: RaDashboardService, ngZone: NgZone, ngxService: NgxUiLoaderService, translateService: RATranslateService, notifier: NotifierService, responsiveService: RADashboardResponsiveService, permissionService: RAPermissionService);
|
|
45
61
|
ngOnInit(): void;
|
|
46
62
|
ngOnChanges(changes: SimpleChanges): void;
|
|
63
|
+
setEmptyDashboardConfig(): void;
|
|
47
64
|
/**To set GridsterConfig */
|
|
48
65
|
initiateGridsterConfig(): void;
|
|
66
|
+
widgetLoaded(widget: any): void;
|
|
49
67
|
/** To initiate eventbus subsctiptions */
|
|
50
68
|
inititateEventBusSubscritions(): void;
|
|
51
69
|
/**
|
|
@@ -64,6 +82,10 @@ export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
|
64
82
|
formatWidgetDataForPositionDetails(widgetItemList: IWidgetInfo[]): any;
|
|
65
83
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
66
84
|
loadWidgets(userDashboarId: number, areaKey: string): void;
|
|
85
|
+
private loadWidgetsDelta;
|
|
86
|
+
dataLoaded(widgetElement: any): void;
|
|
87
|
+
private loadNext;
|
|
88
|
+
private elementInViewport;
|
|
67
89
|
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|
|
68
90
|
setAreaHeight(): void;
|
|
69
91
|
/** To remove a widget instance from dashboard and to save info in database */
|
|
@@ -80,9 +102,9 @@ export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
|
80
102
|
mapObjectListToGridsterItemList(widgetList: Array<IWidgetInfo>): GridsterItem[];
|
|
81
103
|
mapGridsterItemToObject(widgetItem: GridsterItem): IWidgetInfo;
|
|
82
104
|
mapGridsterListToObject(widgetItemList: Array<GridsterItem>): IWidgetInfo[];
|
|
83
|
-
|
|
105
|
+
buttonClick(): void;
|
|
84
106
|
updateAppliedFilters(data: any): void;
|
|
85
107
|
checkPAMWidgets(): void;
|
|
86
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<RADashboardArea, never>;
|
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RADashboardArea, "ra-dashboard-area", never, { "userDashboardId": { "alias": "user-dashboard-id"; "required": false; }; "areaKey": { "alias": "area-key"; "required": false; }; "globalFilter": { "alias": "global-filter"; "required": false; }; "raDashboardEventBus": { "alias": "event-bus"; "required": false; }; "widgetHeight": { "alias": "widget-height"; "required": false; }; "widgetWidth": { "alias": "widget-width"; "required": false; }; "appConfig": { "alias": "app-config"; "required": false; }; }, { "hideDashboardBanner": "hideDashboardBanner"; }, never, never, false, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RADashboardArea, "ra-dashboard-area", never, { "userDashboardId": { "alias": "user-dashboard-id"; "required": false; }; "areaKey": { "alias": "area-key"; "required": false; }; "globalFilter": { "alias": "global-filter"; "required": false; }; "raDashboardEventBus": { "alias": "event-bus"; "required": false; }; "widgetHeight": { "alias": "widget-height"; "required": false; }; "widgetWidth": { "alias": "widget-width"; "required": false; }; "appConfig": { "alias": "app-config"; "required": false; }; "dashboardInfo": { "alias": "dashboard-info"; "required": false; }; "templateConfig": { "alias": "templateConfig"; "required": false; }; }, { "hideDashboardBanner": "hideDashboardBanner"; }, never, never, false, never>;
|
|
88
110
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OnInit, ElementRef, EventEmitter, OnChanges, SimpleChanges, AfterViewInit, OnDestroy, NgZone, Renderer2, TemplateRef } from '@angular/core';
|
|
1
|
+
import { OnInit, ElementRef, EventEmitter, OnChanges, SimpleChanges, AfterViewInit, OnDestroy, NgZone, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { RaDashboardService } from './../ra.dashboard.service';
|
|
3
3
|
import { RADashboardEventBus } from '../ra.dashbard.event.bus';
|
|
4
|
-
import { IAppConfig, IWidgetInfo, RADownloadType, RaWidgetlockStatus, WidgetViewState, IconfigChanges } from '@schneideress/widgetframework';
|
|
4
|
+
import { IAppConfig, IWidgetInfo, RADownloadType, RaWidgetlockStatus, WidgetViewState, IconfigChanges, IBulkAction, IDashboardInfo } from '@schneideress/widgetframework';
|
|
5
5
|
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
6
6
|
import { NotifierService } from 'angular-notifier';
|
|
7
7
|
import { RATranslateService, RAPermissionService, DomService } from '@schneideress/ra-common';
|
|
@@ -62,7 +62,9 @@ export declare class RAWidgetContainer implements OnInit, OnChanges, AfterViewIn
|
|
|
62
62
|
lockIconFooter: any;
|
|
63
63
|
inapplicableIconTitle: any;
|
|
64
64
|
inapplicableIconFooter: any;
|
|
65
|
+
isCustomElement: any;
|
|
65
66
|
ctlWidget: ElementRef;
|
|
67
|
+
ctlWidgetModule: ViewContainerRef;
|
|
66
68
|
widgetDropdown: ElementRef;
|
|
67
69
|
searchInput: ElementRef;
|
|
68
70
|
wcWrapper: ElementRef;
|
|
@@ -70,15 +72,20 @@ export declare class RAWidgetContainer implements OnInit, OnChanges, AfterViewIn
|
|
|
70
72
|
lockPopupDiv: ElementRef;
|
|
71
73
|
widgetInstanceId: number;
|
|
72
74
|
globalFilter: any;
|
|
75
|
+
dashboardInfo: IDashboardInfo;
|
|
73
76
|
data: any;
|
|
74
77
|
raDashboardEventBus: RADashboardEventBus;
|
|
75
78
|
appConfig: IAppConfig;
|
|
76
79
|
width: number;
|
|
77
80
|
height: number;
|
|
78
81
|
gridCellHeight: number;
|
|
82
|
+
bulkActionData: IBulkAction;
|
|
83
|
+
canLoadData: boolean;
|
|
79
84
|
widgetDeleted: EventEmitter<string>;
|
|
80
85
|
updateAppliedFilters: EventEmitter<any>;
|
|
81
86
|
lockTitle: string;
|
|
87
|
+
dataLoaded: EventEmitter<any>;
|
|
88
|
+
widgetLoaded: EventEmitter<any>;
|
|
82
89
|
isWidgetStateApplicable: boolean;
|
|
83
90
|
widgetEmptyState: string;
|
|
84
91
|
domResized: boolean;
|
|
@@ -139,5 +146,5 @@ export declare class RAWidgetContainer implements OnInit, OnChanges, AfterViewIn
|
|
|
139
146
|
closePopup(): void;
|
|
140
147
|
getwidgetTitleTranslation(item: any): any;
|
|
141
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<RAWidgetContainer, never>;
|
|
142
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RAWidgetContainer, "ra-widget-container", never, { "widgetInstanceId": { "alias": "widget-instance-id"; "required": false; }; "globalFilter": { "alias": "global-filter"; "required": false; }; "data": { "alias": "data"; "required": false; }; "raDashboardEventBus": { "alias": "event-bus"; "required": false; }; "appConfig": { "alias": "app-config"; "required": false; }; "width": { "alias": "widget-width"; "required": false; }; "height": { "alias": "widget-height"; "required": false; }; "gridCellHeight": { "alias": "grid-cell-height"; "required": false; }; "setResized": { "alias": "dom-resized"; "required": false; }; }, { "widgetDeleted": "widgetDeleted"; "updateAppliedFilters": "updateAppliedFilters"; }, never, never, false, never>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RAWidgetContainer, "ra-widget-container", never, { "widgetInstanceId": { "alias": "widget-instance-id"; "required": false; }; "globalFilter": { "alias": "global-filter"; "required": false; }; "dashboardInfo": { "alias": "dashboard-info"; "required": false; }; "data": { "alias": "data"; "required": false; }; "raDashboardEventBus": { "alias": "event-bus"; "required": false; }; "appConfig": { "alias": "app-config"; "required": false; }; "width": { "alias": "widget-width"; "required": false; }; "height": { "alias": "widget-height"; "required": false; }; "gridCellHeight": { "alias": "grid-cell-height"; "required": false; }; "bulkActionData": { "alias": "bulk-action-data"; "required": false; }; "canLoadData": { "alias": "canLoadData"; "required": false; }; "setResized": { "alias": "dom-resized"; "required": false; }; }, { "widgetDeleted": "widgetDeleted"; "updateAppliedFilters": "updateAppliedFilters"; "dataLoaded": "dataLoaded"; "widgetLoaded": "widgetLoaded"; }, never, never, false, never>;
|
|
143
150
|
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
2
|
import { RADashboardEventBus } from './ra.dashbard.event.bus';
|
|
3
|
-
import { IAppConfig } from '@schneideress/widgetframework';
|
|
3
|
+
import { IAppConfig, IDashboardInfo } from '@schneideress/widgetframework';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare abstract class RaBaseDashboardTemplate {
|
|
6
6
|
private ngZone;
|
|
7
7
|
userDashboardId: number;
|
|
8
8
|
raDashboardEventBus: RADashboardEventBus;
|
|
9
9
|
appConfig: IAppConfig;
|
|
10
|
+
dashboardInfo: IDashboardInfo;
|
|
11
|
+
templateConfig: any;
|
|
10
12
|
dashboardId: number;
|
|
11
13
|
globalFilter: any;
|
|
12
14
|
constructor(ngZone: NgZone);
|
|
13
|
-
initialize: (eventBus: RADashboardEventBus, userDashboardId: number, appConfig: IAppConfig) => void;
|
|
15
|
+
initialize: (eventBus: RADashboardEventBus, userDashboardId: number, appConfig: IAppConfig, dashboardInfo: IDashboardInfo, templateConfig?: any) => void;
|
|
14
16
|
abstract init(): void;
|
|
15
17
|
ngOnInit(): void;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RaBaseDashboardTemplate, never>;
|
|
@@ -12,7 +12,7 @@ export declare class RADashboardResponsiveService {
|
|
|
12
12
|
private setScreenWidth;
|
|
13
13
|
get IsDesktopView(): boolean;
|
|
14
14
|
get IsMobile(): boolean;
|
|
15
|
-
getGridsterConfig(isWidgetMgmnt: boolean): GridsterConfig;
|
|
15
|
+
getGridsterConfig(isWidgetMgmnt: boolean, resize: boolean, canMove: boolean): GridsterConfig;
|
|
16
16
|
/**To map IwidgetInfo object to gridsterItem */
|
|
17
17
|
getGridsterItem(widget: any): GridsterItem;
|
|
18
18
|
private getWidth;
|
package/lib/ra.event.enum.d.ts
CHANGED
|
@@ -49,7 +49,13 @@ export declare enum RAEvent {
|
|
|
49
49
|
/**update applied filter badge for inaplicable filters */
|
|
50
50
|
UpdateAppledFiterForInapplicableFilter = "UpdateAppledFiterForInapplicableFilter",
|
|
51
51
|
/**show inapplicable filter message in global filter flyout */
|
|
52
|
-
ShowInapplicableFilterMessage = "ShowInapplicableFilterMessage"
|
|
52
|
+
ShowInapplicableFilterMessage = "ShowInapplicableFilterMessage",
|
|
53
|
+
/** Bulk Action Clicked */
|
|
54
|
+
BulkActionClick = "BulkActionClick",
|
|
55
|
+
/** Global Filter Clicked */
|
|
56
|
+
/** When user change the curated filter(eg:data streams), system will create/delete widgets */
|
|
57
|
+
CuratedFilterChange = "CuratedFilterChange",
|
|
58
|
+
GlobalFilterClick = "GlobalFilterClick"
|
|
53
59
|
}
|
|
54
60
|
export declare enum RAEventKey {
|
|
55
61
|
/** on edit widget click */
|