@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.
- package/README.md +24 -24
- package/bundles/schneideress-dashboardframework.umd.js +7061 -7033
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/gridster/index.js +19 -18
- package/esm2015/gridster/lib/gridster.component.js +701 -700
- package/esm2015/gridster/lib/gridster.interface.js +85 -84
- package/esm2015/gridster/lib/gridster.module.js +28 -27
- package/esm2015/gridster/lib/gridsterCompact.service.js +224 -223
- package/esm2015/gridster/lib/gridsterConfig.constant.js +180 -179
- package/esm2015/gridster/lib/gridsterConfig.interface.js +220 -219
- package/esm2015/gridster/lib/gridsterConfigS.interface.js +162 -161
- package/esm2015/gridster/lib/gridsterDraggable.service.js +511 -510
- package/esm2015/gridster/lib/gridsterEmptyCell.service.js +318 -317
- package/esm2015/gridster/lib/gridsterItem.component.js +214 -213
- package/esm2015/gridster/lib/gridsterItem.interface.js +47 -46
- package/esm2015/gridster/lib/gridsterItemComponent.interface.js +49 -48
- package/esm2015/gridster/lib/gridsterPreview.component.js +67 -66
- package/esm2015/gridster/lib/gridsterPush.service.js +468 -467
- package/esm2015/gridster/lib/gridsterPushResize.service.js +359 -358
- package/esm2015/gridster/lib/gridsterRenderer.service.js +278 -277
- package/esm2015/gridster/lib/gridsterResizable.service.js +553 -552
- package/esm2015/gridster/lib/gridsterResizeEventType.interface.js +20 -19
- package/esm2015/gridster/lib/gridsterScroll.service.js +196 -195
- package/esm2015/gridster/lib/gridsterSwap.service.js +135 -134
- package/esm2015/gridster/lib/gridsterUtils.service.js +138 -137
- package/esm2015/lib/custom.notifier.options.js +47 -46
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +497 -496
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +472 -471
- package/esm2015/lib/ra.base.dashboard.filter.js +76 -75
- package/esm2015/lib/ra.base.dashboard.template.js +72 -71
- package/esm2015/lib/ra.dashbard.event.bus.js +86 -85
- package/esm2015/lib/ra.dashboard.module.js +52 -51
- package/esm2015/lib/ra.dashboard.service.js +145 -144
- package/esm2015/lib/ra.event.enum.js +52 -51
- package/esm2015/lib/ra.gridster.config.js +68 -67
- package/esm2015/public-api.js +17 -16
- package/esm2015/schneideress-dashboardframework.js +15 -14
- package/esm5/gridster/index.js +19 -18
- package/esm5/gridster/lib/gridster.component.js +804 -803
- package/esm5/gridster/lib/gridster.interface.js +95 -94
- package/esm5/gridster/lib/gridster.module.js +32 -31
- package/esm5/gridster/lib/gridsterCompact.service.js +254 -253
- package/esm5/gridster/lib/gridsterConfig.constant.js +180 -179
- package/esm5/gridster/lib/gridsterConfig.interface.js +220 -219
- package/esm5/gridster/lib/gridsterConfigS.interface.js +162 -161
- package/esm5/gridster/lib/gridsterDraggable.service.js +550 -549
- package/esm5/gridster/lib/gridsterEmptyCell.service.js +359 -358
- package/esm5/gridster/lib/gridsterItem.component.js +239 -238
- package/esm5/gridster/lib/gridsterItem.interface.js +47 -46
- package/esm5/gridster/lib/gridsterItemComponent.interface.js +59 -58
- package/esm5/gridster/lib/gridsterPreview.component.js +71 -70
- package/esm5/gridster/lib/gridsterPush.service.js +548 -547
- package/esm5/gridster/lib/gridsterPushResize.service.js +424 -423
- package/esm5/gridster/lib/gridsterRenderer.service.js +324 -323
- package/esm5/gridster/lib/gridsterResizable.service.js +630 -629
- package/esm5/gridster/lib/gridsterResizeEventType.interface.js +20 -19
- package/esm5/gridster/lib/gridsterScroll.service.js +196 -195
- package/esm5/gridster/lib/gridsterSwap.service.js +153 -152
- package/esm5/gridster/lib/gridsterUtils.service.js +178 -177
- package/esm5/lib/custom.notifier.options.js +47 -46
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +589 -588
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +585 -584
- package/esm5/lib/ra.base.dashboard.filter.js +82 -81
- package/esm5/lib/ra.base.dashboard.template.js +75 -74
- package/esm5/lib/ra.dashbard.event.bus.js +126 -125
- package/esm5/lib/ra.dashboard.module.js +56 -55
- package/esm5/lib/ra.dashboard.service.js +222 -221
- package/esm5/lib/ra.event.enum.js +52 -51
- package/esm5/lib/ra.gridster.config.js +68 -67
- package/esm5/public-api.js +17 -16
- package/esm5/schneideress-dashboardframework.js +15 -14
- package/fesm2015/schneideress-dashboardframework.js +6147 -6117
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +7044 -7014
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/gridster/index.d.ts +11 -11
- package/gridster/lib/gridster.component.d.ts +67 -67
- package/gridster/lib/gridster.interface.d.ts +46 -46
- package/gridster/lib/gridster.module.d.ts +2 -2
- package/gridster/lib/gridsterCompact.service.d.ts +15 -15
- package/gridster/lib/gridsterConfig.constant.d.ts +2 -2
- package/gridster/lib/gridsterConfig.interface.d.ts +133 -133
- package/gridster/lib/gridsterConfigS.interface.d.ts +93 -93
- package/gridster/lib/gridsterDraggable.service.d.ts +59 -59
- package/gridster/lib/gridsterEmptyCell.service.d.ts +29 -29
- package/gridster/lib/gridsterItem.component.d.ts +32 -32
- package/gridster/lib/gridsterItem.interface.d.ts +21 -21
- package/gridster/lib/gridsterItemComponent.interface.d.ts +25 -25
- package/gridster/lib/gridsterPreview.component.d.ts +10 -10
- package/gridster/lib/gridsterPush.service.d.ts +33 -33
- package/gridster/lib/gridsterPushResize.service.d.ts +26 -26
- package/gridster/lib/gridsterRenderer.service.d.ts +38 -38
- package/gridster/lib/gridsterResizable.service.d.ts +67 -67
- package/gridster/lib/gridsterResizeEventType.interface.d.ts +6 -6
- package/gridster/lib/gridsterScroll.service.d.ts +4 -4
- package/gridster/lib/gridsterSwap.service.d.ts +13 -13
- package/gridster/lib/gridsterUtils.service.d.ts +16 -16
- package/lib/custom.notifier.options.d.ts +2 -2
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +64 -64
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +64 -64
- package/lib/ra.base.dashboard.filter.d.ts +10 -10
- package/lib/ra.base.dashboard.template.d.ts +15 -15
- package/lib/ra.dashbard.event.bus.d.ts +20 -20
- package/lib/ra.dashboard.module.d.ts +2 -2
- package/lib/ra.dashboard.service.d.ts +22 -22
- package/lib/ra.event.enum.d.ts +42 -42
- package/lib/ra.gridster.config.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +8 -8
- package/schneideress-dashboardframework.d.ts +9 -9
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import { compactTypes, displayGrids, gridTypes } from './gridsterConfig.interface';
|
|
2
|
-
import { GridsterItem } from './gridsterItem.interface';
|
|
3
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
4
|
-
export interface GridsterConfigS {
|
|
5
|
-
gridType: gridTypes;
|
|
6
|
-
fixedColWidth: number;
|
|
7
|
-
fixedRowHeight: number;
|
|
8
|
-
keepFixedHeightInMobile: boolean;
|
|
9
|
-
keepFixedWidthInMobile: boolean;
|
|
10
|
-
setGridSize: boolean;
|
|
11
|
-
compactType: compactTypes;
|
|
12
|
-
mobileBreakpoint: number;
|
|
13
|
-
minCols: number;
|
|
14
|
-
maxCols: number;
|
|
15
|
-
minRows: number;
|
|
16
|
-
maxRows: number;
|
|
17
|
-
defaultItemCols: number;
|
|
18
|
-
defaultItemRows: number;
|
|
19
|
-
maxItemCols: number;
|
|
20
|
-
maxItemRows: number;
|
|
21
|
-
minItemCols: number;
|
|
22
|
-
minItemRows: number;
|
|
23
|
-
minItemArea: number;
|
|
24
|
-
maxItemArea: number;
|
|
25
|
-
margin: number;
|
|
26
|
-
outerMargin: boolean;
|
|
27
|
-
outerMarginTop: number | null;
|
|
28
|
-
outerMarginRight: number | null;
|
|
29
|
-
outerMarginBottom: number | null;
|
|
30
|
-
outerMarginLeft: number | null;
|
|
31
|
-
useTransformPositioning: boolean;
|
|
32
|
-
scrollSensitivity: number;
|
|
33
|
-
scrollSpeed: number;
|
|
34
|
-
draggable: Draggable;
|
|
35
|
-
resizable: Resizable;
|
|
36
|
-
swap: boolean;
|
|
37
|
-
pushItems: boolean;
|
|
38
|
-
disablePushOnDrag: boolean;
|
|
39
|
-
disablePushOnResize: boolean;
|
|
40
|
-
disableAutoPositionOnConflict: boolean;
|
|
41
|
-
pushDirections: PushDirections;
|
|
42
|
-
pushResizeItems: boolean;
|
|
43
|
-
displayGrid: displayGrids;
|
|
44
|
-
disableWindowResize: boolean;
|
|
45
|
-
disableWarnings: boolean;
|
|
46
|
-
scrollToNewItems: boolean;
|
|
47
|
-
enableEmptyCellClick: boolean;
|
|
48
|
-
enableEmptyCellContextMenu: boolean;
|
|
49
|
-
enableEmptyCellDrop: boolean;
|
|
50
|
-
enableEmptyCellDrag: boolean;
|
|
51
|
-
emptyCellDragMaxCols: number;
|
|
52
|
-
emptyCellDragMaxRows: number;
|
|
53
|
-
ignoreMarginInRow: boolean;
|
|
54
|
-
api: {
|
|
55
|
-
resize: () => void;
|
|
56
|
-
optionsChanged: () => void;
|
|
57
|
-
getNextPossiblePosition: (newItem: GridsterItem) => boolean;
|
|
58
|
-
getFirstPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
59
|
-
getLastPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
60
|
-
getCurrentRowHeight: () => number;
|
|
61
|
-
};
|
|
62
|
-
[propName: string]: any;
|
|
63
|
-
}
|
|
64
|
-
export interface DragBase {
|
|
65
|
-
enabled: boolean;
|
|
66
|
-
delayStart: number;
|
|
67
|
-
[propName: string]: any;
|
|
68
|
-
}
|
|
69
|
-
export interface Draggable extends DragBase {
|
|
70
|
-
ignoreContentClass: string;
|
|
71
|
-
ignoreContent: boolean;
|
|
72
|
-
dragHandleClass: string;
|
|
73
|
-
dropOverItems: boolean;
|
|
74
|
-
dropOverItemsCallback: (source: GridsterItem, target: GridsterItem, grid?: GridsterComponentInterface) => void;
|
|
75
|
-
}
|
|
76
|
-
export interface Resizable extends DragBase {
|
|
77
|
-
handles: {
|
|
78
|
-
s: boolean;
|
|
79
|
-
e: boolean;
|
|
80
|
-
n: boolean;
|
|
81
|
-
w: boolean;
|
|
82
|
-
se: boolean;
|
|
83
|
-
ne: boolean;
|
|
84
|
-
sw: boolean;
|
|
85
|
-
nw: boolean;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export interface PushDirections {
|
|
89
|
-
north: boolean;
|
|
90
|
-
east: boolean;
|
|
91
|
-
south: boolean;
|
|
92
|
-
west: boolean;
|
|
93
|
-
}
|
|
1
|
+
import { compactTypes, displayGrids, gridTypes } from './gridsterConfig.interface';
|
|
2
|
+
import { GridsterItem } from './gridsterItem.interface';
|
|
3
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
4
|
+
export interface GridsterConfigS {
|
|
5
|
+
gridType: gridTypes;
|
|
6
|
+
fixedColWidth: number;
|
|
7
|
+
fixedRowHeight: number;
|
|
8
|
+
keepFixedHeightInMobile: boolean;
|
|
9
|
+
keepFixedWidthInMobile: boolean;
|
|
10
|
+
setGridSize: boolean;
|
|
11
|
+
compactType: compactTypes;
|
|
12
|
+
mobileBreakpoint: number;
|
|
13
|
+
minCols: number;
|
|
14
|
+
maxCols: number;
|
|
15
|
+
minRows: number;
|
|
16
|
+
maxRows: number;
|
|
17
|
+
defaultItemCols: number;
|
|
18
|
+
defaultItemRows: number;
|
|
19
|
+
maxItemCols: number;
|
|
20
|
+
maxItemRows: number;
|
|
21
|
+
minItemCols: number;
|
|
22
|
+
minItemRows: number;
|
|
23
|
+
minItemArea: number;
|
|
24
|
+
maxItemArea: number;
|
|
25
|
+
margin: number;
|
|
26
|
+
outerMargin: boolean;
|
|
27
|
+
outerMarginTop: number | null;
|
|
28
|
+
outerMarginRight: number | null;
|
|
29
|
+
outerMarginBottom: number | null;
|
|
30
|
+
outerMarginLeft: number | null;
|
|
31
|
+
useTransformPositioning: boolean;
|
|
32
|
+
scrollSensitivity: number;
|
|
33
|
+
scrollSpeed: number;
|
|
34
|
+
draggable: Draggable;
|
|
35
|
+
resizable: Resizable;
|
|
36
|
+
swap: boolean;
|
|
37
|
+
pushItems: boolean;
|
|
38
|
+
disablePushOnDrag: boolean;
|
|
39
|
+
disablePushOnResize: boolean;
|
|
40
|
+
disableAutoPositionOnConflict: boolean;
|
|
41
|
+
pushDirections: PushDirections;
|
|
42
|
+
pushResizeItems: boolean;
|
|
43
|
+
displayGrid: displayGrids;
|
|
44
|
+
disableWindowResize: boolean;
|
|
45
|
+
disableWarnings: boolean;
|
|
46
|
+
scrollToNewItems: boolean;
|
|
47
|
+
enableEmptyCellClick: boolean;
|
|
48
|
+
enableEmptyCellContextMenu: boolean;
|
|
49
|
+
enableEmptyCellDrop: boolean;
|
|
50
|
+
enableEmptyCellDrag: boolean;
|
|
51
|
+
emptyCellDragMaxCols: number;
|
|
52
|
+
emptyCellDragMaxRows: number;
|
|
53
|
+
ignoreMarginInRow: boolean;
|
|
54
|
+
api: {
|
|
55
|
+
resize: () => void;
|
|
56
|
+
optionsChanged: () => void;
|
|
57
|
+
getNextPossiblePosition: (newItem: GridsterItem) => boolean;
|
|
58
|
+
getFirstPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
59
|
+
getLastPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
60
|
+
getCurrentRowHeight: () => number;
|
|
61
|
+
};
|
|
62
|
+
[propName: string]: any;
|
|
63
|
+
}
|
|
64
|
+
export interface DragBase {
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
delayStart: number;
|
|
67
|
+
[propName: string]: any;
|
|
68
|
+
}
|
|
69
|
+
export interface Draggable extends DragBase {
|
|
70
|
+
ignoreContentClass: string;
|
|
71
|
+
ignoreContent: boolean;
|
|
72
|
+
dragHandleClass: string;
|
|
73
|
+
dropOverItems: boolean;
|
|
74
|
+
dropOverItemsCallback: (source: GridsterItem, target: GridsterItem, grid?: GridsterComponentInterface) => void;
|
|
75
|
+
}
|
|
76
|
+
export interface Resizable extends DragBase {
|
|
77
|
+
handles: {
|
|
78
|
+
s: boolean;
|
|
79
|
+
e: boolean;
|
|
80
|
+
n: boolean;
|
|
81
|
+
w: boolean;
|
|
82
|
+
se: boolean;
|
|
83
|
+
ne: boolean;
|
|
84
|
+
sw: boolean;
|
|
85
|
+
nw: boolean;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export interface PushDirections {
|
|
89
|
+
north: boolean;
|
|
90
|
+
east: boolean;
|
|
91
|
+
south: boolean;
|
|
92
|
+
west: boolean;
|
|
93
|
+
}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
2
|
-
import { GridsterSwap } from './gridsterSwap.service';
|
|
3
|
-
import { GridsterPush } from './gridsterPush.service';
|
|
4
|
-
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
5
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
6
|
-
export declare class GridsterDraggable {
|
|
7
|
-
private zone;
|
|
8
|
-
gridsterItem: GridsterItemComponentInterface;
|
|
9
|
-
gridster: GridsterComponentInterface;
|
|
10
|
-
lastMouse: {
|
|
11
|
-
clientX: number;
|
|
12
|
-
clientY: number;
|
|
13
|
-
};
|
|
14
|
-
offsetLeft: number;
|
|
15
|
-
offsetTop: number;
|
|
16
|
-
margin: number;
|
|
17
|
-
diffTop: number;
|
|
18
|
-
diffLeft: number;
|
|
19
|
-
top: number;
|
|
20
|
-
left: number;
|
|
21
|
-
height: number;
|
|
22
|
-
width: number;
|
|
23
|
-
positionX: number;
|
|
24
|
-
positionY: number;
|
|
25
|
-
positionXBackup: number;
|
|
26
|
-
positionYBackup: number;
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
dragStartFunction: (event: any) => void;
|
|
29
|
-
dragFunction: (event: any) => void;
|
|
30
|
-
dragStopFunction: (event: any) => void;
|
|
31
|
-
mousemove: Function;
|
|
32
|
-
mouseup: Function;
|
|
33
|
-
mouseleave: Function;
|
|
34
|
-
cancelOnBlur: Function;
|
|
35
|
-
touchmove: Function;
|
|
36
|
-
touchend: Function;
|
|
37
|
-
touchcancel: Function;
|
|
38
|
-
mousedown: Function;
|
|
39
|
-
touchstart: Function;
|
|
40
|
-
push: GridsterPush;
|
|
41
|
-
swap: GridsterSwap;
|
|
42
|
-
path: Array<{
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
}>;
|
|
46
|
-
collision: GridsterItemComponentInterface | boolean;
|
|
47
|
-
constructor(gridsterItem: GridsterItemComponentInterface, gridster: GridsterComponentInterface, zone: NgZone);
|
|
48
|
-
destroy(): void;
|
|
49
|
-
dragStart(e: any): void;
|
|
50
|
-
dragMove(e: any): void;
|
|
51
|
-
calculateItemPositionFromMousePosition(e: any): void;
|
|
52
|
-
dragStop(e: any): void;
|
|
53
|
-
cancelDrag(): void;
|
|
54
|
-
makeDrag(): void;
|
|
55
|
-
checkforavailableSpaceintheArea(): import("./gridsterItem.interface").GridsterItem;
|
|
56
|
-
calculateItemPosition(): void;
|
|
57
|
-
toggle(): void;
|
|
58
|
-
dragStartDelay(e: any): void;
|
|
59
|
-
}
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { GridsterSwap } from './gridsterSwap.service';
|
|
3
|
+
import { GridsterPush } from './gridsterPush.service';
|
|
4
|
+
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
5
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
6
|
+
export declare class GridsterDraggable {
|
|
7
|
+
private zone;
|
|
8
|
+
gridsterItem: GridsterItemComponentInterface;
|
|
9
|
+
gridster: GridsterComponentInterface;
|
|
10
|
+
lastMouse: {
|
|
11
|
+
clientX: number;
|
|
12
|
+
clientY: number;
|
|
13
|
+
};
|
|
14
|
+
offsetLeft: number;
|
|
15
|
+
offsetTop: number;
|
|
16
|
+
margin: number;
|
|
17
|
+
diffTop: number;
|
|
18
|
+
diffLeft: number;
|
|
19
|
+
top: number;
|
|
20
|
+
left: number;
|
|
21
|
+
height: number;
|
|
22
|
+
width: number;
|
|
23
|
+
positionX: number;
|
|
24
|
+
positionY: number;
|
|
25
|
+
positionXBackup: number;
|
|
26
|
+
positionYBackup: number;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
dragStartFunction: (event: any) => void;
|
|
29
|
+
dragFunction: (event: any) => void;
|
|
30
|
+
dragStopFunction: (event: any) => void;
|
|
31
|
+
mousemove: Function;
|
|
32
|
+
mouseup: Function;
|
|
33
|
+
mouseleave: Function;
|
|
34
|
+
cancelOnBlur: Function;
|
|
35
|
+
touchmove: Function;
|
|
36
|
+
touchend: Function;
|
|
37
|
+
touchcancel: Function;
|
|
38
|
+
mousedown: Function;
|
|
39
|
+
touchstart: Function;
|
|
40
|
+
push: GridsterPush;
|
|
41
|
+
swap: GridsterSwap;
|
|
42
|
+
path: Array<{
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
}>;
|
|
46
|
+
collision: GridsterItemComponentInterface | boolean;
|
|
47
|
+
constructor(gridsterItem: GridsterItemComponentInterface, gridster: GridsterComponentInterface, zone: NgZone);
|
|
48
|
+
destroy(): void;
|
|
49
|
+
dragStart(e: any): void;
|
|
50
|
+
dragMove(e: any): void;
|
|
51
|
+
calculateItemPositionFromMousePosition(e: any): void;
|
|
52
|
+
dragStop(e: any): void;
|
|
53
|
+
cancelDrag(): void;
|
|
54
|
+
makeDrag(): void;
|
|
55
|
+
checkforavailableSpaceintheArea(): import("./gridsterItem.interface").GridsterItem;
|
|
56
|
+
calculateItemPosition(): void;
|
|
57
|
+
toggle(): void;
|
|
58
|
+
dragStartDelay(e: any): void;
|
|
59
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { GridsterItem } from './gridsterItem.interface';
|
|
2
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
3
|
-
export declare class GridsterEmptyCell {
|
|
4
|
-
private gridster;
|
|
5
|
-
initialItem: GridsterItem | null;
|
|
6
|
-
emptyCellClick: Function | null;
|
|
7
|
-
emptyCellClickTouch: Function | null;
|
|
8
|
-
emptyCellContextMenu: Function | null;
|
|
9
|
-
emptyCellDrop: Function | null;
|
|
10
|
-
emptyCellDrag: Function | null;
|
|
11
|
-
emptyCellDragTouch: Function | null;
|
|
12
|
-
emptyCellMMove: Function;
|
|
13
|
-
emptyCellMMoveTouch: Function;
|
|
14
|
-
emptyCellUp: Function;
|
|
15
|
-
emptyCellUpTouch: Function;
|
|
16
|
-
emptyCellMove: Function | null;
|
|
17
|
-
emptyCellExit: Function | null;
|
|
18
|
-
constructor(gridster: GridsterComponentInterface);
|
|
19
|
-
destroy(): void;
|
|
20
|
-
updateOptions(): void;
|
|
21
|
-
emptyCellClickCb(e: any): void;
|
|
22
|
-
emptyCellContextMenuCb(e: any): void;
|
|
23
|
-
emptyCellDragDrop(e: any): void;
|
|
24
|
-
emptyCellDragOver(e: any): void;
|
|
25
|
-
emptyCellMouseDown(e: any): void;
|
|
26
|
-
emptyCellMouseMove(e: any): void;
|
|
27
|
-
emptyCellMouseUp(e: any): void;
|
|
28
|
-
getValidItemFromEvent(e: any, oldItem?: GridsterItem | null): GridsterItem | undefined;
|
|
29
|
-
}
|
|
1
|
+
import { GridsterItem } from './gridsterItem.interface';
|
|
2
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
3
|
+
export declare class GridsterEmptyCell {
|
|
4
|
+
private gridster;
|
|
5
|
+
initialItem: GridsterItem | null;
|
|
6
|
+
emptyCellClick: Function | null;
|
|
7
|
+
emptyCellClickTouch: Function | null;
|
|
8
|
+
emptyCellContextMenu: Function | null;
|
|
9
|
+
emptyCellDrop: Function | null;
|
|
10
|
+
emptyCellDrag: Function | null;
|
|
11
|
+
emptyCellDragTouch: Function | null;
|
|
12
|
+
emptyCellMMove: Function;
|
|
13
|
+
emptyCellMMoveTouch: Function;
|
|
14
|
+
emptyCellUp: Function;
|
|
15
|
+
emptyCellUpTouch: Function;
|
|
16
|
+
emptyCellMove: Function | null;
|
|
17
|
+
emptyCellExit: Function | null;
|
|
18
|
+
constructor(gridster: GridsterComponentInterface);
|
|
19
|
+
destroy(): void;
|
|
20
|
+
updateOptions(): void;
|
|
21
|
+
emptyCellClickCb(e: any): void;
|
|
22
|
+
emptyCellContextMenuCb(e: any): void;
|
|
23
|
+
emptyCellDragDrop(e: any): void;
|
|
24
|
+
emptyCellDragOver(e: any): void;
|
|
25
|
+
emptyCellMouseDown(e: any): void;
|
|
26
|
+
emptyCellMouseMove(e: any): void;
|
|
27
|
+
emptyCellMouseUp(e: any): void;
|
|
28
|
+
getValidItemFromEvent(e: any, oldItem?: GridsterItem | null): GridsterItem | undefined;
|
|
29
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import { GridsterItem } from './gridsterItem.interface';
|
|
3
|
-
import { GridsterDraggable } from './gridsterDraggable.service';
|
|
4
|
-
import { GridsterResizable } from './gridsterResizable.service';
|
|
5
|
-
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
6
|
-
import { GridsterComponent } from './gridster.component';
|
|
7
|
-
export declare class GridsterItemComponent implements OnInit, OnDestroy, GridsterItemComponentInterface {
|
|
8
|
-
renderer: Renderer2;
|
|
9
|
-
private zone;
|
|
10
|
-
item: GridsterItem;
|
|
11
|
-
$item: GridsterItem;
|
|
12
|
-
el: any;
|
|
13
|
-
gridster: GridsterComponent;
|
|
14
|
-
top: number;
|
|
15
|
-
left: number;
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
drag: GridsterDraggable;
|
|
19
|
-
resize: GridsterResizable;
|
|
20
|
-
notPlaced: boolean;
|
|
21
|
-
init: boolean;
|
|
22
|
-
constructor(el: ElementRef, gridster: GridsterComponent, renderer: Renderer2, zone: NgZone);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
updateOptions(): void;
|
|
25
|
-
ngOnDestroy(): void;
|
|
26
|
-
setSize(): void;
|
|
27
|
-
updateItemSize(): void;
|
|
28
|
-
itemChanged(): void;
|
|
29
|
-
checkItemChanges(newValue: GridsterItem, oldValue: GridsterItem): void;
|
|
30
|
-
canBeDragged(): boolean;
|
|
31
|
-
canBeResized(): boolean;
|
|
32
|
-
}
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { GridsterItem } from './gridsterItem.interface';
|
|
3
|
+
import { GridsterDraggable } from './gridsterDraggable.service';
|
|
4
|
+
import { GridsterResizable } from './gridsterResizable.service';
|
|
5
|
+
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
6
|
+
import { GridsterComponent } from './gridster.component';
|
|
7
|
+
export declare class GridsterItemComponent implements OnInit, OnDestroy, GridsterItemComponentInterface {
|
|
8
|
+
renderer: Renderer2;
|
|
9
|
+
private zone;
|
|
10
|
+
item: GridsterItem;
|
|
11
|
+
$item: GridsterItem;
|
|
12
|
+
el: any;
|
|
13
|
+
gridster: GridsterComponent;
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
drag: GridsterDraggable;
|
|
19
|
+
resize: GridsterResizable;
|
|
20
|
+
notPlaced: boolean;
|
|
21
|
+
init: boolean;
|
|
22
|
+
constructor(el: ElementRef, gridster: GridsterComponent, renderer: Renderer2, zone: NgZone);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
updateOptions(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
setSize(): void;
|
|
27
|
+
updateItemSize(): void;
|
|
28
|
+
itemChanged(): void;
|
|
29
|
+
checkItemChanges(newValue: GridsterItem, oldValue: GridsterItem): void;
|
|
30
|
+
canBeDragged(): boolean;
|
|
31
|
+
canBeResized(): boolean;
|
|
32
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
-
export interface GridsterItem {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
rows: number;
|
|
6
|
-
cols: number;
|
|
7
|
-
initCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
8
|
-
dragEnabled?: boolean;
|
|
9
|
-
resizeEnabled?: boolean;
|
|
10
|
-
compactEnabled?: boolean;
|
|
11
|
-
maxItemRows?: number;
|
|
12
|
-
minItemRows?: number;
|
|
13
|
-
maxItemCols?: number;
|
|
14
|
-
minItemCols?: number;
|
|
15
|
-
minItemArea?: number;
|
|
16
|
-
maxItemArea?: number;
|
|
17
|
-
[propName: string]: any;
|
|
18
|
-
curRowHeight?: number;
|
|
19
|
-
widgetHeight?: number;
|
|
20
|
-
widgetInfo?: any;
|
|
21
|
-
}
|
|
1
|
+
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
+
export interface GridsterItem {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
rows: number;
|
|
6
|
+
cols: number;
|
|
7
|
+
initCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
8
|
+
dragEnabled?: boolean;
|
|
9
|
+
resizeEnabled?: boolean;
|
|
10
|
+
compactEnabled?: boolean;
|
|
11
|
+
maxItemRows?: number;
|
|
12
|
+
minItemRows?: number;
|
|
13
|
+
maxItemCols?: number;
|
|
14
|
+
minItemCols?: number;
|
|
15
|
+
minItemArea?: number;
|
|
16
|
+
maxItemArea?: number;
|
|
17
|
+
[propName: string]: any;
|
|
18
|
+
curRowHeight?: number;
|
|
19
|
+
widgetHeight?: number;
|
|
20
|
+
widgetInfo?: any;
|
|
21
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { GridsterItem } from './gridsterItem.interface';
|
|
2
|
-
import { GridsterDraggable } from './gridsterDraggable.service';
|
|
3
|
-
import { Renderer2 } from '@angular/core';
|
|
4
|
-
import { GridsterResizable } from './gridsterResizable.service';
|
|
5
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
6
|
-
export declare abstract class GridsterItemComponentInterface {
|
|
7
|
-
item: GridsterItem;
|
|
8
|
-
$item: GridsterItem;
|
|
9
|
-
top: number;
|
|
10
|
-
left: number;
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
drag: GridsterDraggable;
|
|
14
|
-
resize: GridsterResizable;
|
|
15
|
-
notPlaced: boolean;
|
|
16
|
-
updateOptions: () => void;
|
|
17
|
-
itemChanged: () => void;
|
|
18
|
-
setSize: () => void;
|
|
19
|
-
checkItemChanges: (newValue: GridsterItem, oldValue: GridsterItem) => void;
|
|
20
|
-
canBeDragged: () => boolean;
|
|
21
|
-
canBeResized: () => boolean;
|
|
22
|
-
el: any;
|
|
23
|
-
gridster: GridsterComponentInterface;
|
|
24
|
-
renderer: Renderer2;
|
|
25
|
-
}
|
|
1
|
+
import { GridsterItem } from './gridsterItem.interface';
|
|
2
|
+
import { GridsterDraggable } from './gridsterDraggable.service';
|
|
3
|
+
import { Renderer2 } from '@angular/core';
|
|
4
|
+
import { GridsterResizable } from './gridsterResizable.service';
|
|
5
|
+
import { GridsterComponentInterface } from './gridster.interface';
|
|
6
|
+
export declare abstract class GridsterItemComponentInterface {
|
|
7
|
+
item: GridsterItem;
|
|
8
|
+
$item: GridsterItem;
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
drag: GridsterDraggable;
|
|
14
|
+
resize: GridsterResizable;
|
|
15
|
+
notPlaced: boolean;
|
|
16
|
+
updateOptions: () => void;
|
|
17
|
+
itemChanged: () => void;
|
|
18
|
+
setSize: () => void;
|
|
19
|
+
checkItemChanges: (newValue: GridsterItem, oldValue: GridsterItem) => void;
|
|
20
|
+
canBeDragged: () => boolean;
|
|
21
|
+
canBeResized: () => boolean;
|
|
22
|
+
el: any;
|
|
23
|
+
gridster: GridsterComponentInterface;
|
|
24
|
+
renderer: Renderer2;
|
|
25
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
-
import { GridsterComponent } from './gridster.component';
|
|
3
|
-
export declare class GridsterPreviewComponent implements OnDestroy {
|
|
4
|
-
renderer: Renderer2;
|
|
5
|
-
el: any;
|
|
6
|
-
gridster: GridsterComponent;
|
|
7
|
-
constructor(el: ElementRef, gridster: GridsterComponent, renderer: Renderer2);
|
|
8
|
-
ngOnDestroy(): void;
|
|
9
|
-
previewStyle(drag?: boolean): void;
|
|
10
|
-
}
|
|
1
|
+
import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import { GridsterComponent } from './gridster.component';
|
|
3
|
+
export declare class GridsterPreviewComponent implements OnDestroy {
|
|
4
|
+
renderer: Renderer2;
|
|
5
|
+
el: any;
|
|
6
|
+
gridster: GridsterComponent;
|
|
7
|
+
constructor(el: ElementRef, gridster: GridsterComponent, renderer: Renderer2);
|
|
8
|
+
ngOnDestroy(): void;
|
|
9
|
+
previewStyle(drag?: boolean): void;
|
|
10
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
-
export declare class GridsterPush {
|
|
3
|
-
fromSouth: string;
|
|
4
|
-
fromNorth: string;
|
|
5
|
-
fromEast: string;
|
|
6
|
-
fromWest: string;
|
|
7
|
-
private pushedItems;
|
|
8
|
-
private pushedItemsTemp;
|
|
9
|
-
private pushedItemsTempPath;
|
|
10
|
-
private pushedItemsPath;
|
|
11
|
-
private gridsterItem;
|
|
12
|
-
private gridster;
|
|
13
|
-
private pushedItemsOrder;
|
|
14
|
-
private tryPattern;
|
|
15
|
-
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
16
|
-
destroy(): void;
|
|
17
|
-
pushItems(direction: string, disable?: boolean): boolean;
|
|
18
|
-
restoreTempItems(): void;
|
|
19
|
-
restoreItems(): void;
|
|
20
|
-
setPushedItems(): void;
|
|
21
|
-
checkPushBack(): void;
|
|
22
|
-
private push;
|
|
23
|
-
private trySouth;
|
|
24
|
-
private tryNorth;
|
|
25
|
-
private tryEast;
|
|
26
|
-
private tryWest;
|
|
27
|
-
private addToTempPushed;
|
|
28
|
-
private removeFromTempPushed;
|
|
29
|
-
private addToPushed;
|
|
30
|
-
private removeFromPushed;
|
|
31
|
-
private removeFromPushedItem;
|
|
32
|
-
private checkPushedItem;
|
|
33
|
-
}
|
|
1
|
+
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
+
export declare class GridsterPush {
|
|
3
|
+
fromSouth: string;
|
|
4
|
+
fromNorth: string;
|
|
5
|
+
fromEast: string;
|
|
6
|
+
fromWest: string;
|
|
7
|
+
private pushedItems;
|
|
8
|
+
private pushedItemsTemp;
|
|
9
|
+
private pushedItemsTempPath;
|
|
10
|
+
private pushedItemsPath;
|
|
11
|
+
private gridsterItem;
|
|
12
|
+
private gridster;
|
|
13
|
+
private pushedItemsOrder;
|
|
14
|
+
private tryPattern;
|
|
15
|
+
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
16
|
+
destroy(): void;
|
|
17
|
+
pushItems(direction: string, disable?: boolean): boolean;
|
|
18
|
+
restoreTempItems(): void;
|
|
19
|
+
restoreItems(): void;
|
|
20
|
+
setPushedItems(): void;
|
|
21
|
+
checkPushBack(): void;
|
|
22
|
+
private push;
|
|
23
|
+
private trySouth;
|
|
24
|
+
private tryNorth;
|
|
25
|
+
private tryEast;
|
|
26
|
+
private tryWest;
|
|
27
|
+
private addToTempPushed;
|
|
28
|
+
private removeFromTempPushed;
|
|
29
|
+
private addToPushed;
|
|
30
|
+
private removeFromPushed;
|
|
31
|
+
private removeFromPushedItem;
|
|
32
|
+
private checkPushedItem;
|
|
33
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
-
export declare class GridsterPushResize {
|
|
3
|
-
fromSouth: string;
|
|
4
|
-
fromNorth: string;
|
|
5
|
-
fromEast: string;
|
|
6
|
-
fromWest: string;
|
|
7
|
-
private pushedItems;
|
|
8
|
-
private pushedItemsPath;
|
|
9
|
-
private gridsterItem;
|
|
10
|
-
private gridster;
|
|
11
|
-
private tryPattern;
|
|
12
|
-
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
13
|
-
destroy(): void;
|
|
14
|
-
pushItems(direction: string): boolean;
|
|
15
|
-
restoreItems(): void;
|
|
16
|
-
setPushedItems(): void;
|
|
17
|
-
checkPushBack(): void;
|
|
18
|
-
private push;
|
|
19
|
-
private trySouth;
|
|
20
|
-
private tryNorth;
|
|
21
|
-
private tryEast;
|
|
22
|
-
private tryWest;
|
|
23
|
-
private addToPushed;
|
|
24
|
-
private removeFromPushed;
|
|
25
|
-
private checkPushedItem;
|
|
26
|
-
}
|
|
1
|
+
import { GridsterItemComponentInterface } from './gridsterItemComponent.interface';
|
|
2
|
+
export declare class GridsterPushResize {
|
|
3
|
+
fromSouth: string;
|
|
4
|
+
fromNorth: string;
|
|
5
|
+
fromEast: string;
|
|
6
|
+
fromWest: string;
|
|
7
|
+
private pushedItems;
|
|
8
|
+
private pushedItemsPath;
|
|
9
|
+
private gridsterItem;
|
|
10
|
+
private gridster;
|
|
11
|
+
private tryPattern;
|
|
12
|
+
constructor(gridsterItem: GridsterItemComponentInterface);
|
|
13
|
+
destroy(): void;
|
|
14
|
+
pushItems(direction: string): boolean;
|
|
15
|
+
restoreItems(): void;
|
|
16
|
+
setPushedItems(): void;
|
|
17
|
+
checkPushBack(): void;
|
|
18
|
+
private push;
|
|
19
|
+
private trySouth;
|
|
20
|
+
private tryNorth;
|
|
21
|
+
private tryEast;
|
|
22
|
+
private tryWest;
|
|
23
|
+
private addToPushed;
|
|
24
|
+
private removeFromPushed;
|
|
25
|
+
private checkPushedItem;
|
|
26
|
+
}
|