@schneideress/dashboardframework 0.0.78 → 0.0.80

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 +7061 -7033
  3. package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
  4. package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
  5. package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
  6. package/esm2015/gridster/index.js +19 -18
  7. package/esm2015/gridster/lib/gridster.component.js +701 -700
  8. package/esm2015/gridster/lib/gridster.interface.js +85 -84
  9. package/esm2015/gridster/lib/gridster.module.js +28 -27
  10. package/esm2015/gridster/lib/gridsterCompact.service.js +224 -223
  11. package/esm2015/gridster/lib/gridsterConfig.constant.js +180 -179
  12. package/esm2015/gridster/lib/gridsterConfig.interface.js +220 -219
  13. package/esm2015/gridster/lib/gridsterConfigS.interface.js +162 -161
  14. package/esm2015/gridster/lib/gridsterDraggable.service.js +511 -510
  15. package/esm2015/gridster/lib/gridsterEmptyCell.service.js +318 -317
  16. package/esm2015/gridster/lib/gridsterItem.component.js +214 -213
  17. package/esm2015/gridster/lib/gridsterItem.interface.js +47 -46
  18. package/esm2015/gridster/lib/gridsterItemComponent.interface.js +49 -48
  19. package/esm2015/gridster/lib/gridsterPreview.component.js +67 -66
  20. package/esm2015/gridster/lib/gridsterPush.service.js +468 -467
  21. package/esm2015/gridster/lib/gridsterPushResize.service.js +359 -358
  22. package/esm2015/gridster/lib/gridsterRenderer.service.js +278 -277
  23. package/esm2015/gridster/lib/gridsterResizable.service.js +553 -552
  24. package/esm2015/gridster/lib/gridsterResizeEventType.interface.js +20 -19
  25. package/esm2015/gridster/lib/gridsterScroll.service.js +196 -195
  26. package/esm2015/gridster/lib/gridsterSwap.service.js +135 -134
  27. package/esm2015/gridster/lib/gridsterUtils.service.js +138 -137
  28. package/esm2015/lib/custom.notifier.options.js +47 -46
  29. package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +497 -496
  30. package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +472 -471
  31. package/esm2015/lib/ra.base.dashboard.filter.js +76 -75
  32. package/esm2015/lib/ra.base.dashboard.template.js +72 -71
  33. package/esm2015/lib/ra.dashbard.event.bus.js +86 -85
  34. package/esm2015/lib/ra.dashboard.module.js +52 -51
  35. package/esm2015/lib/ra.dashboard.service.js +145 -144
  36. package/esm2015/lib/ra.event.enum.js +52 -51
  37. package/esm2015/lib/ra.gridster.config.js +68 -67
  38. package/esm2015/public-api.js +17 -16
  39. package/esm2015/schneideress-dashboardframework.js +15 -14
  40. package/esm5/gridster/index.js +19 -18
  41. package/esm5/gridster/lib/gridster.component.js +804 -803
  42. package/esm5/gridster/lib/gridster.interface.js +95 -94
  43. package/esm5/gridster/lib/gridster.module.js +32 -31
  44. package/esm5/gridster/lib/gridsterCompact.service.js +254 -253
  45. package/esm5/gridster/lib/gridsterConfig.constant.js +180 -179
  46. package/esm5/gridster/lib/gridsterConfig.interface.js +220 -219
  47. package/esm5/gridster/lib/gridsterConfigS.interface.js +162 -161
  48. package/esm5/gridster/lib/gridsterDraggable.service.js +550 -549
  49. package/esm5/gridster/lib/gridsterEmptyCell.service.js +359 -358
  50. package/esm5/gridster/lib/gridsterItem.component.js +239 -238
  51. package/esm5/gridster/lib/gridsterItem.interface.js +47 -46
  52. package/esm5/gridster/lib/gridsterItemComponent.interface.js +59 -58
  53. package/esm5/gridster/lib/gridsterPreview.component.js +71 -70
  54. package/esm5/gridster/lib/gridsterPush.service.js +548 -547
  55. package/esm5/gridster/lib/gridsterPushResize.service.js +424 -423
  56. package/esm5/gridster/lib/gridsterRenderer.service.js +324 -323
  57. package/esm5/gridster/lib/gridsterResizable.service.js +630 -629
  58. package/esm5/gridster/lib/gridsterResizeEventType.interface.js +20 -19
  59. package/esm5/gridster/lib/gridsterScroll.service.js +196 -195
  60. package/esm5/gridster/lib/gridsterSwap.service.js +153 -152
  61. package/esm5/gridster/lib/gridsterUtils.service.js +178 -177
  62. package/esm5/lib/custom.notifier.options.js +47 -46
  63. package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +589 -588
  64. package/esm5/lib/ra-widget-container/ra.widget.container.component.js +585 -584
  65. package/esm5/lib/ra.base.dashboard.filter.js +82 -81
  66. package/esm5/lib/ra.base.dashboard.template.js +75 -74
  67. package/esm5/lib/ra.dashbard.event.bus.js +126 -125
  68. package/esm5/lib/ra.dashboard.module.js +56 -55
  69. package/esm5/lib/ra.dashboard.service.js +222 -221
  70. package/esm5/lib/ra.event.enum.js +52 -51
  71. package/esm5/lib/ra.gridster.config.js +68 -67
  72. package/esm5/public-api.js +17 -16
  73. package/esm5/schneideress-dashboardframework.js +15 -14
  74. package/fesm2015/schneideress-dashboardframework.js +6147 -6117
  75. package/fesm2015/schneideress-dashboardframework.js.map +1 -1
  76. package/fesm5/schneideress-dashboardframework.js +7044 -7014
  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 -64
  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,64 +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
- 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
+ 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
+ }