@schneideress/dashboardframework 17.0.47 → 20.0.1
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
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export const GridsterConfigDefaultSettings = {
|
|
2
|
-
gridType: 'scrollVertical',
|
|
3
|
-
compactType: 'none',
|
|
4
|
-
margin: 10,
|
|
5
|
-
outerMargin: true,
|
|
6
|
-
outerMarginTop: 10,
|
|
7
|
-
outerMarginRight: 0,
|
|
8
|
-
outerMarginBottom: 30,
|
|
9
|
-
outerMarginLeft: 0,
|
|
10
|
-
useTransformPositioning: true,
|
|
11
|
-
mobileBreakpoint: 640,
|
|
12
|
-
minCols: 10,
|
|
13
|
-
maxCols: 10,
|
|
14
|
-
minRows: 1,
|
|
15
|
-
maxRows: 100,
|
|
16
|
-
maxItemCols: 10,
|
|
17
|
-
minItemCols: 1,
|
|
18
|
-
maxItemRows: 1000,
|
|
19
|
-
minItemRows: 1,
|
|
20
|
-
maxItemArea: 1000,
|
|
21
|
-
minItemArea: 1,
|
|
22
|
-
defaultItemCols: 1,
|
|
23
|
-
defaultItemRows: 1,
|
|
24
|
-
keepFixedHeightInMobile: false,
|
|
25
|
-
keepFixedWidthInMobile: false,
|
|
26
|
-
scrollSensitivity: 10,
|
|
27
|
-
scrollSpeed: 20,
|
|
28
|
-
enableEmptyCellClick: false,
|
|
29
|
-
enableEmptyCellContextMenu: false,
|
|
30
|
-
enableEmptyCellDrop: false,
|
|
31
|
-
enableEmptyCellDrag: false,
|
|
32
|
-
emptyCellDragMaxCols: 50,
|
|
33
|
-
emptyCellDragMaxRows: 50,
|
|
34
|
-
ignoreMarginInRow: true,
|
|
35
|
-
draggable: {
|
|
36
|
-
enabled: true,
|
|
37
|
-
dragHandleClass: 'widget-move',
|
|
38
|
-
ignoreContent: true
|
|
39
|
-
},
|
|
40
|
-
resizable: {
|
|
41
|
-
enabled: true,
|
|
42
|
-
},
|
|
43
|
-
swap: true,
|
|
44
|
-
pushItems: true,
|
|
45
|
-
disablePushOnDrag: false,
|
|
46
|
-
disablePushOnResize: false,
|
|
47
|
-
pushDirections: { north: true, east: true, south: true, west: true },
|
|
48
|
-
pushResizeItems: false,
|
|
49
|
-
displayGrid: 'none',
|
|
50
|
-
disableWindowResize: false,
|
|
51
|
-
disableWarnings: false,
|
|
52
|
-
scrollToNewItems: true,
|
|
53
|
-
autoResizeonDrag: false,
|
|
54
|
-
setGridSize: false
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmEuZ3JpZHN0ZXIuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvcmEtZGFzaGJvYXJkLWZyYW1ld29yay9zcmMvbGliL3JhLmdyaWRzdGVyLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxNQUFNLENBQUMsTUFBTSw2QkFBNkIsR0FBbUI7SUFDekQsUUFBUSxFQUFFLGdCQUFnQjtJQUMxQixXQUFXLEVBQUUsTUFBTTtJQUNuQixNQUFNLEVBQUUsRUFBRTtJQUNWLFdBQVcsRUFBRSxJQUFJO0lBQ2pCLGNBQWMsRUFBRSxFQUFFO0lBQ2xCLGdCQUFnQixFQUFFLENBQUM7SUFDbkIsaUJBQWlCLEVBQUUsRUFBRTtJQUNyQixlQUFlLE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ogdHJ1ZSxcclxuICAgIGRpc2FibGVQdXNoT25EcmFnOiBmYWxzZSxcclxuICAgIGRpc2FibGVQdXNoT25SZXNpemU6IGZhbHNlLFxyXG4gICAgcHVzaERpcmVjdGlvbnM6IHsgbm9ydGg6IHRydWUsIGVhc3Q6IHRydWUsIHNvdXRoOiB0cnVlLCB3ZXN0OiB0cnVlIH0sXHJcbiAgICBwdXNoUmVzaXplSXRlbXM6IGZhbHNlLFxyXG4gICAgZGlzcGxheUdyaWQ6ICdub25lJyxcclxuICAgIGRpc2FibGVXaW5kb3dSZXNpemU6IGZhbHNlLFxyXG4gICAgZGlzYWJsZVdhcm5pbmdzOiBmYWxzZSxcclxuICAgIHNjcm9sbFRvTmV3SXRlbXM6IHRydWUsXHJcbiAgICBhdXRvUmVzaXplb25EcmFnOiBmYWxzZSxcclxuICAgIHNldEdyaWRTaXplOiBmYWxzZVxyXG59XHJcbiJdfQ==
|
package/esm2022/public-api.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of ra-dashboard-framework
|
|
3
|
-
*/
|
|
4
|
-
export * from './lib/ra.dashboard.service';
|
|
5
|
-
export * from './lib/ra-dashboard-area/ra.dashboard.area';
|
|
6
|
-
export * from './lib/ra-widget-container/ra.widget.container.component';
|
|
7
|
-
export * from './lib/ra.dashboard.module';
|
|
8
|
-
export * from './lib/ra.dashbard.event.bus';
|
|
9
|
-
export * from './lib/ra.event.enum';
|
|
10
|
-
export * from './lib/ra.base.dashboard.template';
|
|
11
|
-
export * from './lib/ra.base.dashboard.filter';
|
|
12
|
-
export * from './lib/ra.dashboard.responsive.service';
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3JhLWRhc2hib2FyZC1mcmFtZXdvcmsvc3JjL3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c3BvbnNpdmUuc2VydmljZSc7XHJcbiJdfQ==
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NobmVpZGVyZXNzLWRhc2hib2FyZGZyYW1ld29yay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3JhLWRhc2hib2FyZC1mcmFtZXdvcmsvc3JjL3NjaG5laWRlcmVzcy1kYXNoYm9hcmRmcmFtZXdvcmsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
package/gridster/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { GridsterComponent } from './lib/gridster.component';
|
|
2
|
-
export { GridsterItemComponent } from './lib/gridsterItem.component';
|
|
3
|
-
export { GridsterItem } from './lib/gridsterItem.interface';
|
|
4
|
-
export { GridsterComponentInterface } from './lib/gridster.interface';
|
|
5
|
-
export { GridsterConfig, GridType, DisplayGrid, CompactType, Draggable, Resizable, PushDirections } from './lib/gridsterConfig.interface';
|
|
6
|
-
export { GridsterConfigService } from './lib/gridsterConfig.constant';
|
|
7
|
-
export { GridsterModule } from './lib/gridster.module';
|
|
8
|
-
export { GridsterPush } from './lib/gridsterPush.service';
|
|
9
|
-
export { GridsterPushResize } from './lib/gridsterPushResize.service';
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
4
|
-
import { GridsterCompact } from './gridsterCompact.service';
|
|
5
|
-
import { GridsterConfig } from './gridsterConfig.interface';
|
|
6
|
-
import { GridsterConfigS } from './gridsterConfigS.interface';
|
|
7
|
-
import { GridsterEmptyCell } from './gridsterEmptyCell.service';
|
|
8
|
-
import { GridsterItem, GridsterItemComponentInterface } from './gridsterItem.interface';
|
|
9
|
-
import { GridsterRenderer } from './gridsterRenderer.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class GridsterComponent implements OnInit, OnChanges, OnDestroy, GridsterComponentInterface {
|
|
12
|
-
renderer: Renderer2;
|
|
13
|
-
cdRef: ChangeDetectorRef;
|
|
14
|
-
zone: NgZone;
|
|
15
|
-
options: GridsterConfig;
|
|
16
|
-
movingItem: GridsterItem | null;
|
|
17
|
-
el: HTMLElement;
|
|
18
|
-
$options: GridsterConfigS;
|
|
19
|
-
mobile: boolean;
|
|
20
|
-
curWidth: number;
|
|
21
|
-
curHeight: number;
|
|
22
|
-
grid: GridsterItemComponentInterface[];
|
|
23
|
-
columns: number;
|
|
24
|
-
rows: number;
|
|
25
|
-
curColWidth: number;
|
|
26
|
-
curRowHeight: number;
|
|
27
|
-
gridColumns: never[];
|
|
28
|
-
gridRows: never[];
|
|
29
|
-
windowResize: (() => void) | null;
|
|
30
|
-
dragInProgress: boolean;
|
|
31
|
-
emptyCell: GridsterEmptyCell;
|
|
32
|
-
compact: GridsterCompact;
|
|
33
|
-
gridRenderer: GridsterRenderer;
|
|
34
|
-
previewStyle$: EventEmitter<GridsterItem | null>;
|
|
35
|
-
calculateLayout$: Subject<void>;
|
|
36
|
-
private resize$;
|
|
37
|
-
private destroy$;
|
|
38
|
-
constructor(el: ElementRef, renderer: Renderer2, cdRef: ChangeDetectorRef, zone: NgZone);
|
|
39
|
-
static checkCollisionTwoItemsForSwaping(item: GridsterItem, item2: GridsterItem): boolean;
|
|
40
|
-
checkCollisionTwoItems(item: GridsterItem, item2: GridsterItem): boolean;
|
|
41
|
-
ngOnInit(): void;
|
|
42
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
43
|
-
getCurrentRowHeight(): number;
|
|
44
|
-
private resize;
|
|
45
|
-
setOptions(): void;
|
|
46
|
-
optionsChanged: () => void;
|
|
47
|
-
ngOnDestroy(): void;
|
|
48
|
-
onResize: () => void;
|
|
49
|
-
checkIfToResize(): boolean;
|
|
50
|
-
checkIfMobile(): boolean;
|
|
51
|
-
setGridSize(): void;
|
|
52
|
-
setGridDimensions(): void;
|
|
53
|
-
private calculateLayout;
|
|
54
|
-
updateGrid(): void;
|
|
55
|
-
addItem(itemComponent: GridsterItemComponentInterface): void;
|
|
56
|
-
removeItem(itemComponent: GridsterItemComponentInterface): void;
|
|
57
|
-
checkCollision(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
58
|
-
checkGridCollision(item: GridsterItem): boolean;
|
|
59
|
-
findItemWithItem(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
60
|
-
findItemsWithItem(item: GridsterItem): Array<GridsterItemComponentInterface>;
|
|
61
|
-
autoPositionItem(itemComponent: GridsterItemComponentInterface): void;
|
|
62
|
-
getNextPossiblePosition: (newItem: GridsterItem, startingFrom?: {
|
|
63
|
-
y?: number;
|
|
64
|
-
x?: number;
|
|
65
|
-
}) => boolean;
|
|
66
|
-
getFirstPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
67
|
-
getLastPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
68
|
-
pixelsToPositionX(x: number, roundingMethod: (x: number) => number, noLimit?: boolean): number;
|
|
69
|
-
pixelsToPositionY(y: number, roundingMethod: (x: number) => number, noLimit?: boolean): number;
|
|
70
|
-
positionXToPixels(x: number): number;
|
|
71
|
-
positionYToPixels(y: number): number;
|
|
72
|
-
getItemComponent(item: GridsterItem): GridsterItemComponentInterface | undefined;
|
|
73
|
-
checkCollisionForSwaping(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
74
|
-
findItemWithItemForSwapping(item: GridsterItem): GridsterItemComponentInterface | boolean;
|
|
75
|
-
previewStyle(drag?: boolean): void;
|
|
76
|
-
private static getNewArrayLength;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridsterComponent, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridsterComponent, "gridster", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
79
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { GridsterConfigS } from './gridsterConfigS.interface';
|
|
2
|
-
import { ChangeDetectorRef, NgZone, Renderer2 } from '@angular/core';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { GridsterEmptyCell } from './gridsterEmptyCell.service';
|
|
5
|
-
import { GridsterCompact } from './gridsterCompact.service';
|
|
6
|
-
import { GridsterConfig } from './gridsterConfig.interface';
|
|
7
|
-
import { GridsterItem, GridsterItemComponentInterface } from './gridsterItem.interface';
|
|
8
|
-
import { GridsterRenderer } from './gridsterRenderer.service';
|
|
9
|
-
export declare abstract class GridsterComponentInterface {
|
|
10
|
-
$options: GridsterConfigS;
|
|
11
|
-
grid: GridsterItemComponentInterface[];
|
|
12
|
-
checkCollision: (item: GridsterItem) => GridsterItemComponentInterface | boolean;
|
|
13
|
-
checkCollisionForSwaping: (item: GridsterItem) => GridsterItemComponentInterface | boolean;
|
|
14
|
-
positionXToPixels: (x: number) => number;
|
|
15
|
-
pixelsToPositionX: (x: number, roundingMethod: (x: number) => number, noLimit?: boolean) => number;
|
|
16
|
-
positionYToPixels: (y: number) => number;
|
|
17
|
-
pixelsToPositionY: (y: number, roundingMethod: (x: number) => number, noLimit?: boolean) => number;
|
|
18
|
-
findItemWithItem: (item: GridsterItem) => GridsterItemComponentInterface | boolean;
|
|
19
|
-
findItemsWithItem: (item: GridsterItem) => GridsterItemComponentInterface[];
|
|
20
|
-
checkGridCollision: (item: GridsterItem) => boolean;
|
|
21
|
-
checkCollisionTwoItems: (item: GridsterItem, item2: GridsterItem) => boolean;
|
|
22
|
-
getItemComponent: (item: GridsterItem) => GridsterItemComponentInterface | undefined;
|
|
23
|
-
el: HTMLElement;
|
|
24
|
-
renderer: Renderer2;
|
|
25
|
-
gridRenderer: GridsterRenderer;
|
|
26
|
-
cdRef: ChangeDetectorRef;
|
|
27
|
-
options: GridsterConfig;
|
|
28
|
-
calculateLayout$: Subject<void>;
|
|
29
|
-
updateGrid: () => void;
|
|
30
|
-
movingItem: GridsterItem | null;
|
|
31
|
-
addItem: (item: GridsterItemComponentInterface) => void;
|
|
32
|
-
removeItem: (item: GridsterItemComponentInterface) => void;
|
|
33
|
-
previewStyle: (drag?: boolean) => void;
|
|
34
|
-
mobile: boolean;
|
|
35
|
-
curWidth: number;
|
|
36
|
-
curHeight: number;
|
|
37
|
-
columns: number;
|
|
38
|
-
rows: number;
|
|
39
|
-
curColWidth: number;
|
|
40
|
-
curRowHeight: number;
|
|
41
|
-
windowResize: (() => void) | null;
|
|
42
|
-
setGridDimensions: () => void;
|
|
43
|
-
dragInProgress: boolean;
|
|
44
|
-
emptyCell: GridsterEmptyCell;
|
|
45
|
-
compact: GridsterCompact;
|
|
46
|
-
zone: NgZone;
|
|
47
|
-
gridRows: Array<number>;
|
|
48
|
-
gridColumns: Array<number>;
|
|
49
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./gridster.component";
|
|
3
|
-
import * as i2 from "./gridsterItem.component";
|
|
4
|
-
export declare class GridsterModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridsterModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GridsterModule, never, [typeof i1.GridsterComponent, typeof i2.GridsterItemComponent], [typeof i1.GridsterComponent, typeof i2.GridsterItemComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<GridsterModule>;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
2
|
-
import { GridsterItem } from './gridsterItem.interface';
|
|
3
|
-
export declare class GridsterCompact {
|
|
4
|
-
private gridster;
|
|
5
|
-
constructor(gridster: GridsterComponentInterface);
|
|
6
|
-
destroy(): void;
|
|
7
|
-
checkCompact(): void;
|
|
8
|
-
checkCompactItem(item: GridsterItem): void;
|
|
9
|
-
private checkCompactMovement;
|
|
10
|
-
private moveTillCollision;
|
|
11
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
2
|
-
import { GridsterItem, GridsterItemComponentInterface } from './gridsterItem.interface';
|
|
3
|
-
export type gridTypes = 'fit' | 'scrollVertical' | 'scrollHorizontal' | 'fixed' | 'verticalFixed' | 'horizontalFixed';
|
|
4
|
-
export type displayGrids = 'always' | 'onDrag&Resize' | 'none';
|
|
5
|
-
export type compactTypes = 'none' | 'compactUp' | 'compactLeft' | 'compactUp&Left' | 'compactLeft&Up' | 'compactRight' | 'compactUp&Right' | 'compactRight&Up' | 'compactDown' | 'compactDown&Left' | 'compactLeft&Down' | 'compactDown&Right' | 'compactRight&Down';
|
|
6
|
-
export declare enum GridType {
|
|
7
|
-
Fit = "fit",
|
|
8
|
-
ScrollVertical = "scrollVertical",
|
|
9
|
-
ScrollHorizontal = "scrollHorizontal",
|
|
10
|
-
Fixed = "fixed",
|
|
11
|
-
VerticalFixed = "verticalFixed",
|
|
12
|
-
HorizontalFixed = "horizontalFixed"
|
|
13
|
-
}
|
|
14
|
-
export declare enum DisplayGrid {
|
|
15
|
-
Always = "always",
|
|
16
|
-
OnDragAndResize = "onDrag&Resize",
|
|
17
|
-
None = "none"
|
|
18
|
-
}
|
|
19
|
-
export declare enum CompactType {
|
|
20
|
-
None = "none",
|
|
21
|
-
CompactUp = "compactUp",
|
|
22
|
-
CompactLeft = "compactLeft",
|
|
23
|
-
CompactUpAndLeft = "compactUp&Left",
|
|
24
|
-
CompactLeftAndUp = "compactLeft&Up",
|
|
25
|
-
CompactRight = "compactRight",
|
|
26
|
-
CompactUpAndRight = "compactUp&Right",
|
|
27
|
-
CompactRightAndUp = "compactRight&Up",
|
|
28
|
-
CompactDown = "compactDown",
|
|
29
|
-
CompactDownAndLeft = "compactDown&Left",
|
|
30
|
-
CompactLeftAndDown = "compactLeft&Down",
|
|
31
|
-
CompactDownAndRight = "compactDown&Right",
|
|
32
|
-
CompactRightAndDown = "compactRight&Down"
|
|
33
|
-
}
|
|
34
|
-
export declare enum DirTypes {
|
|
35
|
-
LTR = "ltr",
|
|
36
|
-
RTL = "rtl"
|
|
37
|
-
}
|
|
38
|
-
export type dirTypes = 'ltr' | 'rtl';
|
|
39
|
-
export interface GridsterConfig {
|
|
40
|
-
gridType?: gridTypes;
|
|
41
|
-
scale?: number;
|
|
42
|
-
fixedColWidth?: number;
|
|
43
|
-
fixedRowHeight?: number;
|
|
44
|
-
keepFixedHeightInMobile?: boolean;
|
|
45
|
-
keepFixedWidthInMobile?: boolean;
|
|
46
|
-
setGridSize?: boolean;
|
|
47
|
-
compactType?: compactTypes;
|
|
48
|
-
mobileBreakpoint?: number;
|
|
49
|
-
allowMultiLayer?: boolean;
|
|
50
|
-
defaultLayerIndex?: number;
|
|
51
|
-
maxLayerIndex?: number;
|
|
52
|
-
baseLayerIndex?: number;
|
|
53
|
-
minCols?: number;
|
|
54
|
-
maxCols?: number;
|
|
55
|
-
minRows?: number;
|
|
56
|
-
maxRows?: number;
|
|
57
|
-
defaultItemCols?: number;
|
|
58
|
-
defaultItemRows?: number;
|
|
59
|
-
maxItemCols?: number;
|
|
60
|
-
maxItemRows?: number;
|
|
61
|
-
minItemCols?: number;
|
|
62
|
-
minItemRows?: number;
|
|
63
|
-
minItemArea?: number;
|
|
64
|
-
maxItemArea?: number;
|
|
65
|
-
addEmptyRowsCount?: number;
|
|
66
|
-
rowHeightRatio?: number;
|
|
67
|
-
margin?: number;
|
|
68
|
-
outerMargin?: boolean;
|
|
69
|
-
outerMarginTop?: number | null;
|
|
70
|
-
outerMarginRight?: number | null;
|
|
71
|
-
outerMarginBottom?: number | null;
|
|
72
|
-
outerMarginLeft?: number | null;
|
|
73
|
-
useTransformPositioning?: boolean;
|
|
74
|
-
scrollSensitivity?: number | null;
|
|
75
|
-
scrollSpeed?: number;
|
|
76
|
-
initCallback?: (gridster: GridsterComponentInterface) => void;
|
|
77
|
-
destroyCallback?: (gridster: GridsterComponentInterface) => void;
|
|
78
|
-
gridSizeChangedCallback?: (gridster: GridsterComponentInterface) => void;
|
|
79
|
-
itemChangeCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
80
|
-
itemResizeCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
81
|
-
itemInitCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
82
|
-
itemRemovedCallback?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface) => void;
|
|
83
|
-
itemValidateCallback?: (item: GridsterItem) => boolean;
|
|
84
|
-
draggable?: Draggable;
|
|
85
|
-
resizable?: Resizable;
|
|
86
|
-
swap?: boolean;
|
|
87
|
-
swapWhileDragging?: boolean;
|
|
88
|
-
pushItems?: boolean;
|
|
89
|
-
disablePushOnDrag?: boolean;
|
|
90
|
-
disablePushOnResize?: boolean;
|
|
91
|
-
disableAutoPositionOnConflict?: boolean;
|
|
92
|
-
pushDirections?: PushDirections;
|
|
93
|
-
pushResizeItems?: boolean;
|
|
94
|
-
displayGrid?: displayGrids;
|
|
95
|
-
disableWindowResize?: boolean;
|
|
96
|
-
disableWarnings?: boolean;
|
|
97
|
-
scrollToNewItems?: boolean;
|
|
98
|
-
disableScrollHorizontal?: boolean;
|
|
99
|
-
disableScrollVertical?: boolean;
|
|
100
|
-
enableBoundaryControl?: boolean;
|
|
101
|
-
enableEmptyCellClick?: boolean;
|
|
102
|
-
enableEmptyCellContextMenu?: boolean;
|
|
103
|
-
enableEmptyCellDrop?: boolean;
|
|
104
|
-
enableEmptyCellDrag?: boolean;
|
|
105
|
-
enableOccupiedCellDrop?: boolean;
|
|
106
|
-
emptyCellClickCallback?: (event: MouseEvent, item: GridsterItem) => void;
|
|
107
|
-
emptyCellContextMenuCallback?: (event: MouseEvent, item: GridsterItem) => void;
|
|
108
|
-
emptyCellDropCallback?: (event: DragEvent, item: GridsterItem) => void;
|
|
109
|
-
emptyCellDragCallback?: (event: MouseEvent, item: GridsterItem) => void;
|
|
110
|
-
emptyCellDragMaxCols?: number;
|
|
111
|
-
emptyCellDragMaxRows?: number;
|
|
112
|
-
ignoreMarginInRow?: boolean;
|
|
113
|
-
dirType?: dirTypes;
|
|
114
|
-
api?: {
|
|
115
|
-
resize?: () => void;
|
|
116
|
-
optionsChanged?: () => void;
|
|
117
|
-
getNextPossiblePosition?: (newItem: GridsterItem) => boolean;
|
|
118
|
-
getFirstPossiblePosition?: (item: GridsterItem) => GridsterItem;
|
|
119
|
-
getLastPossiblePosition?: (item: GridsterItem) => GridsterItem;
|
|
120
|
-
getCurrentRowHeight?: () => number;
|
|
121
|
-
getItemComponent?: (item: GridsterItem) => GridsterItemComponentInterface | undefined;
|
|
122
|
-
};
|
|
123
|
-
[propName: string]: any;
|
|
124
|
-
}
|
|
125
|
-
export interface DragBase {
|
|
126
|
-
enabled?: boolean;
|
|
127
|
-
stop?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface, event: MouseEvent) => Promise<any> | void;
|
|
128
|
-
start?: (item: GridsterItem, itemComponent: GridsterItemComponentInterface, event: MouseEvent) => void;
|
|
129
|
-
delayStart?: number;
|
|
130
|
-
}
|
|
131
|
-
export interface Draggable extends DragBase {
|
|
132
|
-
ignoreContentClass?: string;
|
|
133
|
-
ignoreContent?: boolean;
|
|
134
|
-
dragHandleClass?: string;
|
|
135
|
-
dropOverItems?: boolean;
|
|
136
|
-
dropOverItemsCallback?: (source: GridsterItem, target: GridsterItem, grid?: GridsterComponentInterface) => void;
|
|
137
|
-
}
|
|
138
|
-
export interface Resizable extends DragBase {
|
|
139
|
-
handles?: {
|
|
140
|
-
s: boolean;
|
|
141
|
-
e: boolean;
|
|
142
|
-
n: boolean;
|
|
143
|
-
w: boolean;
|
|
144
|
-
se: boolean;
|
|
145
|
-
ne: boolean;
|
|
146
|
-
sw: boolean;
|
|
147
|
-
nw: boolean;
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
export interface PushDirections {
|
|
151
|
-
north: boolean;
|
|
152
|
-
east: boolean;
|
|
153
|
-
south: boolean;
|
|
154
|
-
west: boolean;
|
|
155
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
2
|
-
import { compactTypes, dirTypes, displayGrids, gridTypes } from './gridsterConfig.interface';
|
|
3
|
-
import { GridsterItem, GridsterItemComponentInterface } from './gridsterItem.interface';
|
|
4
|
-
export interface GridsterConfigS {
|
|
5
|
-
gridType: gridTypes;
|
|
6
|
-
scale?: number;
|
|
7
|
-
fixedColWidth: number;
|
|
8
|
-
fixedRowHeight: number;
|
|
9
|
-
keepFixedHeightInMobile: boolean;
|
|
10
|
-
keepFixedWidthInMobile: boolean;
|
|
11
|
-
setGridSize: boolean;
|
|
12
|
-
compactType: compactTypes;
|
|
13
|
-
mobileBreakpoint: number;
|
|
14
|
-
useBodyForBreakpoint: boolean;
|
|
15
|
-
allowMultiLayer: boolean;
|
|
16
|
-
defaultLayerIndex: number;
|
|
17
|
-
maxLayerIndex: number;
|
|
18
|
-
baseLayerIndex: number;
|
|
19
|
-
minCols: number;
|
|
20
|
-
maxCols: number;
|
|
21
|
-
minRows: number;
|
|
22
|
-
maxRows: number;
|
|
23
|
-
defaultItemCols: number;
|
|
24
|
-
defaultItemRows: number;
|
|
25
|
-
maxItemCols: number;
|
|
26
|
-
maxItemRows: number;
|
|
27
|
-
minItemCols: number;
|
|
28
|
-
minItemRows: number;
|
|
29
|
-
minItemArea: number;
|
|
30
|
-
maxItemArea: number;
|
|
31
|
-
addEmptyRowsCount: number;
|
|
32
|
-
rowHeightRatio: number;
|
|
33
|
-
margin: number;
|
|
34
|
-
outerMargin: boolean;
|
|
35
|
-
outerMarginTop: number | null;
|
|
36
|
-
outerMarginRight: number | null;
|
|
37
|
-
outerMarginBottom: number | null;
|
|
38
|
-
outerMarginLeft: number | null;
|
|
39
|
-
useTransformPositioning: boolean;
|
|
40
|
-
scrollSensitivity: number;
|
|
41
|
-
scrollSpeed: number;
|
|
42
|
-
draggable: Draggable;
|
|
43
|
-
resizable: Resizable;
|
|
44
|
-
swap: boolean;
|
|
45
|
-
swapWhileDragging: boolean;
|
|
46
|
-
pushItems: boolean;
|
|
47
|
-
disablePushOnDrag: boolean;
|
|
48
|
-
disablePushOnResize: boolean;
|
|
49
|
-
disableAutoPositionOnConflict: boolean;
|
|
50
|
-
pushDirections: PushDirections;
|
|
51
|
-
pushResizeItems: boolean;
|
|
52
|
-
displayGrid: displayGrids;
|
|
53
|
-
disableWindowResize: boolean;
|
|
54
|
-
disableWarnings: boolean;
|
|
55
|
-
scrollToNewItems: boolean;
|
|
56
|
-
disableScrollHorizontal?: boolean;
|
|
57
|
-
disableScrollVertical?: boolean;
|
|
58
|
-
enableBoundaryControl?: boolean;
|
|
59
|
-
enableEmptyCellClick: boolean;
|
|
60
|
-
enableEmptyCellContextMenu: boolean;
|
|
61
|
-
enableEmptyCellDrop: boolean;
|
|
62
|
-
enableEmptyCellDrag: boolean;
|
|
63
|
-
enableOccupiedCellDrop: boolean;
|
|
64
|
-
emptyCellDragMaxCols: number;
|
|
65
|
-
emptyCellDragMaxRows: number;
|
|
66
|
-
ignoreMarginInRow: boolean;
|
|
67
|
-
dirType: dirTypes;
|
|
68
|
-
api: {
|
|
69
|
-
resize: () => void;
|
|
70
|
-
optionsChanged: () => void;
|
|
71
|
-
getNextPossiblePosition: (newItem: GridsterItem) => boolean;
|
|
72
|
-
getFirstPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
73
|
-
getLastPossiblePosition: (item: GridsterItem) => GridsterItem;
|
|
74
|
-
getItemComponent: (item: GridsterItem) => GridsterItemComponentInterface | undefined;
|
|
75
|
-
};
|
|
76
|
-
[propName: string]: any;
|
|
77
|
-
}
|
|
78
|
-
export interface DragBase {
|
|
79
|
-
enabled: boolean;
|
|
80
|
-
delayStart: number;
|
|
81
|
-
[propName: string]: any;
|
|
82
|
-
}
|
|
83
|
-
export interface Draggable extends DragBase {
|
|
84
|
-
ignoreContentClass: string;
|
|
85
|
-
ignoreContent: boolean;
|
|
86
|
-
dragHandleClass: string;
|
|
87
|
-
dropOverItems: boolean;
|
|
88
|
-
dropOverItemsCallback: (source: GridsterItem, target: GridsterItem, grid?: GridsterComponentInterface) => void;
|
|
89
|
-
}
|
|
90
|
-
export interface Resizable extends DragBase {
|
|
91
|
-
handles: {
|
|
92
|
-
s: boolean;
|
|
93
|
-
e: boolean;
|
|
94
|
-
n: boolean;
|
|
95
|
-
w: boolean;
|
|
96
|
-
se: boolean;
|
|
97
|
-
ne: boolean;
|
|
98
|
-
sw: boolean;
|
|
99
|
-
nw: boolean;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
export interface PushDirections {
|
|
103
|
-
north: boolean;
|
|
104
|
-
east: boolean;
|
|
105
|
-
south: boolean;
|
|
106
|
-
west: boolean;
|
|
107
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
2
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
3
|
-
import { GridsterItemComponentInterface } from './gridsterItem.interface';
|
|
4
|
-
import { GridsterPush } from './gridsterPush.service';
|
|
5
|
-
import { GridsterSwap } from './gridsterSwap.service';
|
|
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
|
-
outerMarginTop: number | null;
|
|
18
|
-
outerMarginRight: number | null;
|
|
19
|
-
outerMarginBottom: number | null;
|
|
20
|
-
outerMarginLeft: number | null;
|
|
21
|
-
diffTop: number;
|
|
22
|
-
diffLeft: number;
|
|
23
|
-
originalClientX: number;
|
|
24
|
-
originalClientY: number;
|
|
25
|
-
top: number;
|
|
26
|
-
left: number;
|
|
27
|
-
height: number;
|
|
28
|
-
width: number;
|
|
29
|
-
positionX: number;
|
|
30
|
-
positionY: number;
|
|
31
|
-
positionXBackup: number;
|
|
32
|
-
positionYBackup: number;
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
mousemove: () => void;
|
|
35
|
-
mouseup: () => void;
|
|
36
|
-
mouseleave: () => void;
|
|
37
|
-
cancelOnBlur: () => void;
|
|
38
|
-
touchmove: () => void;
|
|
39
|
-
touchend: () => void;
|
|
40
|
-
touchcancel: () => void;
|
|
41
|
-
mousedown: () => void;
|
|
42
|
-
touchstart: () => void;
|
|
43
|
-
push: GridsterPush;
|
|
44
|
-
swap: GridsterSwap;
|
|
45
|
-
path: Array<{
|
|
46
|
-
x: number;
|
|
47
|
-
y: number;
|
|
48
|
-
}>;
|
|
49
|
-
collision: GridsterItemComponentInterface | boolean;
|
|
50
|
-
constructor(gridsterItem: GridsterItemComponentInterface, gridster: GridsterComponentInterface, zone: NgZone);
|
|
51
|
-
destroy(): void;
|
|
52
|
-
dragStart(e: MouseEvent): void;
|
|
53
|
-
dragMove: (e: MouseEvent) => void;
|
|
54
|
-
calculateItemPositionFromMousePosition: (e: MouseEvent) => void;
|
|
55
|
-
calculateItemPositionWithScale(e: MouseEvent, scale: number): void;
|
|
56
|
-
calculateItemPositionWithoutScale(e: MouseEvent): void;
|
|
57
|
-
dragStop: (e: MouseEvent) => void;
|
|
58
|
-
cancelDrag: () => void;
|
|
59
|
-
makeDrag: () => void;
|
|
60
|
-
calculateItemPosition(): void;
|
|
61
|
-
toggle(): void;
|
|
62
|
-
dragStartDelay: (e: MouseEvent) => void;
|
|
63
|
-
/**
|
|
64
|
-
* Returns the list of directions for given mouse event
|
|
65
|
-
* @param e Mouse event
|
|
66
|
-
* */
|
|
67
|
-
private getDirections;
|
|
68
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { GridsterComponentInterface } from './gridster.interface';
|
|
2
|
-
import { GridsterItem } from './gridsterItem.interface';
|
|
3
|
-
export declare class GridsterEmptyCell {
|
|
4
|
-
private gridster;
|
|
5
|
-
initialItem: GridsterItem | null;
|
|
6
|
-
removeEmptyCellClickListenerFn: (() => void) | null;
|
|
7
|
-
removeEmptyCellTouchendListenerFn: (() => void) | null;
|
|
8
|
-
removeEmptyCellContextMenuListenerFn: (() => void) | null;
|
|
9
|
-
removeEmptyCellDropListenerFn: (() => void) | null;
|
|
10
|
-
removeEmptyCellMousedownListenerFn: (() => void) | null;
|
|
11
|
-
removeEmptyCellTouchstartListenerFn: (() => void) | null;
|
|
12
|
-
removeWindowMousemoveListenerFn: () => void;
|
|
13
|
-
removeWindowTouchmoveListenerFn: () => void;
|
|
14
|
-
removeWindowMouseupListenerFn: () => void;
|
|
15
|
-
removeWindowTouchendListenerFn: () => void;
|
|
16
|
-
removeEmptyCellDragoverListenerFn: (() => void) | null;
|
|
17
|
-
removeDocumentDragendListenerFn: (() => void) | null;
|
|
18
|
-
constructor(gridster: GridsterComponentInterface);
|
|
19
|
-
destroy(): void;
|
|
20
|
-
updateOptions(): void;
|
|
21
|
-
emptyCellClickCb: (e: MouseEvent) => void;
|
|
22
|
-
emptyCellContextMenuCb: (e: MouseEvent) => void;
|
|
23
|
-
emptyCellDragDrop: (e: DragEvent) => void;
|
|
24
|
-
emptyCellDragOver: (e: DragEvent) => void;
|
|
25
|
-
emptyCellMouseDown: (e: MouseEvent) => void;
|
|
26
|
-
emptyCellMouseMove: (e: MouseEvent) => void;
|
|
27
|
-
emptyCellMouseUp: (e: MouseEvent) => void;
|
|
28
|
-
getPixelsX(e: MouseEvent, rect: ClientRect): number;
|
|
29
|
-
getPixelsY(e: MouseEvent, rect: ClientRect): number;
|
|
30
|
-
getValidItemFromEvent(e: MouseEvent, oldItem?: GridsterItem | null): GridsterItem | undefined;
|
|
31
|
-
}
|