@syncfusion/ej2-layouts 30.1.37 → 30.1.40
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/.eslintrc.json +2 -0
- package/dist/ej2-layouts.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +11 -7
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +11 -7
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +2 -2
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -43
- package/src/splitter/splitter.js +11 -7
- package/dist/ts/dashboard-layout/dashboard-layout-model.d.ts +0 -292
- package/dist/ts/dashboard-layout/dashboard-layout.d.ts +0 -706
- package/dist/ts/dashboard-layout/dashboard-layout.ts +0 -3468
- package/dist/ts/dashboard-layout/index.d.ts +0 -5
- package/dist/ts/dashboard-layout/index.ts +0 -5
- package/dist/ts/index.d.ts +0 -6
- package/dist/ts/index.ts +0 -6
- package/dist/ts/splitter/index.d.ts +0 -5
- package/dist/ts/splitter/index.ts +0 -5
- package/dist/ts/splitter/splitter-model.d.ts +0 -236
- package/dist/ts/splitter/splitter.d.ts +0 -595
- package/dist/ts/splitter/splitter.ts +0 -2871
- package/dist/ts/timeline/index.d.ts +0 -3
- package/dist/ts/timeline/index.ts +0 -3
- package/dist/ts/timeline/timeline-model.d.ts +0 -140
- package/dist/ts/timeline/timeline.d.ts +0 -239
- package/dist/ts/timeline/timeline.ts +0 -543
@@ -1,706 +0,0 @@
|
|
1
|
-
import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
2
|
-
import { Draggable, DragEventArgs } from '@syncfusion/ej2-base';
|
3
|
-
import { EmitType, ChildProperty } from '@syncfusion/ej2-base';
|
4
|
-
import { DashboardLayoutModel, PanelModel } from './dashboard-layout-model';
|
5
|
-
/**
|
6
|
-
* Defines the panel of the DashboardLayout component.
|
7
|
-
*/
|
8
|
-
export declare class Panel extends ChildProperty<Panel> {
|
9
|
-
/**
|
10
|
-
* Defines the id of the panel.
|
11
|
-
*
|
12
|
-
* @default ''
|
13
|
-
*/
|
14
|
-
id: string;
|
15
|
-
/**
|
16
|
-
* Defines the CSS class name that can be appended with each panel element.
|
17
|
-
*
|
18
|
-
* @default ''
|
19
|
-
*/
|
20
|
-
cssClass: string;
|
21
|
-
/**
|
22
|
-
* Defines the template value that should be displayed as the panel's header.
|
23
|
-
*
|
24
|
-
* @aspType string
|
25
|
-
*/
|
26
|
-
header: string | HTMLElement | Function;
|
27
|
-
/**
|
28
|
-
* Defines the template value that should be displayed as the panel's content.
|
29
|
-
*
|
30
|
-
* @aspType string
|
31
|
-
*/
|
32
|
-
content: string | HTMLElement | Function;
|
33
|
-
/**
|
34
|
-
* Defines whether to the panel should be enabled or not.
|
35
|
-
*
|
36
|
-
* @default true
|
37
|
-
*/
|
38
|
-
enabled: boolean;
|
39
|
-
/**
|
40
|
-
* Defines a row value where the panel should be placed.
|
41
|
-
*
|
42
|
-
* @default 0
|
43
|
-
* @aspType int
|
44
|
-
*/
|
45
|
-
row: number;
|
46
|
-
/**
|
47
|
-
* Defines the column value where the panel to be placed.
|
48
|
-
*
|
49
|
-
* @default 0
|
50
|
-
* @aspType int
|
51
|
-
*/
|
52
|
-
col: number;
|
53
|
-
/**
|
54
|
-
* Specifies the width of the panel in the layout in cells count.
|
55
|
-
*
|
56
|
-
* @default 1
|
57
|
-
*/
|
58
|
-
sizeX: number;
|
59
|
-
/**
|
60
|
-
* Specifies the height of the panel in the layout in cells count.
|
61
|
-
*
|
62
|
-
* @default 1
|
63
|
-
*/
|
64
|
-
sizeY: number;
|
65
|
-
/**
|
66
|
-
* Specifies the minimum height of the panel in cells count.
|
67
|
-
*
|
68
|
-
* @default 1
|
69
|
-
*/
|
70
|
-
minSizeY: number;
|
71
|
-
/**
|
72
|
-
* Specifies the minimum width of the panel in cells count.
|
73
|
-
*
|
74
|
-
* @default 1
|
75
|
-
*/
|
76
|
-
minSizeX: number;
|
77
|
-
/**
|
78
|
-
* Specifies the maximum height of the panel in cells count.
|
79
|
-
*
|
80
|
-
* @default null
|
81
|
-
* @aspType int
|
82
|
-
*
|
83
|
-
*/
|
84
|
-
maxSizeY: number;
|
85
|
-
/**
|
86
|
-
* Specifies the maximum width of the panel in cells count.
|
87
|
-
*
|
88
|
-
* @default null
|
89
|
-
* @aspType int
|
90
|
-
*/
|
91
|
-
maxSizeX: number;
|
92
|
-
/**
|
93
|
-
* Specifies the z-index of the panel
|
94
|
-
*
|
95
|
-
* @default 1000
|
96
|
-
* @aspType double
|
97
|
-
*/
|
98
|
-
zIndex: number;
|
99
|
-
}
|
100
|
-
/**
|
101
|
-
* The DashboardLayout is a grid structured layout control, that helps to create a dashboard with panels.
|
102
|
-
* Panels hold the UI components or data to be visualized with flexible options like resize, reorder, drag-n-drop, remove and add,
|
103
|
-
* that allows users to easily place the panels at a desired position within the grid layout.
|
104
|
-
* ```html
|
105
|
-
* <div id="default-layout">
|
106
|
-
* ```
|
107
|
-
* ```typescript
|
108
|
-
* <script>
|
109
|
-
* let dashBoardObject : DashboardLayout = new DashboardLayout();
|
110
|
-
* dashBoardObject.appendTo('#default-layout');
|
111
|
-
* </script>
|
112
|
-
* ```
|
113
|
-
*/
|
114
|
-
export declare class DashboardLayout extends Component<HTMLElement> implements INotifyPropertyChanged {
|
115
|
-
protected panelCollection: HTMLElement[];
|
116
|
-
protected checkCollision: HTMLElement[];
|
117
|
-
protected mainElement: HTMLElement;
|
118
|
-
protected rows: number;
|
119
|
-
protected dragobj: Draggable;
|
120
|
-
protected dragStartArgs: DragStartArgs;
|
121
|
-
protected dragStopEventArgs: DragStopArgs;
|
122
|
-
protected draggedEventArgs: DraggedEventArgs;
|
123
|
-
protected updatedRows: number;
|
124
|
-
protected tempObject: DashboardLayout;
|
125
|
-
protected sortedArray: HTMLElement[][];
|
126
|
-
protected cloneArray: HTMLElement[][];
|
127
|
-
protected panelID: number;
|
128
|
-
protected movePanelCalled: boolean;
|
129
|
-
protected resizeCalled: boolean;
|
130
|
-
protected gridPanelCollection: PanelModel[];
|
131
|
-
protected overlapElement: HTMLElement[];
|
132
|
-
protected shouldRestrict: boolean;
|
133
|
-
protected shouldSubRestrict: boolean;
|
134
|
-
protected overlapElementClone: HTMLElement[];
|
135
|
-
protected overlapSubElementClone: HTMLElement[];
|
136
|
-
protected dragCollection: Draggable[];
|
137
|
-
protected iterationValue: number;
|
138
|
-
protected shadowEle: HTMLElement;
|
139
|
-
protected elementRef: {
|
140
|
-
top: string;
|
141
|
-
left: string;
|
142
|
-
height: string;
|
143
|
-
width: string;
|
144
|
-
};
|
145
|
-
protected allItems: HTMLElement[];
|
146
|
-
protected dimensions: (string | number)[];
|
147
|
-
protected oldRowCol: {
|
148
|
-
[key: string]: {
|
149
|
-
row: number;
|
150
|
-
col: number;
|
151
|
-
};
|
152
|
-
};
|
153
|
-
protected collisionChecker: {
|
154
|
-
[key: string]: {
|
155
|
-
ele: HTMLElement;
|
156
|
-
row: number;
|
157
|
-
srcEle: HTMLElement;
|
158
|
-
};
|
159
|
-
};
|
160
|
-
protected availableClasses: string[];
|
161
|
-
protected addPanelCalled: boolean;
|
162
|
-
protected isSubValue: boolean;
|
163
|
-
protected direction: number;
|
164
|
-
protected directionRow: number;
|
165
|
-
protected lastMouseX: number;
|
166
|
-
protected lastMouseY: number;
|
167
|
-
protected elementX: number;
|
168
|
-
protected elementY: number;
|
169
|
-
protected elementWidth: number;
|
170
|
-
protected elementHeight: number;
|
171
|
-
protected previousRow: number;
|
172
|
-
protected originalWidth: number;
|
173
|
-
protected originalHeight: number;
|
174
|
-
protected handleClass: string;
|
175
|
-
protected mOffX: number;
|
176
|
-
protected mOffY: number;
|
177
|
-
protected maxTop: number;
|
178
|
-
protected maxRows: number;
|
179
|
-
protected maxLeft: number;
|
180
|
-
protected mouseX: number;
|
181
|
-
protected mouseY: number;
|
182
|
-
protected minTop: number;
|
183
|
-
protected minLeft: number;
|
184
|
-
protected moveTarget: HTMLElement;
|
185
|
-
protected upTarget: HTMLElement;
|
186
|
-
protected downTarget: HTMLElement;
|
187
|
-
protected leftAdjustable: boolean;
|
188
|
-
protected rightAdjustable: boolean;
|
189
|
-
protected topAdjustable: boolean;
|
190
|
-
protected restrictDynamicUpdate: boolean;
|
191
|
-
protected spacedColumnValue: number;
|
192
|
-
protected checkingElement: HTMLElement;
|
193
|
-
protected panelContent: HTMLElement;
|
194
|
-
protected panelHeaderElement: HTMLElement;
|
195
|
-
protected panelBody: HTMLElement;
|
196
|
-
protected startRow: number;
|
197
|
-
protected startCol: number;
|
198
|
-
protected maxColumnValue: number;
|
199
|
-
protected checkColumnValue: number;
|
200
|
-
protected spacedRowValue: number;
|
201
|
-
protected cellSize: number[];
|
202
|
-
protected table: HTMLElement;
|
203
|
-
protected cloneObject: {
|
204
|
-
[key: string]: {
|
205
|
-
row: number;
|
206
|
-
col: number;
|
207
|
-
};
|
208
|
-
};
|
209
|
-
private panelsInitialModel;
|
210
|
-
protected isRenderComplete: boolean;
|
211
|
-
protected isMouseUpBound: boolean;
|
212
|
-
protected isMouseMoveBound: boolean;
|
213
|
-
protected contentTemplateChild: HTMLElement[];
|
214
|
-
private isInlineRendering;
|
215
|
-
private removeAllCalled;
|
216
|
-
private isPanelRemoved;
|
217
|
-
private panelsSizeY;
|
218
|
-
private resizeHeight;
|
219
|
-
private refreshListener;
|
220
|
-
private eventVar;
|
221
|
-
/**
|
222
|
-
* If allowDragging is set to true, then the DashboardLayout allows you to drag and reorder the panels.
|
223
|
-
*
|
224
|
-
* @default true
|
225
|
-
*/
|
226
|
-
allowDragging: boolean;
|
227
|
-
/**
|
228
|
-
* If allowResizing is set to true, then the DashboardLayout allows you to resize the panels.
|
229
|
-
*
|
230
|
-
* @default false
|
231
|
-
*/
|
232
|
-
allowResizing: boolean;
|
233
|
-
/**
|
234
|
-
* If pushing is set to true, then the DashboardLayout allow to push the panels when panels collide
|
235
|
-
* while dragging or resizing the panels.
|
236
|
-
*
|
237
|
-
* @default true
|
238
|
-
* @private
|
239
|
-
*/
|
240
|
-
private allowPushing;
|
241
|
-
/**
|
242
|
-
* Defines whether to allow the cross-scripting site or not.
|
243
|
-
*
|
244
|
-
* @default true
|
245
|
-
*/
|
246
|
-
enableHtmlSanitizer: boolean;
|
247
|
-
/**
|
248
|
-
* If allowFloating is set to true, then the DashboardLayout automatically move the panels upwards to fill the empty available
|
249
|
-
* cells while dragging or resizing the panels.
|
250
|
-
*
|
251
|
-
* @default true
|
252
|
-
*/
|
253
|
-
allowFloating: boolean;
|
254
|
-
/**
|
255
|
-
* Defines the cell aspect ratio of the panel.
|
256
|
-
*
|
257
|
-
* @default 1
|
258
|
-
*/
|
259
|
-
cellAspectRatio: number;
|
260
|
-
/**
|
261
|
-
* Defines the spacing between the panels.
|
262
|
-
*
|
263
|
-
* @default [5,5]
|
264
|
-
*/
|
265
|
-
cellSpacing: number[];
|
266
|
-
/**
|
267
|
-
* Defines the number of columns to be created in the DashboardLayout.
|
268
|
-
*
|
269
|
-
* @default 1
|
270
|
-
*/
|
271
|
-
columns: number;
|
272
|
-
/**
|
273
|
-
* Enables or disables the grid lines for the Dashboard Layout panels.
|
274
|
-
*
|
275
|
-
* @default false
|
276
|
-
*/
|
277
|
-
showGridLines: boolean;
|
278
|
-
/**
|
279
|
-
* Defines the draggable handle selector which will act as dragging handler for the panels.
|
280
|
-
*
|
281
|
-
* @default null
|
282
|
-
*/
|
283
|
-
draggableHandle: string;
|
284
|
-
/**
|
285
|
-
* Locale property.
|
286
|
-
* This is not a dashboard layout property.
|
287
|
-
*
|
288
|
-
* @default 'en-US'
|
289
|
-
* @private
|
290
|
-
*/
|
291
|
-
locale: string;
|
292
|
-
/**
|
293
|
-
* Defines the media query value where the dashboardlayout becomes stacked layout when the resolution meets.
|
294
|
-
*
|
295
|
-
* @default 'max-width:600px'
|
296
|
-
*/
|
297
|
-
mediaQuery: string;
|
298
|
-
/**
|
299
|
-
*
|
300
|
-
* Defines the panels property of the DashboardLayout component.
|
301
|
-
*
|
302
|
-
* @default null
|
303
|
-
*/
|
304
|
-
panels: PanelModel[];
|
305
|
-
/**
|
306
|
-
* Defines the resizing handles directions used for resizing the panels.
|
307
|
-
*
|
308
|
-
* @default 'e-south-east'
|
309
|
-
*
|
310
|
-
*/
|
311
|
-
resizableHandles: string[];
|
312
|
-
/**
|
313
|
-
* Triggers whenever the panels positions are changed.
|
314
|
-
*
|
315
|
-
* @event 'object'
|
316
|
-
*/
|
317
|
-
change: EmitType<ChangeEventArgs>;
|
318
|
-
/**
|
319
|
-
* Triggers when a panel is about to drag.
|
320
|
-
*
|
321
|
-
* @event 'object'
|
322
|
-
*/
|
323
|
-
dragStart: EmitType<DragStartArgs>;
|
324
|
-
/**
|
325
|
-
* Triggers while a panel is dragged continuously.
|
326
|
-
*
|
327
|
-
* @event 'object'
|
328
|
-
*/
|
329
|
-
drag: EmitType<DraggedEventArgs>;
|
330
|
-
/**
|
331
|
-
* Triggers when a dragged panel is dropped.
|
332
|
-
*
|
333
|
-
* @event 'object'
|
334
|
-
*/
|
335
|
-
dragStop: EmitType<DragStopArgs>;
|
336
|
-
/**
|
337
|
-
* Triggers when a panel is about to resize.
|
338
|
-
*
|
339
|
-
* @event 'object'
|
340
|
-
*/
|
341
|
-
resizeStart: EmitType<ResizeArgs>;
|
342
|
-
/**
|
343
|
-
* Triggers when a panel is being resized continuously.
|
344
|
-
*
|
345
|
-
* @event 'object'
|
346
|
-
*/
|
347
|
-
resize: EmitType<ResizeArgs>;
|
348
|
-
/**
|
349
|
-
* Triggers when a panel resize ends.
|
350
|
-
*
|
351
|
-
* @event 'object'
|
352
|
-
*/
|
353
|
-
resizeStop: EmitType<ResizeArgs>;
|
354
|
-
/**
|
355
|
-
* Triggers when Dashboard Layout is created.
|
356
|
-
*
|
357
|
-
* @event 'object'
|
358
|
-
*/
|
359
|
-
created: EmitType<Object>;
|
360
|
-
/**
|
361
|
-
* Triggers when Dashboard Layout is destroyed.
|
362
|
-
*
|
363
|
-
* @event 'object'
|
364
|
-
*/
|
365
|
-
destroyed: EmitType<Object>;
|
366
|
-
/**
|
367
|
-
* Initialize the event handler
|
368
|
-
*
|
369
|
-
* @private
|
370
|
-
*/
|
371
|
-
protected preRender(): void;
|
372
|
-
protected setOldRowCol(): void;
|
373
|
-
protected createPanelElement(cssClass: string[], idValue: string): HTMLElement;
|
374
|
-
/**
|
375
|
-
* To Initialize the control rendering.
|
376
|
-
*
|
377
|
-
* @returns void
|
378
|
-
* @private
|
379
|
-
*/
|
380
|
-
protected render(): void;
|
381
|
-
private initGridLines;
|
382
|
-
private initialize;
|
383
|
-
protected checkMediaQuery(): boolean;
|
384
|
-
protected calculateCellSize(): void;
|
385
|
-
protected maxRow(recheck?: boolean): number;
|
386
|
-
protected maxCol(): number;
|
387
|
-
protected updateOldRowColumn(): void;
|
388
|
-
protected createSubElement(cssClass: string[], idValue: string, className: string): HTMLElement;
|
389
|
-
private templateParser;
|
390
|
-
protected renderTemplate(content: string, appendElement: HTMLElement, type: string, isStringTemplate: boolean, prop: string): void;
|
391
|
-
protected renderPanels(cellElement: HTMLElement, panelModel: PanelModel, panelId: string, isStringTemplate: boolean): HTMLElement;
|
392
|
-
protected disablePanel(panelElement: HTMLElement): void;
|
393
|
-
protected getInlinePanels(panelElement: HTMLElement): void;
|
394
|
-
private resizeEvents;
|
395
|
-
protected bindEvents(): void;
|
396
|
-
protected downResizeHandler(e: MouseEvent): void;
|
397
|
-
protected downHandler(e: MouseEvent | TouchEvent): void;
|
398
|
-
protected touchDownResizeHandler(e: TouchEvent): void;
|
399
|
-
private getCellSize;
|
400
|
-
protected updateMaxTopLeft(e: MouseEvent | TouchEvent): void;
|
401
|
-
protected updateResizeElement(el: HTMLElement): void;
|
402
|
-
protected moveResizeHandler(e: MouseEvent): void;
|
403
|
-
protected touchMoveResizeHandler(e: TouchEvent): void;
|
404
|
-
protected resizingPanel(el: HTMLElement, panelModel: PanelModel, currentX: number, currentY: number): void;
|
405
|
-
protected upResizeHandler(e: MouseEvent | TouchEvent): void;
|
406
|
-
private getChangingPanels;
|
407
|
-
protected getResizeRowColumn(item: PanelModel): PanelModel;
|
408
|
-
protected pixelsToColumns(pixels: number, isCeil: boolean): number;
|
409
|
-
protected pixelsToRows(pixels: number, isCeil: boolean): number;
|
410
|
-
protected getMinWidth(item: PanelModel): number;
|
411
|
-
protected getMaxWidth(item: PanelModel): number;
|
412
|
-
protected getMinHeight(item: PanelModel): number;
|
413
|
-
protected getMaxHeight(item: PanelModel): number;
|
414
|
-
protected sortedPanel(): void;
|
415
|
-
protected moveItemsUpwards(): void;
|
416
|
-
protected moveItemUpwards(item: HTMLElement): void;
|
417
|
-
private sortItem;
|
418
|
-
protected updateLayout(element: HTMLElement, panelModel: PanelModel): void;
|
419
|
-
refresh(): void;
|
420
|
-
protected updateGridLines(): void;
|
421
|
-
protected checkDragging(dragCollection: Draggable[]): void;
|
422
|
-
protected sortPanels(): PanelModel[];
|
423
|
-
protected checkMediaQuerySizing(): void;
|
424
|
-
protected panelResponsiveUpdate(): void;
|
425
|
-
protected updateRowHeight(): void;
|
426
|
-
protected setHeightWidth(): void;
|
427
|
-
private setEmptyLayoutHeight;
|
428
|
-
protected setHeightAndWidth(panelElement: HTMLElement, panelModel: PanelModel): void;
|
429
|
-
protected renderCell(panel: PanelModel, isStringTemplate: boolean, index: number): HTMLElement;
|
430
|
-
protected setPanelPosition(cellElement: HTMLElement, row: number, col: number): void;
|
431
|
-
protected getRowColumn(): void;
|
432
|
-
protected setMinMaxValues(panel: PanelModel): void;
|
433
|
-
protected checkMinMaxValues(panel: PanelModel): void;
|
434
|
-
protected panelPropertyChange(panel: PanelModel, value: IChangePanel): void;
|
435
|
-
protected renderDashBoardCells(cells: PanelModel[]): void;
|
436
|
-
protected collisions(row: number, col: number, sizeX: number, sizeY: number, ignore: HTMLElement[] | HTMLElement): HTMLElement[];
|
437
|
-
protected rightWardsSpaceChecking(rowElements: HTMLElement[], col: number, ele: HTMLElement): number[];
|
438
|
-
protected getOccupiedColumns(element: HTMLElement): number[];
|
439
|
-
protected leftWardsSpaceChecking(rowElements: HTMLElement[], col: number, ele: HTMLElement): number[];
|
440
|
-
protected adjustmentAvailable(row: number, col: number, sizeY: number, sizeX: number, ele: HTMLElement): boolean;
|
441
|
-
protected isXSpacingAvailable(spacing: number[], sizeX?: number): boolean;
|
442
|
-
protected getRowElements(base: HTMLElement[]): HTMLElement[];
|
443
|
-
protected isLeftAdjustable(spaces: number[], ele: HTMLElement, row: number, col: number, sizeX: number, sizeY: number): boolean;
|
444
|
-
protected isRightAdjustable(spacing: number[], ele: HTMLElement, row: number, col: number, sizeX: number, sizeY: number): boolean;
|
445
|
-
protected replacable(spacing: number[], sizeX: number, row: number, sizeY: number, ele: HTMLElement): boolean;
|
446
|
-
protected sortCollisionItems(collisionItems: HTMLElement[]): HTMLElement[];
|
447
|
-
protected updatedModels(collisionItems: HTMLElement[], panelModel: PanelModel, ele: HTMLElement): HTMLElement[];
|
448
|
-
protected resetLayout(model: PanelModel): HTMLElement[];
|
449
|
-
protected swapAvailability(collisions: HTMLElement[], element: HTMLElement): boolean;
|
450
|
-
protected checkForSwapping(collisions: HTMLElement[], element: HTMLElement): boolean;
|
451
|
-
protected swapItems(collisions: HTMLElement[], element: HTMLElement, panelModel: PanelModel): void;
|
452
|
-
protected updatePanelLayout(element: HTMLElement, panelModel: PanelModel): void;
|
453
|
-
protected checkForCompletePushing(): void;
|
454
|
-
protected updateCollisionChecked(item: HTMLElement): void;
|
455
|
-
protected updateRowColumn(row: number, ele: HTMLElement[], srcEle: HTMLElement): void;
|
456
|
-
protected collisionPanel(collisionModels: HTMLElement[], colValue: number, updatedRow: number, clone: HTMLElement): void;
|
457
|
-
protected removeResizeClasses(panelElements: HTMLElement[]): void;
|
458
|
-
protected ensureDrag(): void;
|
459
|
-
protected setClasses(panelCollection: HTMLElement[]): void;
|
460
|
-
protected setResizingClass(ele?: HTMLElement, container?: HTMLElement): void;
|
461
|
-
protected setXYAttributes(element: HTMLElement, panelModel: PanelModel): void;
|
462
|
-
protected setXYDimensions(panelModel: PanelModel): (string | number)[];
|
463
|
-
protected getRowColumnDragValues(args: DragEventArgs): number[];
|
464
|
-
protected checkForChanges(isInteracted: boolean, added?: PanelModel[], removed?: PanelModel[]): void;
|
465
|
-
private getChangedPanels;
|
466
|
-
protected enableDraggingContent(collections: HTMLElement[]): void;
|
467
|
-
protected updatePanels(): void;
|
468
|
-
protected updateDragArea(): void;
|
469
|
-
/**
|
470
|
-
* Method to update the draggable handle when draggable panel elements are bound dynamically.
|
471
|
-
*
|
472
|
-
* @returns void
|
473
|
-
*
|
474
|
-
*/
|
475
|
-
refreshDraggableHandle(): void;
|
476
|
-
protected updateRowsHeight(row: number, sizeY: number, addRows: number): void;
|
477
|
-
private onDraggingStart;
|
478
|
-
private cloneModels;
|
479
|
-
private onDragStart;
|
480
|
-
protected getPanelBase(args: HTMLElement | DragEventArgs | string): HTMLElement;
|
481
|
-
protected getPanel(row: number, column: number, excludeItems: HTMLElement[] | HTMLElement): PanelModel;
|
482
|
-
protected setHolderPosition(args: DragEventArgs): void;
|
483
|
-
protected calculateShadowElementSize(sizeX: number, sizeY: number): {
|
484
|
-
width: string;
|
485
|
-
height: string;
|
486
|
-
};
|
487
|
-
protected getCellInstance(idValue: string): PanelModel;
|
488
|
-
/**
|
489
|
-
* Allows to add a panel to the Dashboardlayout.
|
490
|
-
*
|
491
|
-
* @param {panel} panel - Defines the panel element.
|
492
|
-
*
|
493
|
-
* @returns void
|
494
|
-
* @deprecated
|
495
|
-
*/
|
496
|
-
addPanel(panel: PanelModel): void;
|
497
|
-
/**
|
498
|
-
* Allows to update a panel in the DashboardLayout.
|
499
|
-
*
|
500
|
-
* @param {panel} panel - Defines the panel element.
|
501
|
-
*
|
502
|
-
* @returns void
|
503
|
-
* @deprecated
|
504
|
-
*/
|
505
|
-
updatePanel(panel: PanelModel): void;
|
506
|
-
protected updateCloneArrayObject(): void;
|
507
|
-
/**
|
508
|
-
* Returns the panels object of the DashboardLayout.
|
509
|
-
*
|
510
|
-
* @returns [`PanelModel[]`](./panelModel)
|
511
|
-
*/
|
512
|
-
serialize(): PanelModel[];
|
513
|
-
/**
|
514
|
-
* Removes all the panels from the DashboardLayout.
|
515
|
-
*/
|
516
|
-
removeAll(): void;
|
517
|
-
/**
|
518
|
-
* Removes the panel from the DashboardLayout.
|
519
|
-
*
|
520
|
-
* @param {string} id - Defines the panel ID.
|
521
|
-
*
|
522
|
-
* @returns void
|
523
|
-
*/
|
524
|
-
removePanel(id: string): void;
|
525
|
-
constructor(options?: DashboardLayoutModel, element?: string | HTMLElement);
|
526
|
-
/**
|
527
|
-
*Moves the panel in the DashboardLayout.
|
528
|
-
*
|
529
|
-
* @param {string} id - Defines the panel ID.
|
530
|
-
*
|
531
|
-
* @param {number} row - Defines the row of dashboard layout.
|
532
|
-
*
|
533
|
-
* @param {number} col - Defines the column of dashboard layout.
|
534
|
-
*
|
535
|
-
* @returns void
|
536
|
-
*/
|
537
|
-
movePanel(id: string, row: number, col: number): void;
|
538
|
-
protected setAttributes(value: IAttributes, ele: HTMLElement): void;
|
539
|
-
/**
|
540
|
-
* Resize the panel in the DashboardLayout.
|
541
|
-
*
|
542
|
-
* @param {string} id - Defines the panel ID.
|
543
|
-
*
|
544
|
-
* @param {number} sizeX - Defines the sizeX of dashboard layout.
|
545
|
-
*
|
546
|
-
* @param {number} sizeY - Defines the sizeY of dashboard layout.
|
547
|
-
*/
|
548
|
-
resizePanel(id: string, sizeX: number, sizeY: number): void;
|
549
|
-
/**
|
550
|
-
* Destroys the DashboardLayout component
|
551
|
-
*
|
552
|
-
* @returns void
|
553
|
-
*/
|
554
|
-
destroy(): void;
|
555
|
-
private removeAllPanel;
|
556
|
-
protected setEnableRtl(): void;
|
557
|
-
/**
|
558
|
-
* Called internally if any of the property value changed.
|
559
|
-
* returns void
|
560
|
-
*
|
561
|
-
* @private
|
562
|
-
*/
|
563
|
-
private updateCellSizeAndSpacing;
|
564
|
-
private updatePanelsDynamically;
|
565
|
-
private checkForIDValues;
|
566
|
-
/**
|
567
|
-
* Called internally if any of the property value changed.
|
568
|
-
*
|
569
|
-
* returns void
|
570
|
-
*
|
571
|
-
* @private
|
572
|
-
*/
|
573
|
-
onPropertyChanged(newProp: DashboardLayoutModel): void;
|
574
|
-
/**
|
575
|
-
* Gets the properties to be maintained upon browser refresh.
|
576
|
-
*
|
577
|
-
* @returns string
|
578
|
-
* @private
|
579
|
-
*/
|
580
|
-
getPersistData(): string;
|
581
|
-
private mergePersistPanelData;
|
582
|
-
protected mergePanels(sortedPanels: Panel[], panels: Panel[]): void;
|
583
|
-
/**
|
584
|
-
* Returns the current module name.
|
585
|
-
*
|
586
|
-
* @returns string
|
587
|
-
*
|
588
|
-
* @private
|
589
|
-
*/
|
590
|
-
protected getModuleName(): string;
|
591
|
-
}
|
592
|
-
/**
|
593
|
-
* Defines the dragstart event arguments
|
594
|
-
*/
|
595
|
-
export interface DragStartArgs {
|
596
|
-
/**
|
597
|
-
* Specifies the original event.
|
598
|
-
*/
|
599
|
-
event: MouseEvent | TouchEvent;
|
600
|
-
/**
|
601
|
-
* Illustrates whether the current action needs to be prevented or not.
|
602
|
-
*/
|
603
|
-
cancel: boolean;
|
604
|
-
/**
|
605
|
-
* Specifies the cell element being dragged.
|
606
|
-
*/
|
607
|
-
element: HTMLElement;
|
608
|
-
}
|
609
|
-
/**
|
610
|
-
* Defines the change event arguments
|
611
|
-
*/
|
612
|
-
export interface ChangeEventArgs {
|
613
|
-
/**
|
614
|
-
* Specifies the model values of the position changed panels.
|
615
|
-
*/
|
616
|
-
changedPanels: PanelModel[];
|
617
|
-
/**
|
618
|
-
* Specifies that event has triggered by user interaction.
|
619
|
-
*/
|
620
|
-
isInteracted: boolean;
|
621
|
-
/**
|
622
|
-
* Specifies the panel added to the DashboardLayout.
|
623
|
-
*/
|
624
|
-
addedPanels: PanelModel[];
|
625
|
-
/**
|
626
|
-
* Specifies the panels removed from the DashboardLayout.
|
627
|
-
*/
|
628
|
-
removedPanels: PanelModel[];
|
629
|
-
}
|
630
|
-
/**
|
631
|
-
* Defines the Drag event arguments
|
632
|
-
*/
|
633
|
-
export interface DraggedEventArgs {
|
634
|
-
/**
|
635
|
-
* Specifies the original event.
|
636
|
-
*/
|
637
|
-
event: MouseEvent | TouchEvent;
|
638
|
-
/**
|
639
|
-
* Specifies the cell element being dragged.
|
640
|
-
*/
|
641
|
-
element: HTMLElement;
|
642
|
-
/**
|
643
|
-
* Specifies the element below the cell element being dragged.
|
644
|
-
*/
|
645
|
-
target: HTMLElement;
|
646
|
-
}
|
647
|
-
/**
|
648
|
-
* Defines the dragstop event arguments
|
649
|
-
*/
|
650
|
-
export interface DragStopArgs extends DragEventArgs {
|
651
|
-
/**
|
652
|
-
* Represents the model values of panels that have been modified.
|
653
|
-
* This property retrieves panel data whose positions have changed
|
654
|
-
* due to a drag action before the drop action is completed.
|
655
|
-
*/
|
656
|
-
panels?: PanelModel[];
|
657
|
-
}
|
658
|
-
/**
|
659
|
-
* Defines the resize event arguments
|
660
|
-
*/
|
661
|
-
export interface ResizeArgs {
|
662
|
-
/**
|
663
|
-
* Specifies the original event.
|
664
|
-
*/
|
665
|
-
event: MouseEvent | TouchEvent;
|
666
|
-
/**
|
667
|
-
* Specifies the cell element being resized.
|
668
|
-
*/
|
669
|
-
element: HTMLElement;
|
670
|
-
/**
|
671
|
-
* Specifies that event has triggered by user interaction.
|
672
|
-
*/
|
673
|
-
isInteracted: boolean;
|
674
|
-
/**
|
675
|
-
* Represents the model values of panels that have been modified.
|
676
|
-
* This property retrieves panel data whose positions have changed
|
677
|
-
* due to a resize action before the action is completed.
|
678
|
-
*/
|
679
|
-
panels?: PanelModel[];
|
680
|
-
}
|
681
|
-
interface IAttributes {
|
682
|
-
[key: string]: {
|
683
|
-
sizeX?: string | number;
|
684
|
-
sizeY?: string | number;
|
685
|
-
minSizeX?: string | number;
|
686
|
-
minSizeY?: string | number;
|
687
|
-
maxSizeX?: string | number;
|
688
|
-
maxSizeY?: string | number;
|
689
|
-
row?: string | number;
|
690
|
-
col?: string | number;
|
691
|
-
};
|
692
|
-
}
|
693
|
-
interface IChangePanel {
|
694
|
-
sizeX?: number;
|
695
|
-
sizeY?: number;
|
696
|
-
minSizeX?: number;
|
697
|
-
minSizeY?: number;
|
698
|
-
maxSizeX?: number;
|
699
|
-
maxSizeY?: number;
|
700
|
-
row?: number;
|
701
|
-
col?: number;
|
702
|
-
id?: string;
|
703
|
-
header?: string | HTMLElement | Function;
|
704
|
-
content?: string | HTMLElement | Function;
|
705
|
-
}
|
706
|
-
export {};
|