@schneideress/dashboardframework 0.0.76 → 0.0.78

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 (113) hide show
  1. package/README.md +24 -24
  2. package/bundles/schneideress-dashboardframework.umd.js +7013 -7030
  3. package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
  4. package/bundles/schneideress-dashboardframework.umd.min.js +2 -2
  5. package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
  6. package/esm2015/gridster/index.js +18 -19
  7. package/esm2015/gridster/lib/gridster.component.js +700 -701
  8. package/esm2015/gridster/lib/gridster.interface.js +84 -85
  9. package/esm2015/gridster/lib/gridster.module.js +27 -28
  10. package/esm2015/gridster/lib/gridsterCompact.service.js +223 -224
  11. package/esm2015/gridster/lib/gridsterConfig.constant.js +179 -180
  12. package/esm2015/gridster/lib/gridsterConfig.interface.js +219 -220
  13. package/esm2015/gridster/lib/gridsterConfigS.interface.js +161 -162
  14. package/esm2015/gridster/lib/gridsterDraggable.service.js +510 -511
  15. package/esm2015/gridster/lib/gridsterEmptyCell.service.js +317 -318
  16. package/esm2015/gridster/lib/gridsterItem.component.js +213 -214
  17. package/esm2015/gridster/lib/gridsterItem.interface.js +46 -47
  18. package/esm2015/gridster/lib/gridsterItemComponent.interface.js +48 -49
  19. package/esm2015/gridster/lib/gridsterPreview.component.js +66 -67
  20. package/esm2015/gridster/lib/gridsterPush.service.js +467 -468
  21. package/esm2015/gridster/lib/gridsterPushResize.service.js +358 -359
  22. package/esm2015/gridster/lib/gridsterRenderer.service.js +277 -278
  23. package/esm2015/gridster/lib/gridsterResizable.service.js +552 -553
  24. package/esm2015/gridster/lib/gridsterResizeEventType.interface.js +19 -20
  25. package/esm2015/gridster/lib/gridsterScroll.service.js +195 -196
  26. package/esm2015/gridster/lib/gridsterSwap.service.js +134 -135
  27. package/esm2015/gridster/lib/gridsterUtils.service.js +137 -138
  28. package/esm2015/lib/custom.notifier.options.js +46 -47
  29. package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +496 -497
  30. package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +471 -462
  31. package/esm2015/lib/ra.base.dashboard.filter.js +75 -76
  32. package/esm2015/lib/ra.base.dashboard.template.js +71 -72
  33. package/esm2015/lib/ra.dashbard.event.bus.js +85 -86
  34. package/esm2015/lib/ra.dashboard.module.js +51 -50
  35. package/esm2015/lib/ra.dashboard.service.js +144 -145
  36. package/esm2015/lib/ra.event.enum.js +51 -52
  37. package/esm2015/lib/ra.gridster.config.js +67 -68
  38. package/esm2015/public-api.js +16 -17
  39. package/esm2015/schneideress-dashboardframework.js +14 -15
  40. package/esm5/gridster/index.js +18 -19
  41. package/esm5/gridster/lib/gridster.component.js +803 -804
  42. package/esm5/gridster/lib/gridster.interface.js +94 -95
  43. package/esm5/gridster/lib/gridster.module.js +31 -32
  44. package/esm5/gridster/lib/gridsterCompact.service.js +253 -254
  45. package/esm5/gridster/lib/gridsterConfig.constant.js +179 -180
  46. package/esm5/gridster/lib/gridsterConfig.interface.js +219 -220
  47. package/esm5/gridster/lib/gridsterConfigS.interface.js +161 -162
  48. package/esm5/gridster/lib/gridsterDraggable.service.js +549 -550
  49. package/esm5/gridster/lib/gridsterEmptyCell.service.js +358 -359
  50. package/esm5/gridster/lib/gridsterItem.component.js +238 -239
  51. package/esm5/gridster/lib/gridsterItem.interface.js +46 -47
  52. package/esm5/gridster/lib/gridsterItemComponent.interface.js +58 -59
  53. package/esm5/gridster/lib/gridsterPreview.component.js +70 -71
  54. package/esm5/gridster/lib/gridsterPush.service.js +547 -548
  55. package/esm5/gridster/lib/gridsterPushResize.service.js +423 -424
  56. package/esm5/gridster/lib/gridsterRenderer.service.js +323 -324
  57. package/esm5/gridster/lib/gridsterResizable.service.js +629 -630
  58. package/esm5/gridster/lib/gridsterResizeEventType.interface.js +19 -20
  59. package/esm5/gridster/lib/gridsterScroll.service.js +195 -196
  60. package/esm5/gridster/lib/gridsterSwap.service.js +152 -153
  61. package/esm5/gridster/lib/gridsterUtils.service.js +177 -178
  62. package/esm5/lib/custom.notifier.options.js +46 -47
  63. package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +588 -589
  64. package/esm5/lib/ra-widget-container/ra.widget.container.component.js +584 -575
  65. package/esm5/lib/ra.base.dashboard.filter.js +81 -82
  66. package/esm5/lib/ra.base.dashboard.template.js +74 -75
  67. package/esm5/lib/ra.dashbard.event.bus.js +125 -126
  68. package/esm5/lib/ra.dashboard.module.js +55 -54
  69. package/esm5/lib/ra.dashboard.service.js +221 -222
  70. package/esm5/lib/ra.event.enum.js +51 -52
  71. package/esm5/lib/ra.gridster.config.js +67 -68
  72. package/esm5/public-api.js +16 -17
  73. package/esm5/schneideress-dashboardframework.js +14 -15
  74. package/fesm2015/schneideress-dashboardframework.js +6118 -6136
  75. package/fesm2015/schneideress-dashboardframework.js.map +1 -1
  76. package/fesm5/schneideress-dashboardframework.js +7015 -7033
  77. package/fesm5/schneideress-dashboardframework.js.map +1 -1
  78. package/gridster/index.d.ts +11 -11
  79. package/gridster/lib/gridster.component.d.ts +67 -67
  80. package/gridster/lib/gridster.interface.d.ts +46 -46
  81. package/gridster/lib/gridster.module.d.ts +2 -2
  82. package/gridster/lib/gridsterCompact.service.d.ts +15 -15
  83. package/gridster/lib/gridsterConfig.constant.d.ts +2 -2
  84. package/gridster/lib/gridsterConfig.interface.d.ts +133 -133
  85. package/gridster/lib/gridsterConfigS.interface.d.ts +93 -93
  86. package/gridster/lib/gridsterDraggable.service.d.ts +59 -59
  87. package/gridster/lib/gridsterEmptyCell.service.d.ts +29 -29
  88. package/gridster/lib/gridsterItem.component.d.ts +32 -32
  89. package/gridster/lib/gridsterItem.interface.d.ts +21 -21
  90. package/gridster/lib/gridsterItemComponent.interface.d.ts +25 -25
  91. package/gridster/lib/gridsterPreview.component.d.ts +10 -10
  92. package/gridster/lib/gridsterPush.service.d.ts +33 -33
  93. package/gridster/lib/gridsterPushResize.service.d.ts +26 -26
  94. package/gridster/lib/gridsterRenderer.service.d.ts +38 -38
  95. package/gridster/lib/gridsterResizable.service.d.ts +67 -67
  96. package/gridster/lib/gridsterResizeEventType.interface.d.ts +6 -6
  97. package/gridster/lib/gridsterScroll.service.d.ts +4 -4
  98. package/gridster/lib/gridsterSwap.service.d.ts +13 -13
  99. package/gridster/lib/gridsterUtils.service.d.ts +16 -16
  100. package/lib/custom.notifier.options.d.ts +2 -2
  101. package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +64 -64
  102. package/lib/ra-widget-container/ra.widget.container.component.d.ts +64 -63
  103. package/lib/ra.base.dashboard.filter.d.ts +10 -10
  104. package/lib/ra.base.dashboard.template.d.ts +15 -15
  105. package/lib/ra.dashbard.event.bus.d.ts +20 -20
  106. package/lib/ra.dashboard.module.d.ts +2 -2
  107. package/lib/ra.dashboard.service.d.ts +22 -22
  108. package/lib/ra.event.enum.d.ts +42 -42
  109. package/lib/ra.gridster.config.d.ts +2 -2
  110. package/package.json +1 -1
  111. package/public-api.d.ts +8 -8
  112. package/schneideress-dashboardframework.d.ts +9 -9
  113. 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
- constructor(dashboardService: RaDashboardService, ngxService: NgxUiLoaderService, translateService: RATranslateService, ngZone: NgZone, notifier: NotifierService, renderer: Renderer2);
39
- ngOnChanges(changes: SimpleChanges): void;
40
- ngAfterViewInit(): void;
41
- ngOnDestroy(): void;
42
- /** To Edit current widget configuration*/
43
- editWidget(): void;
44
- /** To Delete current widget from DOM*/
45
- deleteWidget(): void;
46
- /** To Move or change position if current widget container*/
47
- moveWidget(): void;
48
- /** To Copy Current widget with same configuration*/
49
- copyWidget(): void;
50
- configChangeEventHandler(widgetInfo: any): void;
51
- /** To load external custom element to the widget container*/
52
- loadWidget(widgetInfo: any): Promise<void>;
53
- /** To refresh widget on input config changes */
54
- refreshWidget(widgetInfo: IWidgetInfo): Promise<void>;
55
- private setLock;
56
- setDownloadIcon(): Promise<void>;
57
- downloadClicked(): void;
58
- downloadIconClicked(type: string): void;
59
- /**Show dropdown on gear icon click */
60
- showDropDown(): void;
61
- /**Hide dropdown on outside click */
62
- hideDropDown(): void;
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
+ }