@schneideress/dashboardframework 17.0.47 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/schneideress-dashboardframework.mjs +47 -47
- package/fesm2022/schneideress-dashboardframework.mjs.map +1 -1
- package/index.d.ts +1255 -5
- package/package.json +11 -7
- package/esm2022/gridster/index.mjs +0 -12
- package/esm2022/gridster/lib/gridster.component.mjs +0 -627
- package/esm2022/gridster/lib/gridster.interface.mjs +0 -3
- package/esm2022/gridster/lib/gridster.module.mjs +0 -17
- package/esm2022/gridster/lib/gridsterCompact.service.mjs +0 -126
- package/esm2022/gridster/lib/gridsterConfig.constant.mjs +0 -118
- package/esm2022/gridster/lib/gridsterConfig.interface.mjs +0 -37
- package/esm2022/gridster/lib/gridsterConfigS.interface.mjs +0 -2
- package/esm2022/gridster/lib/gridsterDraggable.service.mjs +0 -405
- package/esm2022/gridster/lib/gridsterEmptyCell.service.mjs +0 -255
- package/esm2022/gridster/lib/gridsterItem.component.mjs +0 -231
- package/esm2022/gridster/lib/gridsterItem.interface.mjs +0 -3
- package/esm2022/gridster/lib/gridsterPreview.component.mjs +0 -36
- package/esm2022/gridster/lib/gridsterPush.service.mjs +0 -316
- package/esm2022/gridster/lib/gridsterPushResize.service.mjs +0 -225
- package/esm2022/gridster/lib/gridsterRenderer.interface.mjs +0 -2
- package/esm2022/gridster/lib/gridsterRenderer.service.mjs +0 -274
- package/esm2022/gridster/lib/gridsterResizable.service.mjs +0 -470
- package/esm2022/gridster/lib/gridsterResizeEventType.interface.mjs +0 -2
- package/esm2022/gridster/lib/gridsterScroll.service.mjs +0 -134
- package/esm2022/gridster/lib/gridsterSwap.service.mjs +0 -87
- package/esm2022/gridster/lib/gridsterUtils.service.mjs +0 -92
- package/esm2022/lib/custom.notifier.options.mjs +0 -41
- package/esm2022/lib/ra-dashboard-area/ra.dashboard.area.mjs +0 -639
- package/esm2022/lib/ra-widget-container/lock-tooltip/lock.tooltip.component.mjs +0 -43
- package/esm2022/lib/ra-widget-container/ra.widget.container.component.mjs +0 -964
- package/esm2022/lib/ra.base.dashboard.filter.mjs +0 -46
- package/esm2022/lib/ra.base.dashboard.template.mjs +0 -45
- package/esm2022/lib/ra.dashbard.event.bus.mjs +0 -46
- package/esm2022/lib/ra.dashboard.module.mjs +0 -55
- package/esm2022/lib/ra.dashboard.responsive.service.mjs +0 -149
- package/esm2022/lib/ra.dashboard.service.mjs +0 -84
- package/esm2022/lib/ra.event.enum.mjs +0 -75
- package/esm2022/lib/ra.gridster.config.mjs +0 -56
- package/esm2022/public-api.mjs +0 -13
- package/esm2022/schneideress-dashboardframework.mjs +0 -5
- package/gridster/index.d.ts +0 -9
- package/gridster/lib/gridster.component.d.ts +0 -79
- package/gridster/lib/gridster.interface.d.ts +0 -49
- package/gridster/lib/gridster.module.d.ts +0 -8
- package/gridster/lib/gridsterCompact.service.d.ts +0 -11
- package/gridster/lib/gridsterConfig.constant.d.ts +0 -2
- package/gridster/lib/gridsterConfig.interface.d.ts +0 -155
- package/gridster/lib/gridsterConfigS.interface.d.ts +0 -107
- package/gridster/lib/gridsterDraggable.service.d.ts +0 -68
- package/gridster/lib/gridsterEmptyCell.service.d.ts +0 -31
- package/gridster/lib/gridsterItem.component.d.ts +0 -61
- package/gridster/lib/gridsterItem.interface.d.ts +0 -67
- package/gridster/lib/gridsterPreview.component.d.ts +0 -17
- package/gridster/lib/gridsterPush.service.d.ts +0 -34
- package/gridster/lib/gridsterPushResize.service.d.ts +0 -26
- package/gridster/lib/gridsterRenderer.interface.d.ts +0 -14
- package/gridster/lib/gridsterRenderer.service.d.ts +0 -37
- package/gridster/lib/gridsterResizable.service.d.ts +0 -86
- package/gridster/lib/gridsterResizeEventType.interface.d.ts +0 -6
- package/gridster/lib/gridsterScroll.service.d.ts +0 -7
- package/gridster/lib/gridsterSwap.service.d.ts +0 -13
- package/gridster/lib/gridsterUtils.service.d.ts +0 -16
- package/lib/custom.notifier.options.d.ts +0 -2
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +0 -132
- package/lib/ra-widget-container/lock-tooltip/lock.tooltip.component.d.ts +0 -20
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +0 -154
- package/lib/ra.base.dashboard.filter.d.ts +0 -19
- package/lib/ra.base.dashboard.template.d.ts +0 -24
- package/lib/ra.dashbard.event.bus.d.ts +0 -23
- package/lib/ra.dashboard.module.d.ts +0 -16
- package/lib/ra.dashboard.responsive.service.d.ts +0 -24
- package/lib/ra.dashboard.service.d.ts +0 -26
- package/lib/ra.event.enum.d.ts +0 -72
- package/lib/ra.gridster.config.d.ts +0 -2
- package/public-api.d.ts +0 -9
package/index.d.ts
CHANGED
|
@@ -1,5 +1,1255 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Subject, Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injector, NgZone, Renderer2, ChangeDetectorRef, OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef, SimpleChanges, AfterViewInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
5
|
+
import * as i9 from '@schneideress/ra-common';
|
|
6
|
+
import { BaseService, RATranslateService, RAPermissionService, DomService } from '@schneideress/ra-common';
|
|
7
|
+
import { IWidgetInfo, IAppConfig, IDashboardInfo, IBulkAction, RaWidgetlockStatus, RADownloadType, WidgetViewState, IconfigChanges } from '@schneideress/widgetframework';
|
|
8
|
+
import * as i7 from 'ngx-ui-loader';
|
|
9
|
+
import { NgxUiLoaderService } from 'ngx-ui-loader';
|
|
10
|
+
import * as i8 from 'angular-notifier';
|
|
11
|
+
import { NotifierService } from 'angular-notifier';
|
|
12
|
+
import * as i4 from '@angular/common';
|
|
13
|
+
import * as i6 from '@angular/common/http';
|
|
14
|
+
import * as i10 from '@schneideress/common-controls';
|
|
15
|
+
|
|
16
|
+
declare class RaDashboardService extends BaseService {
|
|
17
|
+
constructor(injector: Injector);
|
|
18
|
+
private loadedScripts;
|
|
19
|
+
clientId: any;
|
|
20
|
+
loadExternalScript(scriptPath: string, callback: any): void;
|
|
21
|
+
getWidgetsByDashboardArea(widgetInfo: IWidgetInfo, appConfig: IAppConfig): rxjs.Observable<any>;
|
|
22
|
+
updateWidgets(widgetList: Array<IWidgetInfo>, appConfig: IAppConfig): rxjs.Observable<any>;
|
|
23
|
+
getWidgetConfigInfo(widgetInfo: any): rxjs.Observable<never>;
|
|
24
|
+
updateConfig(config: any, widgetInstanceId: number): void;
|
|
25
|
+
/**To add widget to the database */
|
|
26
|
+
addWidget(widgetInfo: any, appConfig: IAppConfig): rxjs.Observable<any>;
|
|
27
|
+
/** To Delete current widget from DOM*/
|
|
28
|
+
deleteWidget(widgetInfo: any, appConfig: IAppConfig): rxjs.Observable<any>;
|
|
29
|
+
/**To Update widgetInfo in database */
|
|
30
|
+
updateWidget(widgetInfo: IWidgetInfo, appConfig: IAppConfig): rxjs.Observable<any>;
|
|
31
|
+
/** To Move or change position if current widget container*/
|
|
32
|
+
moveWidget(widgetInfo: any): void;
|
|
33
|
+
/** To Copy Current widget with same configuration*/
|
|
34
|
+
copyWidget(widgetInfo: any): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RaDashboardService, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RaDashboardService>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class GridsterPush {
|
|
40
|
+
fromSouth: string;
|
|
41
|
+
fromNorth: string;
|
|
42
|
+
fromEast: string;
|
|
43
|
+
fromWest: string;
|
|
44
|
+
private pushedItems;
|
|
45
|
+
private pushedItemsTemp;
|
|
46
|
+
private pushedItemsTempPath;
|
|
47
|
+
private pushedItemsPath;
|
|
48
|
+
private gridsterItem;
|
|
49
|
+
private gridster;
|
|
50
|
+
private pushedItemsOrder;
|
|
51
|
+
private tryPattern;
|
|
52
|
+
private iteration;
|
|
53
|
+
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
54
|
+
destroy(): void;
|
|
55
|
+
pushItems(direction: string, disable?: boolean): boolean;
|
|
56
|
+
restoreTempItems(): void;
|
|
57
|
+
restoreItems(): void;
|
|
58
|
+
setPushedItems(): void;
|
|
59
|
+
checkPushBack(): void;
|
|
60
|
+
private push;
|
|
61
|
+
private trySouth;
|
|
62
|
+
private tryNorth;
|
|
63
|
+
private tryEast;
|
|
64
|
+
private tryWest;
|
|
65
|
+
private addToTempPushed;
|
|
66
|
+
private removeFromTempPushed;
|
|
67
|
+
private addToPushed;
|
|
68
|
+
private removeFromPushed;
|
|
69
|
+
private removeFromPushedItem;
|
|
70
|
+
private checkPushedItem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class GridsterSwap {
|
|
74
|
+
private swapedItem;
|
|
75
|
+
private gridsterItem;
|
|
76
|
+
private gridster;
|
|
77
|
+
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
78
|
+
destroy(): void;
|
|
79
|
+
swapItems(): void;
|
|
80
|
+
checkSwapBack(): void;
|
|
81
|
+
restoreSwapItem(): void;
|
|
82
|
+
setSwapItem(): void;
|
|
83
|
+
checkSwap(pushedBy: GridsterItemComponentInterface): void;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class GridsterDraggable {
|
|
87
|
+
private zone;
|
|
88
|
+
gridsterItem: GridsterItemComponentInterface;
|
|
89
|
+
gridster: GridsterComponentInterface;
|
|
90
|
+
lastMouse: {
|
|
91
|
+
clientX: number;
|
|
92
|
+
clientY: number;
|
|
93
|
+
};
|
|
94
|
+
offsetLeft: number;
|
|
95
|
+
offsetTop: number;
|
|
96
|
+
margin: number;
|
|
97
|
+
outerMarginTop: number | null;
|
|
98
|
+
outerMarginRight: number | null;
|
|
99
|
+
outerMarginBottom: number | null;
|
|
100
|
+
outerMarginLeft: number | null;
|
|
101
|
+
diffTop: number;
|
|
102
|
+
diffLeft: number;
|
|
103
|
+
originalClientX: number;
|
|
104
|
+
originalClientY: number;
|
|
105
|
+
top: number;
|
|
106
|
+
left: number;
|
|
107
|
+
height: number;
|
|
108
|
+
width: number;
|
|
109
|
+
positionX: number;
|
|
110
|
+
positionY: number;
|
|
111
|
+
positionXBackup: number;
|
|
112
|
+
positionYBackup: number;
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
mousemove: () => void;
|
|
115
|
+
mouseup: () => void;
|
|
116
|
+
mouseleave: () => void;
|
|
117
|
+
cancelOnBlur: () => void;
|
|
118
|
+
touchmove: () => void;
|
|
119
|
+
touchend: () => void;
|
|
120
|
+
touchcancel: () => void;
|
|
121
|
+
mousedown: () => void;
|
|
122
|
+
touchstart: () => void;
|
|
123
|
+
push: GridsterPush;
|
|
124
|
+
swap: GridsterSwap;
|
|
125
|
+
path: Array<{
|
|
126
|
+
x: number;
|
|
127
|
+
y: number;
|
|
128
|
+
}>;
|
|
129
|
+
collision: GridsterItemComponentInterface | boolean;
|
|
130
|
+
constructor(gridsterItem: GridsterItemComponentInterface, gridster: GridsterComponentInterface, zone: NgZone);
|
|
131
|
+
destroy(): void;
|
|
132
|
+
dragStart(e: MouseEvent): void;
|
|
133
|
+
dragMove: (e: MouseEvent) => void;
|
|
134
|
+
calculateItemPositionFromMousePosition: (e: MouseEvent) => void;
|
|
135
|
+
calculateItemPositionWithScale(e: MouseEvent, scale: number): void;
|
|
136
|
+
calculateItemPositionWithoutScale(e: MouseEvent): void;
|
|
137
|
+
dragStop: (e: MouseEvent) => void;
|
|
138
|
+
cancelDrag: () => void;
|
|
139
|
+
makeDrag: () => void;
|
|
140
|
+
calculateItemPosition(): void;
|
|
141
|
+
toggle(): void;
|
|
142
|
+
dragStartDelay: (e: MouseEvent) => void;
|
|
143
|
+
/**
|
|
144
|
+
* Returns the list of directions for given mouse event
|
|
145
|
+
* @param e Mouse event
|
|
146
|
+
* */
|
|
147
|
+
private getDirections;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare class GridsterPushResize {
|
|
151
|
+
fromSouth: string;
|
|
152
|
+
fromNorth: string;
|
|
153
|
+
fromEast: string;
|
|
154
|
+
fromWest: string;
|
|
155
|
+
private pushedItems;
|
|
156
|
+
private pushedItemsPath;
|
|
157
|
+
private gridsterItem;
|
|
158
|
+
private gridster;
|
|
159
|
+
private tryPattern;
|
|
160
|
+
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
161
|
+
destroy(): void;
|
|
162
|
+
pushItems(direction: string): boolean;
|
|
163
|
+
restoreItems(): void;
|
|
164
|
+
setPushedItems(): void;
|
|
165
|
+
checkPushBack(): void;
|
|
166
|
+
private push;
|
|
167
|
+
private trySouth;
|
|
168
|
+
private tryNorth;
|
|
169
|
+
private tryEast;
|
|
170
|
+
private tryWest;
|
|
171
|
+
private addToPushed;
|
|
172
|
+
private removeFromPushed;
|
|
173
|
+
private checkPushedItem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface GridsterResizeEventType {
|
|
177
|
+
north: boolean;
|
|
178
|
+
south: boolean;
|
|
179
|
+
west: boolean;
|
|
180
|
+
east: boolean;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare class GridsterResizable {
|
|
184
|
+
private zone;
|
|
185
|
+
gridsterItem: GridsterItemComponentInterface;
|
|
186
|
+
gridster: GridsterComponentInterface;
|
|
187
|
+
lastMouse: {
|
|
188
|
+
clientX: number;
|
|
189
|
+
clientY: number;
|
|
190
|
+
};
|
|
191
|
+
itemBackup: number[];
|
|
192
|
+
resizeEventScrollType: GridsterResizeEventType;
|
|
193
|
+
/**
|
|
194
|
+
* The direction function may reference any of the `GridsterResizable` class methods, that are
|
|
195
|
+
* responsible for gridster resize when the `dragmove` event is being handled. E.g. it may reference
|
|
196
|
+
* the `handleNorth` method when the north handle is pressed and moved by a mouse.
|
|
197
|
+
*/
|
|
198
|
+
private directionFunction;
|
|
199
|
+
resizeEnabled: boolean;
|
|
200
|
+
resizableHandles: {
|
|
201
|
+
s: boolean;
|
|
202
|
+
e: boolean;
|
|
203
|
+
n: boolean;
|
|
204
|
+
w: boolean;
|
|
205
|
+
se: boolean;
|
|
206
|
+
ne: boolean;
|
|
207
|
+
sw: boolean;
|
|
208
|
+
nw: boolean;
|
|
209
|
+
};
|
|
210
|
+
mousemove: () => void;
|
|
211
|
+
mouseup: () => void;
|
|
212
|
+
mouseleave: () => void;
|
|
213
|
+
cancelOnBlur: () => void;
|
|
214
|
+
touchmove: () => void;
|
|
215
|
+
touchend: () => void;
|
|
216
|
+
touchcancel: () => void;
|
|
217
|
+
push: GridsterPush;
|
|
218
|
+
pushResize: GridsterPushResize;
|
|
219
|
+
minHeight: number;
|
|
220
|
+
minWidth: number;
|
|
221
|
+
offsetTop: number;
|
|
222
|
+
offsetLeft: number;
|
|
223
|
+
diffTop: number;
|
|
224
|
+
diffLeft: number;
|
|
225
|
+
diffRight: number;
|
|
226
|
+
diffBottom: number;
|
|
227
|
+
margin: number;
|
|
228
|
+
outerMarginTop: number | null;
|
|
229
|
+
outerMarginRight: number | null;
|
|
230
|
+
outerMarginBottom: number | null;
|
|
231
|
+
outerMarginLeft: number | null;
|
|
232
|
+
originalClientX: number;
|
|
233
|
+
originalClientY: number;
|
|
234
|
+
top: number;
|
|
235
|
+
left: number;
|
|
236
|
+
bottom: number;
|
|
237
|
+
right: number;
|
|
238
|
+
width: number;
|
|
239
|
+
height: number;
|
|
240
|
+
newPosition: number;
|
|
241
|
+
constructor(gridsterItem: GridsterItemComponentInterface, gridster: GridsterComponentInterface, zone: NgZone);
|
|
242
|
+
destroy(): void;
|
|
243
|
+
dragStart(e: MouseEvent): void;
|
|
244
|
+
dragMove: (e: MouseEvent) => void;
|
|
245
|
+
dragStop: (e: MouseEvent) => void;
|
|
246
|
+
cancelResize: () => void;
|
|
247
|
+
makeResize: () => void;
|
|
248
|
+
private handleNorth;
|
|
249
|
+
private handleWest;
|
|
250
|
+
private handleSouth;
|
|
251
|
+
private handleEast;
|
|
252
|
+
private handleNorthWest;
|
|
253
|
+
private handleNorthEast;
|
|
254
|
+
private handleSouthWest;
|
|
255
|
+
private handleSouthEast;
|
|
256
|
+
toggle(): void;
|
|
257
|
+
dragStartDelay(e: MouseEvent | TouchEvent): void;
|
|
258
|
+
setItemTop(top: number): void;
|
|
259
|
+
setItemLeft(left: number): void;
|
|
260
|
+
setItemHeight(height: number): void;
|
|
261
|
+
setItemWidth(width: number): void;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare abstract class GridsterItemComponentInterface {
|
|
265
|
+
item: GridsterItem;
|
|
266
|
+
$item: GridsterItem;
|
|
267
|
+
top: number;
|
|
268
|
+
left: number;
|
|
269
|
+
width: number;
|
|
270
|
+
height: number;
|
|
271
|
+
drag: GridsterDraggable;
|
|
272
|
+
resize: GridsterResizable;
|
|
273
|
+
notPlaced: boolean;
|
|
274
|
+
updateOptions: () => void;
|
|
275
|
+
itemChanged: () => void;
|
|
276
|
+
setSize: () => void;
|
|
277
|
+
checkItemChanges: (newValue: GridsterItem, oldValue: GridsterItem) => void;
|
|
278
|
+
canBeDragged: () => boolean;
|
|
279
|
+
canBeResized: () => boolean;
|
|
280
|
+
getResizableHandles: () => {
|
|
281
|
+
s: boolean;
|
|
282
|
+
e: boolean;
|
|
283
|
+
n: boolean;
|
|
284
|
+
w: boolean;
|
|
285
|
+
se: boolean;
|
|
286
|
+
ne: boolean;
|
|
287
|
+
sw: boolean;
|
|
288
|
+
nw: boolean;
|
|
289
|
+
};
|
|
290
|
+
bringToFront: (offset: number) => void;
|
|
291
|
+
sendToBack: (v: number) => void;
|
|
292
|
+
el: HTMLElement;
|
|
293
|
+
gridster: GridsterComponentInterface;
|
|
294
|
+
renderer: Renderer2;
|
|
295
|
+
}
|
|
296
|
+
interface GridsterItem {
|
|
297
|
+
x: number;
|
|
298
|
+
y: number;
|
|
299
|
+
rows: number;
|
|
300
|
+
cols: number;
|
|
301
|
+
layerIndex?: number;
|
|
302
|
+
initCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
303
|
+
dragEnabled?: boolean;
|
|
304
|
+
resizeEnabled?: boolean;
|
|
305
|
+
resizableHandles?: {
|
|
306
|
+
s?: boolean;
|
|
307
|
+
e?: boolean;
|
|
308
|
+
n?: boolean;
|
|
309
|
+
w?: boolean;
|
|
310
|
+
se?: boolean;
|
|
311
|
+
ne?: boolean;
|
|
312
|
+
sw?: boolean;
|
|
313
|
+
nw?: boolean;
|
|
314
|
+
};
|
|
315
|
+
compactEnabled?: boolean;
|
|
316
|
+
maxItemRows?: number;
|
|
317
|
+
minItemRows?: number;
|
|
318
|
+
maxItemCols?: number;
|
|
319
|
+
minItemCols?: number;
|
|
320
|
+
minItemArea?: number;
|
|
321
|
+
maxItemArea?: number;
|
|
322
|
+
[propName: string]: any;
|
|
323
|
+
curRowHeight?: number;
|
|
324
|
+
widgetHeight?: number;
|
|
325
|
+
widgetInfo?: any;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
type gridTypes = 'fit' | 'scrollVertical' | 'scrollHorizontal' | 'fixed' | 'verticalFixed' | 'horizontalFixed';
|
|
329
|
+
type displayGrids = 'always' | 'onDrag&Resize' | 'none';
|
|
330
|
+
type compactTypes = 'none' | 'compactUp' | 'compactLeft' | 'compactUp&Left' | 'compactLeft&Up' | 'compactRight' | 'compactUp&Right' | 'compactRight&Up' | 'compactDown' | 'compactDown&Left' | 'compactLeft&Down' | 'compactDown&Right' | 'compactRight&Down';
|
|
331
|
+
type dirTypes = 'ltr' | 'rtl';
|
|
332
|
+
interface GridsterConfig {
|
|
333
|
+
gridType?: gridTypes;
|
|
334
|
+
scale?: number;
|
|
335
|
+
fixedColWidth?: number;
|
|
336
|
+
fixedRowHeight?: number;
|
|
337
|
+
keepFixedHeightInMobile?: boolean;
|
|
338
|
+
keepFixedWidthInMobile?: boolean;
|
|
339
|
+
setGridSize?: boolean;
|
|
340
|
+
compactType?: compactTypes;
|
|
341
|
+
mobileBreakpoint?: number;
|
|
342
|
+
allowMultiLayer?: boolean;
|
|
343
|
+
defaultLayerIndex?: number;
|
|
344
|
+
maxLayerIndex?: number;
|
|
345
|
+
baseLayerIndex?: number;
|
|
346
|
+
minCols?: number;
|
|
347
|
+
maxCols?: number;
|
|
348
|
+
minRows?: number;
|
|
349
|
+
maxRows?: number;
|
|
350
|
+
defaultItemCols?: number;
|
|
351
|
+
defaultItemRows?: number;
|
|
352
|
+
maxItemCols?: number;
|
|
353
|
+
maxItemRows?: number;
|
|
354
|
+
minItemCols?: number;
|
|
355
|
+
minItemRows?: number;
|
|
356
|
+
minItemArea?: number;
|
|
357
|
+
maxItemArea?: number;
|
|
358
|
+
addEmptyRowsCount?: number;
|
|
359
|
+
rowHeightRatio?: number;
|
|
360
|
+
margin?: number;
|
|
361
|
+
outerMargin?: boolean;
|
|
362
|
+
outerMarginTop?: number | null;
|
|
363
|
+
outerMarginRight?: number | null;
|
|
364
|
+
outerMarginBottom?: number | null;
|
|
365
|
+
outerMarginLeft?: number | null;
|
|
366
|
+
useTransformPositioning?: boolean;
|
|
367
|
+
scrollSensitivity?: number | null;
|
|
368
|
+
scrollSpeed?: number;
|
|
369
|
+
initCallback?: (gridster: GridsterComponentInterface) => void;
|
|
370
|
+
destroyCallback?: (gridster: GridsterComponentInterface) => void;
|
|
371
|
+
gridSizeChangedCallback?: (gridster: GridsterComponentInterface) => void;
|
|
372
|
+
itemChangeCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
373
|
+
itemResizeCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
374
|
+
itemInitCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
375
|
+
itemRemovedCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
376
|
+
itemValidateCallback?: (item: GridsterItem) => boolean;
|
|
377
|
+
draggable?: Draggable$1;
|
|
378
|
+
resizable?: Resizable$1;
|
|
379
|
+
swap?: boolean;
|
|
380
|
+
swapWhileDragging?: boolean;
|
|
381
|
+
pushItems?: boolean;
|
|
382
|
+
disablePushOnDrag?: boolean;
|
|
383
|
+
disablePushOnResize?: boolean;
|
|
384
|
+
disableAutoPositionOnConflict?: boolean;
|
|
385
|
+
pushDirections?: PushDirections$1;
|
|
386
|
+
pushResizeItems?: boolean;
|
|
387
|
+
displayGrid?: displayGrids;
|
|
388
|
+
disableWindowResize?: boolean;
|
|
389
|
+
disableWarnings?: boolean;
|
|
390
|
+
scrollToNewItems?: boolean;
|
|
391
|
+
disableScrollHorizontal?: boolean;
|
|
392
|
+
disableScrollVertical?: boolean;
|
|
393
|
+
enableBoundaryControl?: boolean;
|
|
394
|
+
enableEmptyCellClick?: boolean;
|
|
395
|
+
enableEmptyCellContextMenu?: boolean;
|
|
396
|
+
enableEmptyCellDrop?: boolean;
|
|
397
|
+
enableEmptyCellDrag?: boolean;
|
|
398
|
+
enableOccupiedCellDrop?: boolean;
|
|
399
|
+
emptyCellClickCallback?: (event: MouseEvent, item: GridsterItem) => void;
|
|
400
|
+
emptyCellContextMenuCallback?: (event: MouseEvent, item: GridsterItem) => void;
|
|
401
|
+
emptyCellDropCallback?: (event: DragEvent, item: GridsterItem) => void;
|
|
402
|
+
emptyCellDragCallback?: (event: MouseEvent, item: GridsterItem) => void;
|
|
403
|
+
emptyCellDragMaxCols?: number;
|
|
404
|
+
emptyCellDragMaxRows?: number;
|
|
405
|
+
ignoreMarginInRow?: boolean;
|
|
406
|
+
dirType?: dirTypes;
|
|
407
|
+
api?: {
|
|
408
|
+
resize?: () => void;
|
|
409
|
+
optionsChanged?: () => void;
|
|
410
|
+
getNextPossiblePosition?: (newItem: GridsterItem) => boolean;
|
|
411
|
+
getFirstPossiblePosition?: (item: GridsterItem) => GridsterItem;
|
|
412
|
+
getLastPossiblePosition?: (item: GridsterItem) => GridsterItem;
|
|
413
|
+
getCurrentRowHeight?: () => number;
|
|
414
|
+
getItemComponent?: (item: GridsterItem) => GridsterItemComponentInterface | undefined;
|
|
415
|
+
};
|
|
416
|
+
[propName: string]: any;
|
|
417
|
+
}
|
|
418
|
+
interface DragBase$1 {
|
|
419
|
+
enabled?: boolean;
|
|
420
|
+
stop?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface, event: MouseEvent) => Promise<any> | void;
|
|
421
|
+
start?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface, event: MouseEvent) => void;
|
|
422
|
+
delayStart?: number;
|
|
423
|
+
}
|
|
424
|
+
interface Draggable$1 extends DragBase$1 {
|
|
425
|
+
ignoreContentClass?: string;
|
|
426
|
+
ignoreContent?: boolean;
|
|
427
|
+
dragHandleClass?: string;
|
|
428
|
+
dropOverItems?: boolean;
|
|
429
|
+
dropOverItemsCallback?: (source: GridsterItem, target: GridsterItem, grid?: GridsterComponentInterface) => void;
|
|
430
|
+
}
|
|
431
|
+
interface Resizable$1 extends DragBase$1 {
|
|
432
|
+
handles?: {
|
|
433
|
+
s: boolean;
|
|
434
|
+
e: boolean;
|
|
435
|
+
n: boolean;
|
|
436
|
+
w: boolean;
|
|
437
|
+
se: boolean;
|
|
438
|
+
ne: boolean;
|
|
439
|
+
sw: boolean;
|
|
440
|
+
nw: boolean;
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
interface PushDirections$1 {
|
|
444
|
+
north: boolean;
|
|
445
|
+
east: boolean;
|
|
446
|
+
south: boolean;
|
|
447
|
+
west: boolean;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
interface GridsterConfigS {
|
|
451
|
+
gridType: gridTypes;
|
|
452
|
+
scale?: number;
|
|
453
|
+
fixedColWidth: number;
|
|
454
|
+
fixedRowHeight: number;
|
|
455
|
+
keepFixedHeightInMobile: boolean;
|
|
456
|
+
keepFixedWidthInMobile: boolean;
|
|
457
|
+
setGridSize: boolean;
|
|
458
|
+
compactType: compactTypes;
|
|
459
|
+
mobileBreakpoint: number;
|
|
460
|
+
useBodyForBreakpoint: boolean;
|
|
461
|
+
allowMultiLayer: boolean;
|
|
462
|
+
defaultLayerIndex: number;
|
|
463
|
+
maxLayerIndex: number;
|
|
464
|
+
baseLayerIndex: number;
|
|
465
|
+
minCols: number;
|
|
466
|
+
maxCols: number;
|
|
467
|
+
minRows: number;
|
|
468
|
+
maxRows: number;
|
|
469
|
+
defaultItemCols: number;
|
|
470
|
+
defaultItemRows: number;
|
|
471
|
+
maxItemCols: number;
|
|
472
|
+
maxItemRows: number;
|
|
473
|
+
minItemCols: number;
|
|
474
|
+
minItemRows: number;
|
|
475
|
+
minItemArea: number;
|
|
476
|
+
maxItemArea: number;
|
|
477
|
+
addEmptyRowsCount: number;
|
|
478
|
+
rowHeightRatio: number;
|
|
479
|
+
margin: number;
|
|
480
|
+
outerMargin: boolean;
|
|
481
|
+
outerMarginTop: number | null;
|
|
482
|
+
outerMarginRight: number | null;
|
|
483
|
+
outerMarginBottom: number | null;
|
|
484
|
+
outerMarginLeft: number | null;
|
|
485
|
+
useTransformPositioning: boolean;
|
|
486
|
+
scrollSensitivity: number;
|
|
487
|
+
scrollSpeed: number;
|
|
488
|
+
draggable: Draggable;
|
|
489
|
+
resizable: Resizable;
|
|
490
|
+
swap: boolean;
|
|
491
|
+
swapWhileDragging: boolean;
|
|
492
|
+
pushItems: boolean;
|
|
493
|
+
disablePushOnDrag: boolean;
|
|
494
|
+
disablePushOnResize: boolean;
|
|
495
|
+
disableAutoPositionOnConflict: boolean;
|
|
496
|
+
pushDirections: PushDirections;
|
|
497
|
+
pushResizeItems: boolean;
|
|
498
|
+
displayGrid: displayGrids;
|
|
499
|
+
disableWindowResize: boolean;
|
|
500
|
+
disableWarnings: boolean;
|
|
501
|
+
scrollToNewItems: boolean;
|
|
502
|
+
disableScrollHorizontal?: boolean;
|
|
503
|
+
disableScrollVertical?: boolean;
|
|
504
|
+
enableBoundaryControl?: boolean;
|
|
505
|
+
enableEmptyCellClick: boolean;
|
|
506
|
+
enableEmptyCellContextMenu: boolean;
|
|
507
|
+
enableEmptyCellDrop: boolean;
|
|
508
|
+
enableEmptyCellDrag: boolean;
|
|
509
|
+
enableOccupiedCellDrop: boolean;
|
|
510
|
+
emptyCellDragMaxCols: number;
|
|
511
|
+
emptyCellDragMaxRows: number;
|
|
512
|
+
ignoreMarginInRow: boolean;
|
|
513
|
+
dirType: dirTypes;
|
|
514
|
+
api: {
|
|
515
|
+
resize: () => void;
|
|
516
|
+
optionsChanged: () => void;
|
|
517
|
+
getNextPossiblePosition: (newItem: GridsterItem) => boolean;
|
|
518
|
+
getFirstPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
519
|
+
getLastPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
520
|
+
getItemComponent: (item: GridsterItem) => GridsterItemComponentInterface | undefined;
|
|
521
|
+
};
|
|
522
|
+
[propName: string]: any;
|
|
523
|
+
}
|
|
524
|
+
interface DragBase {
|
|
525
|
+
enabled: boolean;
|
|
526
|
+
delayStart: number;
|
|
527
|
+
[propName: string]: any;
|
|
528
|
+
}
|
|
529
|
+
interface Draggable extends DragBase {
|
|
530
|
+
ignoreContentClass: string;
|
|
531
|
+
ignoreContent: boolean;
|
|
532
|
+
dragHandleClass: string;
|
|
533
|
+
dropOverItems: boolean;
|
|
534
|
+
dropOverItemsCallback: (source: GridsterItem, target: GridsterItem, grid?: GridsterComponentInterface) => void;
|
|
535
|
+
}
|
|
536
|
+
interface Resizable extends DragBase {
|
|
537
|
+
handles: {
|
|
538
|
+
s: boolean;
|
|
539
|
+
e: boolean;
|
|
540
|
+
n: boolean;
|
|
541
|
+
w: boolean;
|
|
542
|
+
se: boolean;
|
|
543
|
+
ne: boolean;
|
|
544
|
+
sw: boolean;
|
|
545
|
+
nw: boolean;
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
interface PushDirections {
|
|
549
|
+
north: boolean;
|
|
550
|
+
east: boolean;
|
|
551
|
+
south: boolean;
|
|
552
|
+
west: boolean;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare class GridsterEmptyCell {
|
|
556
|
+
private gridster;
|
|
557
|
+
initialItem: GridsterItem | null;
|
|
558
|
+
removeEmptyCellClickListenerFn: (() => void) | null;
|
|
559
|
+
removeEmptyCellTouchendListenerFn: (() => void) | null;
|
|
560
|
+
removeEmptyCellContextMenuListenerFn: (() => void) | null;
|
|
561
|
+
removeEmptyCellDropListenerFn: (() => void) | null;
|
|
562
|
+
removeEmptyCellMousedownListenerFn: (() => void) | null;
|
|
563
|
+
removeEmptyCellTouchstartListenerFn: (() => void) | null;
|
|
564
|
+
removeWindowMousemoveListenerFn: () => void;
|
|
565
|
+
removeWindowTouchmoveListenerFn: () => void;
|
|
566
|
+
removeWindowMouseupListenerFn: () => void;
|
|
567
|
+
removeWindowTouchendListenerFn: () => void;
|
|
568
|
+
removeEmptyCellDragoverListenerFn: (() => void) | null;
|
|
569
|
+
removeDocumentDragendListenerFn: (() => void) | null;
|
|
570
|
+
constructor(gridster: GridsterComponentInterface);
|
|
571
|
+
destroy(): void;
|
|
572
|
+
updateOptions(): void;
|
|
573
|
+
emptyCellClickCb: (e: MouseEvent) => void;
|
|
574
|
+
emptyCellContextMenuCb: (e: MouseEvent) => void;
|
|
575
|
+
emptyCellDragDrop: (e: DragEvent) => void;
|
|
576
|
+
emptyCellDragOver: (e: DragEvent) => void;
|
|
577
|
+
emptyCellMouseDown: (e: MouseEvent) => void;
|
|
578
|
+
emptyCellMouseMove: (e: MouseEvent) => void;
|
|
579
|
+
emptyCellMouseUp: (e: MouseEvent) => void;
|
|
580
|
+
getPixelsX(e: MouseEvent, rect: ClientRect): number;
|
|
581
|
+
getPixelsY(e: MouseEvent, rect: ClientRect): number;
|
|
582
|
+
getValidItemFromEvent(e: MouseEvent, oldItem?: GridsterItem | null): GridsterItem | undefined;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
declare class GridsterCompact {
|
|
586
|
+
private gridster;
|
|
587
|
+
constructor(gridster: GridsterComponentInterface);
|
|
588
|
+
destroy(): void;
|
|
589
|
+
checkCompact(): void;
|
|
590
|
+
checkCompactItem(item: GridsterItem): void;
|
|
591
|
+
private checkCompactMovement;
|
|
592
|
+
private moveTillCollision;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
interface CommonGridStyle {
|
|
596
|
+
[key: string]: string;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
declare class GridsterRenderer {
|
|
600
|
+
private gridster;
|
|
601
|
+
/**
|
|
602
|
+
* Caches the last grid column styles.
|
|
603
|
+
* This improves the grid responsiveness by caching and reusing the last style object instead of creating a new one.
|
|
604
|
+
*/
|
|
605
|
+
private lastGridColumnStyles;
|
|
606
|
+
/**
|
|
607
|
+
* Caches the last grid column styles.
|
|
608
|
+
* This improves the grid responsiveness by caching and reusing the last style object instead of creating a new one.
|
|
609
|
+
*/
|
|
610
|
+
private lastGridRowStyles;
|
|
611
|
+
constructor(gridster: GridsterComponentInterface);
|
|
612
|
+
destroy(): void;
|
|
613
|
+
updateItem(el: Element, item: GridsterItem, renderer: Renderer2): void;
|
|
614
|
+
updateGridster(): void;
|
|
615
|
+
getGridColumnStyle(i: number): CommonGridStyle;
|
|
616
|
+
getGridRowStyle(i: number): CommonGridStyle;
|
|
617
|
+
getLeftPosition(d: number): {
|
|
618
|
+
left: string;
|
|
619
|
+
} | {
|
|
620
|
+
transform: string;
|
|
621
|
+
};
|
|
622
|
+
getTopPosition(d: number): {
|
|
623
|
+
top: string;
|
|
624
|
+
} | {
|
|
625
|
+
transform: string;
|
|
626
|
+
};
|
|
627
|
+
clearCellPosition(renderer: Renderer2, el: Element): void;
|
|
628
|
+
setCellPosition(renderer: Renderer2, el: Element, x: number, y: number): void;
|
|
629
|
+
getLeftMargin(): number;
|
|
630
|
+
getTopMargin(): number;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
declare abstract class GridsterComponentInterface {
|
|
634
|
+
$options: GridsterConfigS;
|
|
635
|
+
grid: GridsterItemComponentInterface[];
|
|
636
|
+
checkCollision: (item: GridsterItem) => GridsterItemComponentInterface | boolean;
|
|
637
|
+
checkCollisionForSwaping: (item: GridsterItem) => GridsterItemComponentInterface | boolean;
|
|
638
|
+
positionXToPixels: (x: number) => number;
|
|
639
|
+
pixelsToPositionX: (x: number, roundingMethod: (x: number) => number, noLimit?: boolean) => number;
|
|
640
|
+
positionYToPixels: (y: number) => number;
|
|
641
|
+
pixelsToPositionY: (y: number, roundingMethod: (x: number) => number, noLimit?: boolean) => number;
|
|
642
|
+
findItemWithItem: (item: GridsterItem) => GridsterItemComponentInterface | boolean;
|
|
643
|
+
findItemsWithItem: (item: GridsterItem) => GridsterItemComponentInterface[];
|
|
644
|
+
checkGridCollision: (item: GridsterItem) => boolean;
|
|
645
|
+
checkCollisionTwoItems: (item: GridsterItem, item2: GridsterItem) => boolean;
|
|
646
|
+
getItemComponent: (item: GridsterItem) => GridsterItemComponentInterface | undefined;
|
|
647
|
+
el: HTMLElement;
|
|
648
|
+
renderer: Renderer2;
|
|
649
|
+
gridRenderer: GridsterRenderer;
|
|
650
|
+
cdRef: ChangeDetectorRef;
|
|
651
|
+
options: GridsterConfig;
|
|
652
|
+
calculateLayout$: Subject<void>;
|
|
653
|
+
updateGrid: () => void;
|
|
654
|
+
movingItem: GridsterItem | null;
|
|
655
|
+
addItem: (item: GridsterItemComponentInterface) => void;
|
|
656
|
+
removeItem: (item: GridsterItemComponentInterface) => void;
|
|
657
|
+
previewStyle: (drag?: boolean) => void;
|
|
658
|
+
mobile: boolean;
|
|
659
|
+
curWidth: number;
|
|
660
|
+
curHeight: number;
|
|
661
|
+
columns: number;
|
|
662
|
+
rows: number;
|
|
663
|
+
curColWidth: number;
|
|
664
|
+
curRowHeight: number;
|
|
665
|
+
windowResize: (() => void) | null;
|
|
666
|
+
setGridDimensions: () => void;
|
|
667
|
+
dragInProgress: boolean;
|
|
668
|
+
emptyCell: GridsterEmptyCell;
|
|
669
|
+
compact: GridsterCompact;
|
|
670
|
+
zone: NgZone;
|
|
671
|
+
gridRows: Array<number>;
|
|
672
|
+
gridColumns: Array<number>;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
declare class GridsterComponent implements OnInit, OnChanges, OnDestroy, GridsterComponentInterface {
|
|
676
|
+
renderer: Renderer2;
|
|
677
|
+
cdRef: ChangeDetectorRef;
|
|
678
|
+
zone: NgZone;
|
|
679
|
+
options: GridsterConfig;
|
|
680
|
+
movingItem: GridsterItem | null;
|
|
681
|
+
el: HTMLElement;
|
|
682
|
+
$options: GridsterConfigS;
|
|
683
|
+
mobile: boolean;
|
|
684
|
+
curWidth: number;
|
|
685
|
+
curHeight: number;
|
|
686
|
+
grid: GridsterItemComponentInterface[];
|
|
687
|
+
columns: number;
|
|
688
|
+
rows: number;
|
|
689
|
+
curColWidth: number;
|
|
690
|
+
curRowHeight: number;
|
|
691
|
+
gridColumns: never[];
|
|
692
|
+
gridRows: never[];
|
|
693
|
+
windowResize: (() => void) | null;
|
|
694
|
+
dragInProgress: boolean;
|
|
695
|
+
emptyCell: GridsterEmptyCell;
|
|
696
|
+
compact: GridsterCompact;
|
|
697
|
+
gridRenderer: GridsterRenderer;
|
|
698
|
+
previewStyle$: EventEmitter<GridsterItem | null>;
|
|
699
|
+
calculateLayout$: Subject<void>;
|
|
700
|
+
private resize$;
|
|
701
|
+
private destroy$;
|
|
702
|
+
constructor(el: ElementRef, renderer: Renderer2, cdRef: ChangeDetectorRef, zone: NgZone);
|
|
703
|
+
static checkCollisionTwoItemsForSwaping(item: GridsterItem, item2: GridsterItem): boolean;
|
|
704
|
+
checkCollisionTwoItems(item: GridsterItem, item2: GridsterItem): boolean;
|
|
705
|
+
ngOnInit(): void;
|
|
706
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
707
|
+
getCurrentRowHeight(): number;
|
|
708
|
+
private resize;
|
|
709
|
+
setOptions(): void;
|
|
710
|
+
optionsChanged: () => void;
|
|
711
|
+
ngOnDestroy(): void;
|
|
712
|
+
onResize: () => void;
|
|
713
|
+
checkIfToResize(): boolean;
|
|
714
|
+
checkIfMobile(): boolean;
|
|
715
|
+
setGridSize(): void;
|
|
716
|
+
setGridDimensions(): void;
|
|
717
|
+
private calculateLayout;
|
|
718
|
+
updateGrid(): void;
|
|
719
|
+
addItem(itemComponent: GridsterItemComponentInterface): void;
|
|
720
|
+
removeItem(itemComponent: GridsterItemComponentInterface): void;
|
|
721
|
+
checkCollision(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
722
|
+
checkGridCollision(item: GridsterItem): boolean;
|
|
723
|
+
findItemWithItem(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
724
|
+
findItemsWithItem(item: GridsterItem): Array<GridsterItemComponentInterface>;
|
|
725
|
+
autoPositionItem(itemComponent: GridsterItemComponentInterface): void;
|
|
726
|
+
getNextPossiblePosition: (newItem: GridsterItem, startingFrom?: {
|
|
727
|
+
y?: number;
|
|
728
|
+
x?: number;
|
|
729
|
+
}) => boolean;
|
|
730
|
+
getFirstPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
731
|
+
getLastPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
732
|
+
pixelsToPositionX(x: number, roundingMethod: (x: number) => number, noLimit?: boolean): number;
|
|
733
|
+
pixelsToPositionY(y: number, roundingMethod: (x: number) => number, noLimit?: boolean): number;
|
|
734
|
+
positionXToPixels(x: number): number;
|
|
735
|
+
positionYToPixels(y: number): number;
|
|
736
|
+
getItemComponent(item: GridsterItem): GridsterItemComponentInterface | undefined;
|
|
737
|
+
checkCollisionForSwaping(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
738
|
+
findItemWithItemForSwapping(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
739
|
+
previewStyle(drag?: boolean): void;
|
|
740
|
+
private static getNewArrayLength;
|
|
741
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridsterComponent, never>;
|
|
742
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridsterComponent, "gridster", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
declare class GridsterItemComponent implements OnInit, OnDestroy, OnChanges, GridsterItemComponentInterface {
|
|
746
|
+
renderer: Renderer2;
|
|
747
|
+
private zone;
|
|
748
|
+
item: GridsterItem;
|
|
749
|
+
itemInit: EventEmitter<{
|
|
750
|
+
item: GridsterItem;
|
|
751
|
+
itemComponent: GridsterItemComponentInterface;
|
|
752
|
+
}>;
|
|
753
|
+
itemChange: EventEmitter<{
|
|
754
|
+
item: GridsterItem;
|
|
755
|
+
itemComponent: GridsterItemComponentInterface;
|
|
756
|
+
}>;
|
|
757
|
+
itemResize: EventEmitter<{
|
|
758
|
+
item: GridsterItem;
|
|
759
|
+
itemComponent: GridsterItemComponentInterface;
|
|
760
|
+
}>;
|
|
761
|
+
$item: GridsterItem;
|
|
762
|
+
el: HTMLElement;
|
|
763
|
+
gridster: GridsterComponent;
|
|
764
|
+
top: number;
|
|
765
|
+
left: number;
|
|
766
|
+
width: number;
|
|
767
|
+
height: number;
|
|
768
|
+
drag: GridsterDraggable;
|
|
769
|
+
resize: GridsterResizable;
|
|
770
|
+
notPlaced: boolean;
|
|
771
|
+
init: boolean;
|
|
772
|
+
get zIndex(): number;
|
|
773
|
+
constructor(el: ElementRef, gridster: GridsterComponent, renderer: Renderer2, zone: NgZone);
|
|
774
|
+
ngOnInit(): void;
|
|
775
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
776
|
+
updateOptions(): void;
|
|
777
|
+
ngOnDestroy(): void;
|
|
778
|
+
setSize(): void;
|
|
779
|
+
updateItemSize(): void;
|
|
780
|
+
itemChanged(): void;
|
|
781
|
+
checkItemChanges(newValue: GridsterItem, oldValue: GridsterItem): void;
|
|
782
|
+
canBeDragged(): boolean;
|
|
783
|
+
canBeResized(): boolean;
|
|
784
|
+
getResizableHandles(): {
|
|
785
|
+
s: boolean;
|
|
786
|
+
e: boolean;
|
|
787
|
+
n: boolean;
|
|
788
|
+
w: boolean;
|
|
789
|
+
se: boolean;
|
|
790
|
+
ne: boolean;
|
|
791
|
+
sw: boolean;
|
|
792
|
+
nw: boolean;
|
|
793
|
+
};
|
|
794
|
+
bringToFront(offset: number): void;
|
|
795
|
+
sendToBack(offset: number): void;
|
|
796
|
+
private getLayerIndex;
|
|
797
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridsterItemComponent, never>;
|
|
798
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridsterItemComponent, "gridster-item", never, { "item": { "alias": "item"; "required": false; }; }, { "itemInit": "itemInit"; "itemChange": "itemChange"; "itemResize": "itemResize"; }, never, ["*"], true, never>;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
declare class GridsterModule {
|
|
802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridsterModule, never>;
|
|
803
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GridsterModule, never, [typeof GridsterComponent, typeof GridsterItemComponent], [typeof GridsterComponent, typeof GridsterItemComponent]>;
|
|
804
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GridsterModule>;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
declare class RADashboardEventBus {
|
|
808
|
+
private eventQueue;
|
|
809
|
+
/**
|
|
810
|
+
* To emit an event with the name & data
|
|
811
|
+
*/
|
|
812
|
+
publish(eventName: string, data: any): void;
|
|
813
|
+
/**
|
|
814
|
+
* To emit an event with the name, data, key & value
|
|
815
|
+
*/
|
|
816
|
+
publishWithKey(eventName: string, data: any, key: string, value: string): void;
|
|
817
|
+
/**
|
|
818
|
+
* To subscribe to an event with the name
|
|
819
|
+
*/
|
|
820
|
+
subscribe(eventName: string): Observable<any>;
|
|
821
|
+
/**
|
|
822
|
+
* To subscribe to an event with the name key & value
|
|
823
|
+
*/
|
|
824
|
+
subscribeWithKey(eventName: string, key: string, value: string): Observable<any>;
|
|
825
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RADashboardEventBus, never>;
|
|
826
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RADashboardEventBus>;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
declare class RADashboardResponsiveService {
|
|
830
|
+
resized: Subject<unknown>;
|
|
831
|
+
maxColsDesktop: number;
|
|
832
|
+
private screenWidthAdjusted;
|
|
833
|
+
private screenWidth;
|
|
834
|
+
private resInfo;
|
|
835
|
+
private currentResInfo;
|
|
836
|
+
constructor();
|
|
837
|
+
private setScreenWidth;
|
|
838
|
+
get IsDesktopView(): boolean;
|
|
839
|
+
get IsMobile(): boolean;
|
|
840
|
+
getGridsterConfig(isWidgetMgmnt: boolean, resize: boolean, canMove: boolean): GridsterConfig;
|
|
841
|
+
/**To map IwidgetInfo object to gridsterItem */
|
|
842
|
+
getGridsterItem(widget: any): GridsterItem;
|
|
843
|
+
private getWidth;
|
|
844
|
+
private getMinItemRows;
|
|
845
|
+
private getMinItemCols;
|
|
846
|
+
private getHeight;
|
|
847
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RADashboardResponsiveService, never>;
|
|
848
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RADashboardResponsiveService>;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
declare class RADashboardArea implements OnInit, OnChanges, OnDestroy {
|
|
852
|
+
private dashboardService;
|
|
853
|
+
private ngZone;
|
|
854
|
+
private ngxService;
|
|
855
|
+
private translateService;
|
|
856
|
+
private notifier;
|
|
857
|
+
private cdr;
|
|
858
|
+
private responsiveService;
|
|
859
|
+
private permissionService;
|
|
860
|
+
widgetList: GridsterItem[];
|
|
861
|
+
options: GridsterConfig;
|
|
862
|
+
gridheight: number;
|
|
863
|
+
gridsterHeight: string;
|
|
864
|
+
gridcellHeight: number;
|
|
865
|
+
userWidgets: any[];
|
|
866
|
+
PAMWidgets: any;
|
|
867
|
+
private conifgAddClick;
|
|
868
|
+
private curatedFilterChange;
|
|
869
|
+
private bulkActionClick;
|
|
870
|
+
private calculateLayout;
|
|
871
|
+
private rearrangeWidgetClick;
|
|
872
|
+
private widgetDeleteEvent;
|
|
873
|
+
private widgetAddEvent;
|
|
874
|
+
private widgetLibraryDoneClick;
|
|
875
|
+
private isWidgetLoaded;
|
|
876
|
+
domResized: boolean;
|
|
877
|
+
showEmptyDashboard: boolean;
|
|
878
|
+
showDownloadOnlyState: boolean;
|
|
879
|
+
isWidgetMgmnt: boolean;
|
|
880
|
+
lastViewType: string;
|
|
881
|
+
emptyDashboardTitle: any;
|
|
882
|
+
emptyDashboardMsg1: any;
|
|
883
|
+
emptyDashboardMsg2: any;
|
|
884
|
+
emptyDashboardButtonText: any;
|
|
885
|
+
emptyDashboardButtonIcon: any;
|
|
886
|
+
DownloadOnlyStateTitle: any;
|
|
887
|
+
DownloadOnlyStateMsg1: any;
|
|
888
|
+
DownloadOnlyStateMsg2: any;
|
|
889
|
+
DownloadOnlyStateButtonText1: any;
|
|
890
|
+
DownloadOnlyStateButtonIcon1: any;
|
|
891
|
+
DownloadOnlyStateButtonText2: any;
|
|
892
|
+
DownloadOnlyStateButtonIcon2: any;
|
|
893
|
+
emptyDashboardButtonAction: any;
|
|
894
|
+
DownloadOnlyStateButtonAction1: any;
|
|
895
|
+
DownloadOnlyStateButtonAction2: any;
|
|
896
|
+
hasGird: boolean;
|
|
897
|
+
private initialWidgetCount;
|
|
898
|
+
private currentLoadingCount;
|
|
899
|
+
userDashboardId: number;
|
|
900
|
+
areaKey: string;
|
|
901
|
+
downloadDatastreamLimit: any;
|
|
902
|
+
reportDatastreamLimit: any;
|
|
903
|
+
globalFilter: any;
|
|
904
|
+
raDashboardEventBus: RADashboardEventBus;
|
|
905
|
+
widgetHeight: number;
|
|
906
|
+
widgetWidth: number;
|
|
907
|
+
appConfig: IAppConfig;
|
|
908
|
+
dashboardInfo: IDashboardInfo;
|
|
909
|
+
isIndicatorDashboard: boolean;
|
|
910
|
+
templateConfig: any;
|
|
911
|
+
bulkActionData: IBulkAction;
|
|
912
|
+
hideDashboardBanner: EventEmitter<any>;
|
|
913
|
+
gridWrapper: ElementRef;
|
|
914
|
+
private scrollTrigger;
|
|
915
|
+
gridItem: any;
|
|
916
|
+
constructor(dashboardService: RaDashboardService, ngZone: NgZone, ngxService: NgxUiLoaderService, translateService: RATranslateService, notifier: NotifierService, cdr: ChangeDetectorRef, responsiveService: RADashboardResponsiveService, permissionService: RAPermissionService);
|
|
917
|
+
scroll(): void;
|
|
918
|
+
ngOnInit(): void;
|
|
919
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
920
|
+
ngAfterViewChecked(): void;
|
|
921
|
+
setEmptyDashboardConfig(): void;
|
|
922
|
+
setDownloadOnlyStateConfig(): void;
|
|
923
|
+
/**To set GridsterConfig */
|
|
924
|
+
initiateGridsterConfig(): void;
|
|
925
|
+
widgetLoaded(widgetElement: any, widget: any): void;
|
|
926
|
+
private loadData;
|
|
927
|
+
changeInitialWidgetCount(): void;
|
|
928
|
+
dataLoaded(widgetInfo: any): void;
|
|
929
|
+
private isElementLoaded;
|
|
930
|
+
private loadWidgetWrappers;
|
|
931
|
+
/** To initiate eventbus subsctiptions */
|
|
932
|
+
inititateEventBusSubscritions(): void;
|
|
933
|
+
/**
|
|
934
|
+
* temp fix- recursive method to iterate over the list of items
|
|
935
|
+
* and add them to gridster in the given order
|
|
936
|
+
* @param widgetList -list of widgets
|
|
937
|
+
* @param index -index of the current value to be added
|
|
938
|
+
*/
|
|
939
|
+
addWidgetListToGridster(widgetList: any, index: number): void;
|
|
940
|
+
ngOnDestroy(): void;
|
|
941
|
+
/**To update position/dimention of all widgets in the area */
|
|
942
|
+
updateWidgets(): boolean;
|
|
943
|
+
/**To update widget dimensions */
|
|
944
|
+
updateWidgetPosition(widgetInstanceId: number): boolean;
|
|
945
|
+
/**To restrict request payload to be of min size (position & size details) */
|
|
946
|
+
formatWidgetDataForPositionDetails(widgetItemList: IWidgetInfo[]): any;
|
|
947
|
+
/** To retrieve widgets based on userDashboardid and area name */
|
|
948
|
+
loadWidgets(userDashboarId: number, areaKey: string): void;
|
|
949
|
+
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|
|
950
|
+
setAreaHeight(): void;
|
|
951
|
+
/** To remove a widget instance from dashboard and to save info in database */
|
|
952
|
+
deleteWidget(widgetInstanceId: any, isalertDisabled?: boolean): void;
|
|
953
|
+
/**To rearrange widgets position in the dashboard, compactLeft&Up,compactLeft,compactUp,etc*/
|
|
954
|
+
rearrangeWidgets(): void;
|
|
955
|
+
/**To add widget instance to the database with the next available position and to make changes in
|
|
956
|
+
* dashboard area.
|
|
957
|
+
*/
|
|
958
|
+
addWidget(data: any): void;
|
|
959
|
+
private setPositions;
|
|
960
|
+
/** To add widget to current widget list ,invoked from copy widget window*/
|
|
961
|
+
copyWidget(data: any): void;
|
|
962
|
+
mapObjectListToGridsterItemList(widgetList: Array<IWidgetInfo>): GridsterItem[];
|
|
963
|
+
mapGridsterItemToObject(widgetItem: GridsterItem): IWidgetInfo;
|
|
964
|
+
mapGridsterListToObject(widgetItemList: Array<GridsterItem>): IWidgetInfo[];
|
|
965
|
+
buttonClick(): void;
|
|
966
|
+
buttonActionClick(action: any): void;
|
|
967
|
+
updateAppliedFilters(data: any): void;
|
|
968
|
+
checkPAMWidgets(): void;
|
|
969
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RADashboardArea, never>;
|
|
970
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RADashboardArea, "ra-dashboard-area", never, { "userDashboardId": { "alias": "user-dashboard-id"; "required": false; }; "areaKey": { "alias": "area-key"; "required": false; }; "downloadDatastreamLimit": { "alias": "download-datastream-limit"; "required": false; }; "reportDatastreamLimit": { "alias": "report-datastream-limit"; "required": false; }; "globalFilter": { "alias": "global-filter"; "required": false; }; "raDashboardEventBus": { "alias": "event-bus"; "required": false; }; "widgetHeight": { "alias": "widget-height"; "required": false; }; "widgetWidth": { "alias": "widget-width"; "required": false; }; "appConfig": { "alias": "app-config"; "required": false; }; "dashboardInfo": { "alias": "dashboard-info"; "required": false; }; "isIndicatorDashboard": { "alias": "isIndicatorDashboard"; "required": false; }; "templateConfig": { "alias": "templateConfig"; "required": false; }; "bulkActionData": { "alias": "bulk_Action_Data"; "required": false; }; }, { "hideDashboardBanner": "hideDashboardBanner"; }, never, never, false, never>;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
declare class LockTooltip implements OnInit {
|
|
974
|
+
private domService;
|
|
975
|
+
element: any;
|
|
976
|
+
title: any;
|
|
977
|
+
data: any;
|
|
978
|
+
footer: any;
|
|
979
|
+
template: any;
|
|
980
|
+
containerLeft: any;
|
|
981
|
+
containerTop: any;
|
|
982
|
+
containerBottom: any;
|
|
983
|
+
constructor(domService: DomService);
|
|
984
|
+
ngOnInit(): void;
|
|
985
|
+
private setPopupPosition;
|
|
986
|
+
removeMe(comp: any): void;
|
|
987
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LockTooltip, never>;
|
|
988
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LockTooltip, "ra-lock-tooltip", never, {}, {}, never, never, false, never>;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
declare class RAWidgetContainer implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
992
|
+
private dashboardService;
|
|
993
|
+
private ngxService;
|
|
994
|
+
private translateService;
|
|
995
|
+
private ngZone;
|
|
996
|
+
private notifier;
|
|
997
|
+
private renderer;
|
|
998
|
+
private cdr;
|
|
999
|
+
private raPermissionService;
|
|
1000
|
+
private domService;
|
|
1001
|
+
showPanel: boolean;
|
|
1002
|
+
private isWidgetLoaded;
|
|
1003
|
+
private widgetElement;
|
|
1004
|
+
private configChanged;
|
|
1005
|
+
widgetHeight: number;
|
|
1006
|
+
lockClass: string;
|
|
1007
|
+
lockStatus: RaWidgetlockStatus;
|
|
1008
|
+
isDownloadIconVisible: boolean;
|
|
1009
|
+
isChartDownloadVisible: boolean;
|
|
1010
|
+
isGridDownloadVisible: boolean;
|
|
1011
|
+
downloadIconType: RADownloadType;
|
|
1012
|
+
enableTitleLine: boolean;
|
|
1013
|
+
isGlobalFilterApplied: boolean;
|
|
1014
|
+
toolTipValue: string;
|
|
1015
|
+
toolTipWidth: string;
|
|
1016
|
+
lockDetails: any;
|
|
1017
|
+
hideLock: boolean;
|
|
1018
|
+
lockTemplateInfo: TemplateRef<any>;
|
|
1019
|
+
editToolTipValue: string;
|
|
1020
|
+
copyToolTipValue: string;
|
|
1021
|
+
moveToolTipValue: string;
|
|
1022
|
+
excelToolTipValue: string;
|
|
1023
|
+
deleteToolTipValue: string;
|
|
1024
|
+
editText: string;
|
|
1025
|
+
copyText: string;
|
|
1026
|
+
moveText: string;
|
|
1027
|
+
excelText: string;
|
|
1028
|
+
deleteText: string;
|
|
1029
|
+
editToolTipWidth: string;
|
|
1030
|
+
copyToolTipWidth: string;
|
|
1031
|
+
moveToolTipWidth: string;
|
|
1032
|
+
excelToolTipWidth: string;
|
|
1033
|
+
deleteToolTipWidth: string;
|
|
1034
|
+
widgetSettings: any;
|
|
1035
|
+
noPadding: boolean;
|
|
1036
|
+
isMouseHover: boolean;
|
|
1037
|
+
showSettingsLink: boolean;
|
|
1038
|
+
isKpiView: boolean;
|
|
1039
|
+
showExcell: boolean;
|
|
1040
|
+
hideTitle: boolean;
|
|
1041
|
+
inapplicableFilters: any;
|
|
1042
|
+
popupInstance: LockTooltip;
|
|
1043
|
+
currentComponent: any;
|
|
1044
|
+
lockIconTitle: any;
|
|
1045
|
+
lockIconFooter: any;
|
|
1046
|
+
inapplicableIconTitle: any;
|
|
1047
|
+
inapplicableIconFooter: any;
|
|
1048
|
+
isCustomElement: any;
|
|
1049
|
+
showOnlyDropdown: boolean;
|
|
1050
|
+
ctlWidget: ElementRef;
|
|
1051
|
+
ctlWidgetModule: ViewContainerRef;
|
|
1052
|
+
widgetDropdown: ElementRef;
|
|
1053
|
+
searchInput: ElementRef;
|
|
1054
|
+
wcWrapper: ElementRef;
|
|
1055
|
+
banPopupDiv: ElementRef;
|
|
1056
|
+
lockPopupDiv: ElementRef;
|
|
1057
|
+
widgetInstanceId: number;
|
|
1058
|
+
globalFilter: any;
|
|
1059
|
+
dashboardInfo: IDashboardInfo;
|
|
1060
|
+
data: any;
|
|
1061
|
+
raDashboardEventBus: RADashboardEventBus;
|
|
1062
|
+
appConfig: IAppConfig;
|
|
1063
|
+
width: number;
|
|
1064
|
+
height: number;
|
|
1065
|
+
gridCellHeight: number;
|
|
1066
|
+
bulkActionData: IBulkAction;
|
|
1067
|
+
canLoadData: boolean;
|
|
1068
|
+
widgetDeleted: EventEmitter<string>;
|
|
1069
|
+
updateAppliedFilters: EventEmitter<any>;
|
|
1070
|
+
lockTitle: string;
|
|
1071
|
+
dataLoaded: EventEmitter<any>;
|
|
1072
|
+
widgetLoaded: EventEmitter<any>;
|
|
1073
|
+
isWidgetStateApplicable: boolean;
|
|
1074
|
+
isWidgetCanMove: boolean;
|
|
1075
|
+
widgetEmptyState: string;
|
|
1076
|
+
domResized: boolean;
|
|
1077
|
+
lockVisible: boolean;
|
|
1078
|
+
lockedFields: any;
|
|
1079
|
+
detailPageUrl: string;
|
|
1080
|
+
baseUrl: string;
|
|
1081
|
+
isWidgetMgmnt: boolean;
|
|
1082
|
+
WidgetDisplayName: string;
|
|
1083
|
+
enableTitleLineActual: boolean;
|
|
1084
|
+
widgetElementHandler: any;
|
|
1085
|
+
set setResized(resized: boolean);
|
|
1086
|
+
constructor(dashboardService: RaDashboardService, ngxService: NgxUiLoaderService, translateService: RATranslateService, ngZone: NgZone, notifier: NotifierService, renderer: Renderer2, cdr: ChangeDetectorRef, raPermissionService: RAPermissionService, domService: DomService);
|
|
1087
|
+
ngOnInit(): void;
|
|
1088
|
+
get widgetViewState(): typeof WidgetViewState;
|
|
1089
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1090
|
+
invokeWidgetResizedEvent(): void;
|
|
1091
|
+
mouseHover(isHover?: boolean): void;
|
|
1092
|
+
ngAfterViewInit(): void;
|
|
1093
|
+
ngOnDestroy(): void;
|
|
1094
|
+
/** To Edit current widget configuration*/
|
|
1095
|
+
editWidget(): void;
|
|
1096
|
+
/** To Delete current widget from DOM*/
|
|
1097
|
+
deleteWidget(): void;
|
|
1098
|
+
/** To Move or change position if current widget container*/
|
|
1099
|
+
moveWidget(): void;
|
|
1100
|
+
/** To Copy Current widget with same configuration*/
|
|
1101
|
+
copyWidget(): void;
|
|
1102
|
+
visitPage(): void;
|
|
1103
|
+
getHostUrl(): string;
|
|
1104
|
+
configChangeEventHandler(widgetInfo: any): void;
|
|
1105
|
+
private generateConfigFilter;
|
|
1106
|
+
/** To load external custom element to the widget container*/
|
|
1107
|
+
loadWidget(widgetInfo: any): Promise<void>;
|
|
1108
|
+
/**To set Default State for the widget when it is not configured */
|
|
1109
|
+
setNotConfiguredState(widgetInfo: IWidgetInfo, forceEnable?: boolean): void;
|
|
1110
|
+
/**To configure empty state for the widget */
|
|
1111
|
+
setEmptyState(widgetState: any): void;
|
|
1112
|
+
getConfigChanges(configChanged?: boolean): IconfigChanges;
|
|
1113
|
+
/** To refresh widget on input config changes */
|
|
1114
|
+
refreshWidget(widgetInfo: IWidgetInfo, configChanged?: boolean): Promise<void>;
|
|
1115
|
+
mouseOver(event: any): void;
|
|
1116
|
+
private setLock;
|
|
1117
|
+
setDownloadIcon(): Promise<void>;
|
|
1118
|
+
downloadIconClicked(type: string): void;
|
|
1119
|
+
private removeMenu;
|
|
1120
|
+
private checkVisitLinkVisiblity;
|
|
1121
|
+
/**Show dropdown on gear icon click */
|
|
1122
|
+
showDropDown(e: any): void;
|
|
1123
|
+
private addEventListener;
|
|
1124
|
+
private getContenxtHtml;
|
|
1125
|
+
private getHr;
|
|
1126
|
+
private getHtmlForButton;
|
|
1127
|
+
private getParsedConfig;
|
|
1128
|
+
private applayWidgetSettings;
|
|
1129
|
+
private setInapplicableFilters;
|
|
1130
|
+
openPopup(title: any, data: any, footer: any, type: any, template?: any): void;
|
|
1131
|
+
closePopup(): void;
|
|
1132
|
+
getwidgetTitleTranslation(item: any): any;
|
|
1133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RAWidgetContainer, never>;
|
|
1134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RAWidgetContainer, "ra-widget-container", never, { "widgetInstanceId": { "alias": "widget-instance-id"; "required": false; }; "globalFilter": { "alias": "global-filter"; "required": false; }; "dashboardInfo": { "alias": "dashboard-info"; "required": false; }; "data": { "alias": "data"; "required": false; }; "raDashboardEventBus": { "alias": "event-bus"; "required": false; }; "appConfig": { "alias": "app-config"; "required": false; }; "width": { "alias": "widget-width"; "required": false; }; "height": { "alias": "widget-height"; "required": false; }; "gridCellHeight": { "alias": "grid-cell-height"; "required": false; }; "bulkActionData": { "alias": "bulk-action-data"; "required": false; }; "canLoadData": { "alias": "canLoadData"; "required": false; }; "setResized": { "alias": "dom-resized"; "required": false; }; }, { "widgetDeleted": "widgetDeleted"; "updateAppliedFilters": "updateAppliedFilters"; "dataLoaded": "dataLoaded"; "widgetLoaded": "widgetLoaded"; }, never, never, false, never>;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
declare class DashboardFrameworkModule {
|
|
1138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardFrameworkModule, never>;
|
|
1139
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardFrameworkModule, [typeof RADashboardArea, typeof RAWidgetContainer, typeof LockTooltip], [typeof i4.CommonModule, typeof GridsterModule, typeof i6.HttpClientModule, typeof i7.NgxUiLoaderModule, typeof i8.NotifierModule, typeof i9.RACommonModule, typeof i10.RACommonControlsModule], [typeof RADashboardArea]>;
|
|
1140
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DashboardFrameworkModule>;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
declare enum RAEvent {
|
|
1144
|
+
/** widget selection click on widget library */
|
|
1145
|
+
WidgetSelected = "widgetSelected",
|
|
1146
|
+
/** triggers when user click on the edit link in widget container */
|
|
1147
|
+
WidgetEditClicked = "widgetEditClicked",
|
|
1148
|
+
/** triggers when user clicks the cancel button on widget configuration window */
|
|
1149
|
+
ConfigCancelClick = "configCancelClick",
|
|
1150
|
+
/** triggers when user click on the close button on widget configuration window */
|
|
1151
|
+
ConfigCloseClick = "configCloseClick",
|
|
1152
|
+
/** add button click on widget configuration window */
|
|
1153
|
+
ConfigAddClick = "configAddClick",
|
|
1154
|
+
/** triggers when a user click on the save button in widget configuration window */
|
|
1155
|
+
ConfigChanged = "configChanged",
|
|
1156
|
+
/**To rearrange widgets in a dashboard */
|
|
1157
|
+
RearrangeClicked = "rearrangeClicked",
|
|
1158
|
+
/**dashboard customize button click */
|
|
1159
|
+
DashboardCustomizeClick = "dashboardCustomizeClick",
|
|
1160
|
+
/**triggers when user clicks on the dashboard change icon in header section */
|
|
1161
|
+
DashboardChanged = "dashboardChanged",
|
|
1162
|
+
/** triggers when user clicks the close button on library */
|
|
1163
|
+
WidgetLibraryCloseBtnClicked = "WidgetLibraryCloseBtnClicked",
|
|
1164
|
+
/** triggers when user clicks on view dashboard*/
|
|
1165
|
+
LoadDashboard = "LoadDashboard",
|
|
1166
|
+
/** triggers when user clicks on copywidget */
|
|
1167
|
+
CopyWidget = "CopyWidget",
|
|
1168
|
+
/**triggers when user clicks on Move widget */
|
|
1169
|
+
MoveWidget = "MoveWidget",
|
|
1170
|
+
/**triggers when user raise delete widget event */
|
|
1171
|
+
WidgetDelete = "WidgetDelete",
|
|
1172
|
+
/** used to add widget to widgetlist when user copies a widget to current dashboard */
|
|
1173
|
+
AddWidget = "AddWidget",
|
|
1174
|
+
/** done button click on widget library flyout */
|
|
1175
|
+
widgetLibraryDoneClick = "widgetLibraryDoneClick",
|
|
1176
|
+
/**refresh favorite icon after srtting and resetting favorites */
|
|
1177
|
+
favoriteIconRefresh = "favoriteIconRefresh",
|
|
1178
|
+
/**to refresh menu content */
|
|
1179
|
+
QuickLinkRefresh = "QuickLinkRefresh",
|
|
1180
|
+
/**To raise widget added event */
|
|
1181
|
+
WidgetAdded = "WidgetAdded",
|
|
1182
|
+
/**To update global filter site from map widget selected site */
|
|
1183
|
+
UpdateGlobalFilterFromMapWidget = "UpdateGlobalFilterFromMapWidget",
|
|
1184
|
+
/**To add widget on empty dashboard */
|
|
1185
|
+
AddWidgetEmptyDashboard = "AddWidgetEmptyDashboard",
|
|
1186
|
+
/**To raise new widget add click event */
|
|
1187
|
+
AddNewWidgetToDashboard = "AddNewWidgetToDashboard",
|
|
1188
|
+
HideDashboardBanner = "HideDashboardBanner",
|
|
1189
|
+
/**To launch flyout from custom widget library */
|
|
1190
|
+
LaunchCustomWidgetFlyout = "LaunchCustomWidgetFlyout",
|
|
1191
|
+
/**update applied filter badge for inaplicable filters */
|
|
1192
|
+
UpdateAppledFiterForInapplicableFilter = "UpdateAppledFiterForInapplicableFilter",
|
|
1193
|
+
/**show inapplicable filter message in global filter flyout */
|
|
1194
|
+
ShowInapplicableFilterMessage = "ShowInapplicableFilterMessage",
|
|
1195
|
+
/** Bulk Action Clicked */
|
|
1196
|
+
BulkActionClick = "BulkActionClick",
|
|
1197
|
+
/** Global Filter Clicked */
|
|
1198
|
+
/** When user change the curated filter(eg:data streams), system will create/delete widgets */
|
|
1199
|
+
CuratedFilterChange = "CuratedFilterChange",
|
|
1200
|
+
GlobalFilterClick = "GlobalFilterClick",
|
|
1201
|
+
LayoutChange = "LayoutChange",
|
|
1202
|
+
/** Event raised when DownloadOnlyState is activated */
|
|
1203
|
+
DownloadOnlyState = "DownloadOnlyState",
|
|
1204
|
+
/** Event on excel download button clicked*/
|
|
1205
|
+
DownloadExcelClick = "DownloadExcelClick",
|
|
1206
|
+
/** Event on emission report snapshot button clicked*/
|
|
1207
|
+
SnapShotClick = "SnapShotClick",
|
|
1208
|
+
/** Event on emission report snapshot selected from list*/
|
|
1209
|
+
SnapShotSelected = "SnapShotSelected"
|
|
1210
|
+
}
|
|
1211
|
+
declare enum RAEventKey {
|
|
1212
|
+
/** on edit widget click */
|
|
1213
|
+
WidgetInstanceId = "widgetInstanceId"
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
declare abstract class RaBaseDashboardTemplate {
|
|
1217
|
+
private ngZone;
|
|
1218
|
+
userDashboardId: number;
|
|
1219
|
+
raDashboardEventBus: RADashboardEventBus;
|
|
1220
|
+
appConfig: IAppConfig;
|
|
1221
|
+
dashboardInfo: IDashboardInfo;
|
|
1222
|
+
isIndicatorDashboard: boolean;
|
|
1223
|
+
templateConfig: any;
|
|
1224
|
+
dashboardId: number;
|
|
1225
|
+
globalFilter: any;
|
|
1226
|
+
downloadDatastreamLimit: any;
|
|
1227
|
+
reportDatastreamLimit: any;
|
|
1228
|
+
bulkActionData: any;
|
|
1229
|
+
constructor(ngZone: NgZone);
|
|
1230
|
+
initialize: (eventBus: RADashboardEventBus, userDashboardId: number, appConfig: IAppConfig, dashboardInfo: IDashboardInfo, isIndicatorDashboard: boolean, templateConfig?: any) => void;
|
|
1231
|
+
abstract init(): void;
|
|
1232
|
+
ngOnInit(): void;
|
|
1233
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RaBaseDashboardTemplate, never>;
|
|
1234
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RaBaseDashboardTemplate, never, never, { "dashboardId": { "alias": "dashboard-id"; "required": false; }; "globalFilter": { "alias": "global-filter"; "required": false; }; "downloadDatastreamLimit": { "alias": "download-datastream-limit"; "required": false; }; "reportDatastreamLimit": { "alias": "report-datastream-limit"; "required": false; }; "bulkActionData": { "alias": "bulk_Action_Data"; "required": false; }; "initialize": { "alias": "initialize"; "required": false; }; }, {}, never, never, true, never>;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
declare abstract class RaBaseDashboardFilter {
|
|
1238
|
+
abstract getFilterConfig(): any;
|
|
1239
|
+
abstract setFilterConfig(filter: string, appConfig: IAppConfig): any;
|
|
1240
|
+
abstract clearData(): void;
|
|
1241
|
+
abstract isValid(): boolean;
|
|
1242
|
+
abstract showHideInapplicableMsg(status: boolean): any;
|
|
1243
|
+
abstract showDateRangeControl(isIndicatorDashboard: boolean): any;
|
|
1244
|
+
private getAllFilterConfig;
|
|
1245
|
+
setInapplicableFilterMsg: (status: boolean) => void;
|
|
1246
|
+
isValidEntry: () => boolean;
|
|
1247
|
+
clearAllData: () => void;
|
|
1248
|
+
setAllFilterConfig: (globalFilter: string, appConfig: IAppConfig) => void;
|
|
1249
|
+
showOnlyDateRangeControl: (isIndicatorDashboard: boolean) => void;
|
|
1250
|
+
ngOnInit(): void;
|
|
1251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RaBaseDashboardFilter, never>;
|
|
1252
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RaBaseDashboardFilter, never, never, { "getAllFilterConfig": { "alias": "getAllFilterConfig"; "required": false; }; "setInapplicableFilterMsg": { "alias": "setInapplicableFilterMsg"; "required": false; }; "isValidEntry": { "alias": "isValidEntry"; "required": false; }; "clearAllData": { "alias": "clearAllData"; "required": false; }; "setAllFilterConfig": { "alias": "setAllFilterConfig"; "required": false; }; "showOnlyDateRangeControl": { "alias": "showOnlyDateRangeControl"; "required": false; }; }, {}, never, never, true, never>;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
export { DashboardFrameworkModule, RADashboardArea, RADashboardEventBus, RADashboardResponsiveService, RAEvent, RAEventKey, RAWidgetContainer, RaBaseDashboardFilter, RaBaseDashboardTemplate, RaDashboardService };
|