@schneideress/dashboardframework 0.0.75 → 0.0.77
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/bundles/schneideress-dashboardframework.umd.js +6089 -7126
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -15
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/gridster/index.js +18 -18
- package/esm2015/gridster/lib/gridster.component.js +700 -700
- package/esm2015/gridster/lib/gridster.interface.js +84 -84
- package/esm2015/gridster/lib/gridster.module.js +27 -27
- package/esm2015/gridster/lib/gridsterCompact.service.js +223 -223
- package/esm2015/gridster/lib/gridsterConfig.constant.js +179 -179
- package/esm2015/gridster/lib/gridsterConfig.interface.js +219 -219
- package/esm2015/gridster/lib/gridsterConfigS.interface.js +161 -161
- package/esm2015/gridster/lib/gridsterDraggable.service.js +510 -510
- package/esm2015/gridster/lib/gridsterEmptyCell.service.js +317 -317
- package/esm2015/gridster/lib/gridsterItem.component.js +213 -213
- package/esm2015/gridster/lib/gridsterItem.interface.js +46 -46
- package/esm2015/gridster/lib/gridsterItemComponent.interface.js +48 -48
- package/esm2015/gridster/lib/gridsterPreview.component.js +66 -66
- package/esm2015/gridster/lib/gridsterPush.service.js +467 -467
- package/esm2015/gridster/lib/gridsterPushResize.service.js +358 -358
- package/esm2015/gridster/lib/gridsterRenderer.service.js +277 -277
- package/esm2015/gridster/lib/gridsterResizable.service.js +552 -552
- package/esm2015/gridster/lib/gridsterResizeEventType.interface.js +19 -19
- package/esm2015/gridster/lib/gridsterScroll.service.js +195 -195
- package/esm2015/gridster/lib/gridsterSwap.service.js +134 -134
- package/esm2015/gridster/lib/gridsterUtils.service.js +137 -137
- package/esm2015/lib/custom.notifier.options.js +46 -46
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +496 -494
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +471 -461
- package/esm2015/lib/ra.base.dashboard.filter.js +75 -75
- package/esm2015/lib/ra.base.dashboard.template.js +71 -71
- package/esm2015/lib/ra.dashbard.event.bus.js +85 -85
- package/esm2015/lib/ra.dashboard.module.js +51 -49
- package/esm2015/lib/ra.dashboard.service.js +144 -144
- package/esm2015/lib/ra.event.enum.js +51 -51
- package/esm2015/lib/ra.gridster.config.js +67 -67
- package/esm2015/public-api.js +16 -16
- package/esm2015/schneideress-dashboardframework.js +13 -13
- package/esm5/gridster/index.js +18 -18
- package/esm5/gridster/lib/gridster.component.js +803 -803
- package/esm5/gridster/lib/gridster.interface.js +94 -94
- package/esm5/gridster/lib/gridster.module.js +31 -31
- package/esm5/gridster/lib/gridsterCompact.service.js +253 -253
- package/esm5/gridster/lib/gridsterConfig.constant.js +179 -179
- package/esm5/gridster/lib/gridsterConfig.interface.js +219 -219
- package/esm5/gridster/lib/gridsterConfigS.interface.js +161 -161
- package/esm5/gridster/lib/gridsterDraggable.service.js +549 -549
- package/esm5/gridster/lib/gridsterEmptyCell.service.js +358 -358
- package/esm5/gridster/lib/gridsterItem.component.js +238 -238
- package/esm5/gridster/lib/gridsterItem.interface.js +46 -46
- package/esm5/gridster/lib/gridsterItemComponent.interface.js +58 -58
- package/esm5/gridster/lib/gridsterPreview.component.js +70 -70
- package/esm5/gridster/lib/gridsterPush.service.js +547 -547
- package/esm5/gridster/lib/gridsterPushResize.service.js +423 -423
- package/esm5/gridster/lib/gridsterRenderer.service.js +323 -323
- package/esm5/gridster/lib/gridsterResizable.service.js +629 -629
- package/esm5/gridster/lib/gridsterResizeEventType.interface.js +19 -19
- package/esm5/gridster/lib/gridsterScroll.service.js +195 -195
- package/esm5/gridster/lib/gridsterSwap.service.js +152 -152
- package/esm5/gridster/lib/gridsterUtils.service.js +177 -177
- package/esm5/lib/custom.notifier.options.js +46 -46
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +588 -586
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +584 -574
- package/esm5/lib/ra.base.dashboard.filter.js +81 -81
- package/esm5/lib/ra.base.dashboard.template.js +74 -74
- package/esm5/lib/ra.dashbard.event.bus.js +125 -125
- package/esm5/lib/ra.dashboard.module.js +55 -53
- package/esm5/lib/ra.dashboard.service.js +221 -221
- package/esm5/lib/ra.event.enum.js +51 -51
- package/esm5/lib/ra.gridster.config.js +67 -67
- package/esm5/public-api.js +16 -16
- package/esm5/schneideress-dashboardframework.js +13 -13
- package/fesm2015/schneideress-dashboardframework.js +5182 -6108
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +6080 -7006
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/gridster/index.d.ts +11 -11
- package/gridster/lib/gridster.component.d.ts +67 -67
- package/gridster/lib/gridster.interface.d.ts +46 -46
- package/gridster/lib/gridster.module.d.ts +2 -2
- package/gridster/lib/gridsterCompact.service.d.ts +15 -15
- package/gridster/lib/gridsterConfig.constant.d.ts +2 -2
- package/gridster/lib/gridsterConfig.interface.d.ts +133 -133
- package/gridster/lib/gridsterConfigS.interface.d.ts +93 -93
- package/gridster/lib/gridsterDraggable.service.d.ts +59 -59
- package/gridster/lib/gridsterEmptyCell.service.d.ts +29 -29
- package/gridster/lib/gridsterItem.component.d.ts +32 -32
- package/gridster/lib/gridsterItem.interface.d.ts +21 -21
- package/gridster/lib/gridsterItemComponent.interface.d.ts +25 -25
- package/gridster/lib/gridsterPreview.component.d.ts +10 -10
- package/gridster/lib/gridsterPush.service.d.ts +33 -33
- package/gridster/lib/gridsterPushResize.service.d.ts +26 -26
- package/gridster/lib/gridsterRenderer.service.d.ts +38 -38
- package/gridster/lib/gridsterResizable.service.d.ts +67 -67
- package/gridster/lib/gridsterResizeEventType.interface.d.ts +6 -6
- package/gridster/lib/gridsterScroll.service.d.ts +4 -4
- package/gridster/lib/gridsterSwap.service.d.ts +13 -13
- package/gridster/lib/gridsterUtils.service.d.ts +16 -16
- package/lib/custom.notifier.options.d.ts +2 -2
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +64 -64
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +64 -63
- package/lib/ra.base.dashboard.filter.d.ts +10 -10
- package/lib/ra.base.dashboard.template.d.ts +15 -15
- package/lib/ra.dashbard.event.bus.d.ts +20 -20
- package/lib/ra.dashboard.module.d.ts +2 -2
- package/lib/ra.dashboard.service.d.ts +22 -22
- package/lib/ra.event.enum.d.ts +42 -42
- package/lib/ra.gridster.config.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +8 -8
- package/schneideress-dashboardframework.d.ts +9 -9
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { Renderer2 } from '@angular/core';
|
|
2
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
3
|
-
import { GridsterItem } from './gridsterItem.interface';
|
|
4
|
-
export declare class GridsterRenderer {
|
|
5
|
-
private gridster;
|
|
6
|
-
constructor(gridster: GridsterComponentInterface);
|
|
7
|
-
destroy(): void;
|
|
8
|
-
updateItem(el: any, item: GridsterItem, renderer: Renderer2): void;
|
|
9
|
-
updateGridster(): void;
|
|
10
|
-
getGridColumnStyle(i: number): {
|
|
11
|
-
width: string;
|
|
12
|
-
height: string;
|
|
13
|
-
constructor: Function;
|
|
14
|
-
toString(): string;
|
|
15
|
-
toLocaleString(): string;
|
|
16
|
-
valueOf(): Object;
|
|
17
|
-
hasOwnProperty(v: string | number | symbol): boolean;
|
|
18
|
-
isPrototypeOf(v: Object): boolean;
|
|
19
|
-
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
20
|
-
};
|
|
21
|
-
getGridRowStyle(i: number): {
|
|
22
|
-
width: string;
|
|
23
|
-
height: string;
|
|
24
|
-
constructor: Function;
|
|
25
|
-
toString(): string;
|
|
26
|
-
toLocaleString(): string;
|
|
27
|
-
valueOf(): Object;
|
|
28
|
-
hasOwnProperty(v: string | number | symbol): boolean;
|
|
29
|
-
isPrototypeOf(v: Object): boolean;
|
|
30
|
-
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
31
|
-
};
|
|
32
|
-
getLeftPosition(d: number): Object;
|
|
33
|
-
getTopPosition(d: number): Object;
|
|
34
|
-
clearCellPosition(renderer: Renderer2, el: any): void;
|
|
35
|
-
setCellPosition(renderer: Renderer2, el: any, x: number, y: number): void;
|
|
36
|
-
getLeftMargin(): number;
|
|
37
|
-
getTopMargin(): number;
|
|
38
|
-
}
|
|
1
|
+
import { Renderer2 } from '@angular/core';
|
|
2
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
3
|
+
import { GridsterItem } from './gridsterItem.interface';
|
|
4
|
+
export declare class GridsterRenderer {
|
|
5
|
+
private gridster;
|
|
6
|
+
constructor(gridster: GridsterComponentInterface);
|
|
7
|
+
destroy(): void;
|
|
8
|
+
updateItem(el: any, item: GridsterItem, renderer: Renderer2): void;
|
|
9
|
+
updateGridster(): void;
|
|
10
|
+
getGridColumnStyle(i: number): {
|
|
11
|
+
width: string;
|
|
12
|
+
height: string;
|
|
13
|
+
constructor: Function;
|
|
14
|
+
toString(): string;
|
|
15
|
+
toLocaleString(): string;
|
|
16
|
+
valueOf(): Object;
|
|
17
|
+
hasOwnProperty(v: string | number | symbol): boolean;
|
|
18
|
+
isPrototypeOf(v: Object): boolean;
|
|
19
|
+
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
20
|
+
};
|
|
21
|
+
getGridRowStyle(i: number): {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
constructor: Function;
|
|
25
|
+
toString(): string;
|
|
26
|
+
toLocaleString(): string;
|
|
27
|
+
valueOf(): Object;
|
|
28
|
+
hasOwnProperty(v: string | number | symbol): boolean;
|
|
29
|
+
isPrototypeOf(v: Object): boolean;
|
|
30
|
+
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
31
|
+
};
|
|
32
|
+
getLeftPosition(d: number): Object;
|
|
33
|
+
getTopPosition(d: number): Object;
|
|
34
|
+
clearCellPosition(renderer: Renderer2, el: any): void;
|
|
35
|
+
setCellPosition(renderer: Renderer2, el: any, x: number, y: number): void;
|
|
36
|
+
getLeftMargin(): number;
|
|
37
|
+
getTopMargin(): number;
|
|
38
|
+
}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
2
|
-
import { GridsterResizeEventType } from './gridsterResizeEventType.interface';
|
|
3
|
-
import { GridsterPush } from './gridsterPush.service';
|
|
4
|
-
import { GridsterPushResize } from './gridsterPushResize.service';
|
|
5
|
-
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
6
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
7
|
-
export declare class GridsterResizable {
|
|
8
|
-
private zone;
|
|
9
|
-
gridsterItem: GridsterItemComponentInterface;
|
|
10
|
-
gridster: GridsterComponentInterface;
|
|
11
|
-
lastMouse: {
|
|
12
|
-
clientX: number;
|
|
13
|
-
clientY: number;
|
|
14
|
-
};
|
|
15
|
-
itemBackup: Array<number>;
|
|
16
|
-
resizeEventScrollType: GridsterResizeEventType;
|
|
17
|
-
directionFunction: Function;
|
|
18
|
-
dragFunction: (event: any) => void;
|
|
19
|
-
dragStopFunction: (event: any) => void;
|
|
20
|
-
resizeEnabled: boolean;
|
|
21
|
-
mousemove: Function;
|
|
22
|
-
mouseup: Function;
|
|
23
|
-
mouseleave: Function;
|
|
24
|
-
cancelOnBlur: Function;
|
|
25
|
-
touchmove: Function;
|
|
26
|
-
touchend: Function;
|
|
27
|
-
touchcancel: Function;
|
|
28
|
-
push: GridsterPush;
|
|
29
|
-
pushResize: GridsterPushResize;
|
|
30
|
-
minHeight: number;
|
|
31
|
-
minWidth: number;
|
|
32
|
-
offsetTop: number;
|
|
33
|
-
offsetLeft: number;
|
|
34
|
-
diffTop: number;
|
|
35
|
-
diffLeft: number;
|
|
36
|
-
diffRight: number;
|
|
37
|
-
diffBottom: number;
|
|
38
|
-
margin: number;
|
|
39
|
-
top: number;
|
|
40
|
-
left: number;
|
|
41
|
-
bottom: number;
|
|
42
|
-
right: number;
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
newPosition: number;
|
|
46
|
-
constructor(gridsterItem: GridsterItemComponentInterface, gridster: GridsterComponentInterface, zone: NgZone);
|
|
47
|
-
destroy(): void;
|
|
48
|
-
dragStart(e: any): void;
|
|
49
|
-
dragMove(e: any): void;
|
|
50
|
-
dragStop(e: any): void;
|
|
51
|
-
cancelResize(): void;
|
|
52
|
-
makeResize(): void;
|
|
53
|
-
handleN(e: any): void;
|
|
54
|
-
handleW(e: any): void;
|
|
55
|
-
handleS(e: any): void;
|
|
56
|
-
handleE(e: any): void;
|
|
57
|
-
handleNW(e: any): void;
|
|
58
|
-
handleNE(e: any): void;
|
|
59
|
-
handleSW(e: any): void;
|
|
60
|
-
handleSE(e: any): void;
|
|
61
|
-
toggle(): void;
|
|
62
|
-
dragStartDelay(e: any): void;
|
|
63
|
-
setItemTop(top: number): void;
|
|
64
|
-
setItemLeft(left: number): void;
|
|
65
|
-
setItemHeight(height: number): void;
|
|
66
|
-
setItemWidth(width: number): void;
|
|
67
|
-
}
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { GridsterResizeEventType } from './gridsterResizeEventType.interface';
|
|
3
|
+
import { GridsterPush } from './gridsterPush.service';
|
|
4
|
+
import { GridsterPushResize } from './gridsterPushResize.service';
|
|
5
|
+
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
6
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
7
|
+
export declare class GridsterResizable {
|
|
8
|
+
private zone;
|
|
9
|
+
gridsterItem: GridsterItemComponentInterface;
|
|
10
|
+
gridster: GridsterComponentInterface;
|
|
11
|
+
lastMouse: {
|
|
12
|
+
clientX: number;
|
|
13
|
+
clientY: number;
|
|
14
|
+
};
|
|
15
|
+
itemBackup: Array<number>;
|
|
16
|
+
resizeEventScrollType: GridsterResizeEventType;
|
|
17
|
+
directionFunction: Function;
|
|
18
|
+
dragFunction: (event: any) => void;
|
|
19
|
+
dragStopFunction: (event: any) => void;
|
|
20
|
+
resizeEnabled: boolean;
|
|
21
|
+
mousemove: Function;
|
|
22
|
+
mouseup: Function;
|
|
23
|
+
mouseleave: Function;
|
|
24
|
+
cancelOnBlur: Function;
|
|
25
|
+
touchmove: Function;
|
|
26
|
+
touchend: Function;
|
|
27
|
+
touchcancel: Function;
|
|
28
|
+
push: GridsterPush;
|
|
29
|
+
pushResize: GridsterPushResize;
|
|
30
|
+
minHeight: number;
|
|
31
|
+
minWidth: number;
|
|
32
|
+
offsetTop: number;
|
|
33
|
+
offsetLeft: number;
|
|
34
|
+
diffTop: number;
|
|
35
|
+
diffLeft: number;
|
|
36
|
+
diffRight: number;
|
|
37
|
+
diffBottom: number;
|
|
38
|
+
margin: number;
|
|
39
|
+
top: number;
|
|
40
|
+
left: number;
|
|
41
|
+
bottom: number;
|
|
42
|
+
right: number;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
newPosition: number;
|
|
46
|
+
constructor(gridsterItem: GridsterItemComponentInterface, gridster: GridsterComponentInterface, zone: NgZone);
|
|
47
|
+
destroy(): void;
|
|
48
|
+
dragStart(e: any): void;
|
|
49
|
+
dragMove(e: any): void;
|
|
50
|
+
dragStop(e: any): void;
|
|
51
|
+
cancelResize(): void;
|
|
52
|
+
makeResize(): void;
|
|
53
|
+
handleN(e: any): void;
|
|
54
|
+
handleW(e: any): void;
|
|
55
|
+
handleS(e: any): void;
|
|
56
|
+
handleE(e: any): void;
|
|
57
|
+
handleNW(e: any): void;
|
|
58
|
+
handleNE(e: any): void;
|
|
59
|
+
handleSW(e: any): void;
|
|
60
|
+
handleSE(e: any): void;
|
|
61
|
+
toggle(): void;
|
|
62
|
+
dragStartDelay(e: any): void;
|
|
63
|
+
setItemTop(top: number): void;
|
|
64
|
+
setItemLeft(left: number): void;
|
|
65
|
+
setItemHeight(height: number): void;
|
|
66
|
+
setItemWidth(width: number): void;
|
|
67
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface GridsterResizeEventType {
|
|
2
|
-
n: boolean;
|
|
3
|
-
s: boolean;
|
|
4
|
-
w: boolean;
|
|
5
|
-
e: boolean;
|
|
6
|
-
}
|
|
1
|
+
export interface GridsterResizeEventType {
|
|
2
|
+
n: boolean;
|
|
3
|
+
s: boolean;
|
|
4
|
+
w: boolean;
|
|
5
|
+
e: boolean;
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridsterResizeEventType } from './gridsterResizeEventType.interface';
|
|
2
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
3
|
-
export declare function scroll(gridster: GridsterComponentInterface, left: number, top: number, width: number, height: number, e: MouseEvent, lastMouse: any, calculateItemPosition: Function, resize?: boolean, resizeEventScrollType?: GridsterResizeEventType): void;
|
|
4
|
-
export declare function cancelScroll(): void;
|
|
1
|
+
import { GridsterResizeEventType } from './gridsterResizeEventType.interface';
|
|
2
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
3
|
+
export declare function scroll(gridster: GridsterComponentInterface, left: number, top: number, width: number, height: number, e: MouseEvent, lastMouse: any, calculateItemPosition: Function, resize?: boolean, resizeEventScrollType?: GridsterResizeEventType): void;
|
|
4
|
+
export declare function cancelScroll(): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
-
export declare class GridsterSwap {
|
|
3
|
-
private swapedItem;
|
|
4
|
-
private gridsterItem;
|
|
5
|
-
private gridster;
|
|
6
|
-
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
7
|
-
destroy(): void;
|
|
8
|
-
swapItems(): void;
|
|
9
|
-
checkSwapBack(): void;
|
|
10
|
-
restoreSwapItem(): void;
|
|
11
|
-
setSwapItem(): void;
|
|
12
|
-
checkSwap(pushedBy: GridsterItemComponentInterface): void;
|
|
13
|
-
}
|
|
1
|
+
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
+
export declare class GridsterSwap {
|
|
3
|
+
private swapedItem;
|
|
4
|
+
private gridsterItem;
|
|
5
|
+
private gridster;
|
|
6
|
+
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
7
|
+
destroy(): void;
|
|
8
|
+
swapItems(): void;
|
|
9
|
+
checkSwapBack(): void;
|
|
10
|
+
restoreSwapItem(): void;
|
|
11
|
+
setSwapItem(): void;
|
|
12
|
+
checkSwap(pushedBy: GridsterItemComponentInterface): void;
|
|
13
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
2
|
-
export declare class GridsterUtils {
|
|
3
|
-
static merge(obj1: any, obj2: any, properties: any): any;
|
|
4
|
-
static debounce(func: Function, wait: number): () => void;
|
|
5
|
-
static checkTouchEvent(e: any): void;
|
|
6
|
-
static checkContentClassForEvent(gridster: GridsterComponentInterface, e: any): boolean;
|
|
7
|
-
static checkContentClassForEmptyCellClickEvent(gridster: GridsterComponentInterface, e: any): boolean;
|
|
8
|
-
static checkContentClass(target: any, current: any, contentClass: string): boolean;
|
|
9
|
-
static compareItems(a: {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
}, b: {
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
}): number;
|
|
16
|
-
}
|
|
1
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
2
|
+
export declare class GridsterUtils {
|
|
3
|
+
static merge(obj1: any, obj2: any, properties: any): any;
|
|
4
|
+
static debounce(func: Function, wait: number): () => void;
|
|
5
|
+
static checkTouchEvent(e: any): void;
|
|
6
|
+
static checkContentClassForEvent(gridster: GridsterComponentInterface, e: any): boolean;
|
|
7
|
+
static checkContentClassForEmptyCellClickEvent(gridster: GridsterComponentInterface, e: any): boolean;
|
|
8
|
+
static checkContentClass(target: any, current: any, contentClass: string): boolean;
|
|
9
|
+
static compareItems(a: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}, b: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
}): number;
|
|
16
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NotifierOptions } from "angular-notifier";
|
|
2
|
-
export declare const customNotifierOptions: NotifierOptions;
|
|
1
|
+
import { NotifierOptions } from "angular-notifier";
|
|
2
|
+
export declare const customNotifierOptions: NotifierOptions;
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { OnInit, OnChanges, SimpleChanges, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
-
import { GridsterConfig, GridsterItem } from '../../gridster/index';
|
|
3
|
-
import { RaDashboardService } from '../ra.dashboard.service';
|
|
4
|
-
import { RADashboardEventBus } from '../ra.dashbard.event.bus';
|
|
5
|
-
import { IWidgetInfo, IAppConfig } from '@schneideress/widgetframework';
|
|
6
|
-
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
7
|
-
import { NotifierService } from 'angular-notifier';
|
|
8
|
-
import { RATranslateService } from '@schneideress/ra-common';
|
|
9
|
-
export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
10
|
-
private dashboardService;
|
|
11
|
-
private ngZone;
|
|
12
|
-
private ngxService;
|
|
13
|
-
private translateService;
|
|
14
|
-
private notifier;
|
|
15
|
-
widgetList: GridsterItem[];
|
|
16
|
-
options: GridsterConfig;
|
|
17
|
-
gridheight: number;
|
|
18
|
-
private conifgAddClick;
|
|
19
|
-
private widgetDeleteEvent;
|
|
20
|
-
private widgetAddEvent;
|
|
21
|
-
private widgetLibraryDoneClick;
|
|
22
|
-
private isWidgetLoaded;
|
|
23
|
-
userDashboardId: number;
|
|
24
|
-
areaKey: string;
|
|
25
|
-
globalFilter: any;
|
|
26
|
-
raDashboardEventBus: RADashboardEventBus;
|
|
27
|
-
widgetHeight: number;
|
|
28
|
-
widgetWidth: number;
|
|
29
|
-
appConfig: IAppConfig;
|
|
30
|
-
constructor(dashboardService: RaDashboardService, ngZone: NgZone, ngxService: NgxUiLoaderService, translateService: RATranslateService, notifier: NotifierService);
|
|
31
|
-
ngOnInit(): void;
|
|
32
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
-
/**To set GridsterConfig */
|
|
34
|
-
initiateGridsterConfig(): void;
|
|
35
|
-
/** To initiate eventbus subsctiptions */
|
|
36
|
-
inititateEventBusSubscritions(): void;
|
|
37
|
-
/**
|
|
38
|
-
* temp fix- recursive method to iterate over the list of items
|
|
39
|
-
* and add them to gridster in the given order
|
|
40
|
-
* @param widgetList -list of widgets
|
|
41
|
-
* @param index -index of the current value to be added
|
|
42
|
-
*/
|
|
43
|
-
addWidgetListToGridster(widgetList: any, index: number): void;
|
|
44
|
-
ngOnDestroy(): void;
|
|
45
|
-
/**To update position/dimention of all widgets in the area */
|
|
46
|
-
updateWidgets(): boolean;
|
|
47
|
-
/** To retrieve widgets based on userDashboardid and area name */
|
|
48
|
-
loadWidgets(userDashboarId: number, areaKey: string): void;
|
|
49
|
-
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|
|
50
|
-
setAreaHeight(): void;
|
|
51
|
-
/** To remove a widget instance from dashboard and to save info in database */
|
|
52
|
-
deleteWidget(widgetInstanceId: any, isalertDisabled?: boolean): void;
|
|
53
|
-
/**To add widget instance to the database with the next available position and to make changes in
|
|
54
|
-
* dashboard area.
|
|
55
|
-
*/
|
|
56
|
-
addWidget(data: any): void;
|
|
57
|
-
/** To add widget to current widget list ,invoked from copy widget window*/
|
|
58
|
-
copyWidget(data: any): void;
|
|
59
|
-
/**To map IwidgetInfo object to gridsterItem */
|
|
60
|
-
mapObjectsToGridsterItem(widget: IWidgetInfo): GridsterItem;
|
|
61
|
-
mapObjectListToGridsterItemList(widgetList: Array<IWidgetInfo>): GridsterItem[];
|
|
62
|
-
mapGridsterItemToObject(widgetItem: GridsterItem): IWidgetInfo;
|
|
63
|
-
mapGridsterListToObject(widgetItemList: Array<GridsterItem>): IWidgetInfo[];
|
|
64
|
-
}
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { GridsterConfig, GridsterItem } from '../../gridster/index';
|
|
3
|
+
import { RaDashboardService } from '../ra.dashboard.service';
|
|
4
|
+
import { RADashboardEventBus } from '../ra.dashbard.event.bus';
|
|
5
|
+
import { IWidgetInfo, IAppConfig } from '@schneideress/widgetframework';
|
|
6
|
+
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
7
|
+
import { NotifierService } from 'angular-notifier';
|
|
8
|
+
import { RATranslateService } from '@schneideress/ra-common';
|
|
9
|
+
export declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
10
|
+
private dashboardService;
|
|
11
|
+
private ngZone;
|
|
12
|
+
private ngxService;
|
|
13
|
+
private translateService;
|
|
14
|
+
private notifier;
|
|
15
|
+
widgetList: GridsterItem[];
|
|
16
|
+
options: GridsterConfig;
|
|
17
|
+
gridheight: number;
|
|
18
|
+
private conifgAddClick;
|
|
19
|
+
private widgetDeleteEvent;
|
|
20
|
+
private widgetAddEvent;
|
|
21
|
+
private widgetLibraryDoneClick;
|
|
22
|
+
private isWidgetLoaded;
|
|
23
|
+
userDashboardId: number;
|
|
24
|
+
areaKey: string;
|
|
25
|
+
globalFilter: any;
|
|
26
|
+
raDashboardEventBus: RADashboardEventBus;
|
|
27
|
+
widgetHeight: number;
|
|
28
|
+
widgetWidth: number;
|
|
29
|
+
appConfig: IAppConfig;
|
|
30
|
+
constructor(dashboardService: RaDashboardService, ngZone: NgZone, ngxService: NgxUiLoaderService, translateService: RATranslateService, notifier: NotifierService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
/**To set GridsterConfig */
|
|
34
|
+
initiateGridsterConfig(): void;
|
|
35
|
+
/** To initiate eventbus subsctiptions */
|
|
36
|
+
inititateEventBusSubscritions(): void;
|
|
37
|
+
/**
|
|
38
|
+
* temp fix- recursive method to iterate over the list of items
|
|
39
|
+
* and add them to gridster in the given order
|
|
40
|
+
* @param widgetList -list of widgets
|
|
41
|
+
* @param index -index of the current value to be added
|
|
42
|
+
*/
|
|
43
|
+
addWidgetListToGridster(widgetList: any, index: number): void;
|
|
44
|
+
ngOnDestroy(): void;
|
|
45
|
+
/**To update position/dimention of all widgets in the area */
|
|
46
|
+
updateWidgets(): boolean;
|
|
47
|
+
/** To retrieve widgets based on userDashboardid and area name */
|
|
48
|
+
loadWidgets(userDashboarId: number, areaKey: string): void;
|
|
49
|
+
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|
|
50
|
+
setAreaHeight(): void;
|
|
51
|
+
/** To remove a widget instance from dashboard and to save info in database */
|
|
52
|
+
deleteWidget(widgetInstanceId: any, isalertDisabled?: boolean): void;
|
|
53
|
+
/**To add widget instance to the database with the next available position and to make changes in
|
|
54
|
+
* dashboard area.
|
|
55
|
+
*/
|
|
56
|
+
addWidget(data: any): void;
|
|
57
|
+
/** To add widget to current widget list ,invoked from copy widget window*/
|
|
58
|
+
copyWidget(data: any): void;
|
|
59
|
+
/**To map IwidgetInfo object to gridsterItem */
|
|
60
|
+
mapObjectsToGridsterItem(widget: IWidgetInfo): GridsterItem;
|
|
61
|
+
mapObjectListToGridsterItemList(widgetList: Array<IWidgetInfo>): GridsterItem[];
|
|
62
|
+
mapGridsterItemToObject(widgetItem: GridsterItem): IWidgetInfo;
|
|
63
|
+
mapGridsterListToObject(widgetItemList: Array<GridsterItem>): IWidgetInfo[];
|
|
64
|
+
}
|
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, AfterViewInit, OnDestroy, NgZone, Renderer2 } from '@angular/core';
|
|
2
|
-
import { RaDashboardService } from './../ra.dashboard.service';
|
|
3
|
-
import { RADashboardEventBus } from '../ra.dashbard.event.bus';
|
|
4
|
-
import { IAppConfig, IWidgetInfo, RADownloadType } from '@schneideress/widgetframework';
|
|
5
|
-
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
6
|
-
import { NotifierService } from 'angular-notifier';
|
|
7
|
-
import { RATranslateService } from '@schneideress/ra-common';
|
|
8
|
-
export declare class RAWidgetContainer implements OnChanges, AfterViewInit, OnDestroy {
|
|
9
|
-
private dashboardService;
|
|
10
|
-
private ngxService;
|
|
11
|
-
private translateService;
|
|
12
|
-
private ngZone;
|
|
13
|
-
private notifier;
|
|
14
|
-
private renderer;
|
|
15
|
-
showPanel: boolean;
|
|
16
|
-
private isWidgetLoaded;
|
|
17
|
-
private widgetElement;
|
|
18
|
-
private configChanged;
|
|
19
|
-
private isIEOrEdge;
|
|
20
|
-
widgetHeight: number;
|
|
21
|
-
lockClass: string;
|
|
22
|
-
lockStatus: string;
|
|
23
|
-
isDownloadIconVisible: boolean;
|
|
24
|
-
dropDownShown: boolean;
|
|
25
|
-
isDownloadChartVisible: boolean;
|
|
26
|
-
downloadIconType: RADownloadType;
|
|
27
|
-
ctlWidget: ElementRef;
|
|
28
|
-
widgetDropdown: ElementRef;
|
|
29
|
-
widgetDownload: ElementRef;
|
|
30
|
-
widgetInstanceId: number;
|
|
31
|
-
globalFilter: any;
|
|
32
|
-
data: any;
|
|
33
|
-
raDashboardEventBus: RADashboardEventBus;
|
|
34
|
-
appConfig: IAppConfig;
|
|
35
|
-
width: number;
|
|
36
|
-
height: number;
|
|
37
|
-
widgetDeleted: EventEmitter<string>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, AfterViewInit, OnDestroy, NgZone, Renderer2 } from '@angular/core';
|
|
2
|
+
import { RaDashboardService } from './../ra.dashboard.service';
|
|
3
|
+
import { RADashboardEventBus } from '../ra.dashbard.event.bus';
|
|
4
|
+
import { IAppConfig, IWidgetInfo, RADownloadType } from '@schneideress/widgetframework';
|
|
5
|
+
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
6
|
+
import { NotifierService } from 'angular-notifier';
|
|
7
|
+
import { RATranslateService } from '@schneideress/ra-common';
|
|
8
|
+
export declare class RAWidgetContainer implements OnChanges, AfterViewInit, OnDestroy {
|
|
9
|
+
private dashboardService;
|
|
10
|
+
private ngxService;
|
|
11
|
+
private translateService;
|
|
12
|
+
private ngZone;
|
|
13
|
+
private notifier;
|
|
14
|
+
private renderer;
|
|
15
|
+
showPanel: boolean;
|
|
16
|
+
private isWidgetLoaded;
|
|
17
|
+
private widgetElement;
|
|
18
|
+
private configChanged;
|
|
19
|
+
private isIEOrEdge;
|
|
20
|
+
widgetHeight: number;
|
|
21
|
+
lockClass: string;
|
|
22
|
+
lockStatus: string;
|
|
23
|
+
isDownloadIconVisible: boolean;
|
|
24
|
+
dropDownShown: boolean;
|
|
25
|
+
isDownloadChartVisible: boolean;
|
|
26
|
+
downloadIconType: RADownloadType;
|
|
27
|
+
ctlWidget: ElementRef;
|
|
28
|
+
widgetDropdown: ElementRef;
|
|
29
|
+
widgetDownload: ElementRef;
|
|
30
|
+
widgetInstanceId: number;
|
|
31
|
+
globalFilter: any;
|
|
32
|
+
data: any;
|
|
33
|
+
raDashboardEventBus: RADashboardEventBus;
|
|
34
|
+
appConfig: IAppConfig;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
widgetDeleted: EventEmitter<string>;
|
|
38
|
+
lockTitle: string;
|
|
39
|
+
constructor(dashboardService: RaDashboardService, ngxService: NgxUiLoaderService, translateService: RATranslateService, ngZone: NgZone, notifier: NotifierService, renderer: Renderer2);
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
+
ngAfterViewInit(): void;
|
|
42
|
+
ngOnDestroy(): void;
|
|
43
|
+
/** To Edit current widget configuration*/
|
|
44
|
+
editWidget(): void;
|
|
45
|
+
/** To Delete current widget from DOM*/
|
|
46
|
+
deleteWidget(): void;
|
|
47
|
+
/** To Move or change position if current widget container*/
|
|
48
|
+
moveWidget(): void;
|
|
49
|
+
/** To Copy Current widget with same configuration*/
|
|
50
|
+
copyWidget(): void;
|
|
51
|
+
configChangeEventHandler(widgetInfo: any): void;
|
|
52
|
+
/** To load external custom element to the widget container*/
|
|
53
|
+
loadWidget(widgetInfo: any): Promise<void>;
|
|
54
|
+
/** To refresh widget on input config changes */
|
|
55
|
+
refreshWidget(widgetInfo: IWidgetInfo): Promise<void>;
|
|
56
|
+
private setLock;
|
|
57
|
+
setDownloadIcon(): Promise<void>;
|
|
58
|
+
downloadClicked(): void;
|
|
59
|
+
downloadIconClicked(type: string): void;
|
|
60
|
+
/**Show dropdown on gear icon click */
|
|
61
|
+
showDropDown(): void;
|
|
62
|
+
/**Hide dropdown on outside click */
|
|
63
|
+
hideDropDown(): void;
|
|
64
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IAppConfig } from '@schneideress/widgetframework';
|
|
2
|
-
export declare abstract class RaBaseDashboardFilter {
|
|
3
|
-
abstract getFilterConfig(): any;
|
|
4
|
-
abstract setFilterConfig(filter: string, appConfig: IAppConfig): any;
|
|
5
|
-
abstract clearData(): void;
|
|
6
|
-
private getAllFilterConfig;
|
|
7
|
-
setAllFilterConfig: (globalFilter: string, appConfig: IAppConfig) => void;
|
|
8
|
-
clearAllData: () => void;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
}
|
|
1
|
+
import { IAppConfig } from '@schneideress/widgetframework';
|
|
2
|
+
export declare abstract class RaBaseDashboardFilter {
|
|
3
|
+
abstract getFilterConfig(): any;
|
|
4
|
+
abstract setFilterConfig(filter: string, appConfig: IAppConfig): any;
|
|
5
|
+
abstract clearData(): void;
|
|
6
|
+
private getAllFilterConfig;
|
|
7
|
+
setAllFilterConfig: (globalFilter: string, appConfig: IAppConfig) => void;
|
|
8
|
+
clearAllData: () => void;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
2
|
-
import { RADashboardEventBus } from './ra.dashbard.event.bus';
|
|
3
|
-
import { IAppConfig } from '@schneideress/widgetframework';
|
|
4
|
-
export declare abstract class RaBaseDashboardTemplate {
|
|
5
|
-
private ngZone;
|
|
6
|
-
userDashboardId: number;
|
|
7
|
-
raDashboardEventBus: RADashboardEventBus;
|
|
8
|
-
appConfig: IAppConfig;
|
|
9
|
-
dashboardId: number;
|
|
10
|
-
globalFilter: any;
|
|
11
|
-
constructor(ngZone: NgZone);
|
|
12
|
-
initialize: (eventBus: RADashboardEventBus, userDashboardId: number, appConfig: IAppConfig) => void;
|
|
13
|
-
abstract init(): void;
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
}
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { RADashboardEventBus } from './ra.dashbard.event.bus';
|
|
3
|
+
import { IAppConfig } from '@schneideress/widgetframework';
|
|
4
|
+
export declare abstract class RaBaseDashboardTemplate {
|
|
5
|
+
private ngZone;
|
|
6
|
+
userDashboardId: number;
|
|
7
|
+
raDashboardEventBus: RADashboardEventBus;
|
|
8
|
+
appConfig: IAppConfig;
|
|
9
|
+
dashboardId: number;
|
|
10
|
+
globalFilter: any;
|
|
11
|
+
constructor(ngZone: NgZone);
|
|
12
|
+
initialize: (eventBus: RADashboardEventBus, userDashboardId: number, appConfig: IAppConfig) => void;
|
|
13
|
+
abstract init(): void;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
}
|