@syncfusion/ej2-layouts 28.2.3 → 28.2.5
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/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 +14 -8
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +14 -8
- 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 +6 -6
- package/src/dashboard-layout/dashboard-layout.d.ts +4 -0
- package/src/dashboard-layout/dashboard-layout.js +14 -8
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 28.2.
|
3
|
+
* version : 28.2.5
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
5
5
|
* Use of this code is subject to the terms of our license.
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "@syncfusion/ej2-layouts@*",
|
3
|
-
"_id": "@syncfusion/ej2-layouts@28.
|
3
|
+
"_id": "@syncfusion/ej2-layouts@28.2.3",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-P+LsAf5zfQ+8Ky+n654yJQ2sJ9W53TLqXxFKijrzEKD2WjwpM/QAZ16MyP7VbP5fLIzMzltzZeivsU8+m7+EAw==",
|
6
6
|
"_location": "/@syncfusion/ej2-layouts",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -26,8 +26,8 @@
|
|
26
26
|
"/@syncfusion/ej2-react-layouts",
|
27
27
|
"/@syncfusion/ej2-vue-layouts"
|
28
28
|
],
|
29
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-28.
|
30
|
-
"_shasum": "
|
29
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-28.2.3.tgz",
|
30
|
+
"_shasum": "16816c6b4e4e620a3f0fd0cb8cb7c4d4e1dfd6ff",
|
31
31
|
"_spec": "@syncfusion/ej2-layouts@*",
|
32
32
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
33
33
|
"author": {
|
@@ -35,7 +35,7 @@
|
|
35
35
|
},
|
36
36
|
"bundleDependencies": false,
|
37
37
|
"dependencies": {
|
38
|
-
"@syncfusion/ej2-base": "~28.2.
|
38
|
+
"@syncfusion/ej2-base": "~28.2.5"
|
39
39
|
},
|
40
40
|
"deprecated": false,
|
41
41
|
"description": "A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person.",
|
@@ -75,7 +75,7 @@
|
|
75
75
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
|
76
76
|
},
|
77
77
|
"typings": "index.d.ts",
|
78
|
-
"version": "28.2.
|
78
|
+
"version": "28.2.5",
|
79
79
|
"sideEffects": false,
|
80
80
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
81
81
|
}
|
@@ -477,6 +477,10 @@ export declare class DashboardLayout extends Component<HTMLElement> implements I
|
|
477
477
|
protected getPanelBase(args: HTMLElement | DragEventArgs | string): HTMLElement;
|
478
478
|
protected getPanel(row: number, column: number, excludeItems: HTMLElement[] | HTMLElement): PanelModel;
|
479
479
|
protected setHolderPosition(args: DragEventArgs): void;
|
480
|
+
protected calculateShadowElementSize(sizeX: number, sizeY: number): {
|
481
|
+
width: string;
|
482
|
+
height: string;
|
483
|
+
};
|
480
484
|
protected getCellInstance(idValue: string): PanelModel;
|
481
485
|
/**
|
482
486
|
* Allows to add a panel to the Dashboardlayout.
|
@@ -2184,16 +2184,17 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2184
2184
|
this.updateRowsHeight(eleRowValue, eleSizeY, eleSizeY);
|
2185
2185
|
this.updateDragArea();
|
2186
2186
|
this.shadowEle = document.createElement('div');
|
2187
|
-
this.shadowEle.classList.add('e-holder');
|
2188
|
-
this.shadowEle.classList.add('e-holder-transition');
|
2187
|
+
this.shadowEle.classList.add('e-holder', 'e-holder-transition');
|
2189
2188
|
setStyle(this.shadowEle, { 'position': 'absolute' });
|
2190
2189
|
addClass([this.element], [preventSelect]);
|
2191
2190
|
addClass([args.element], [dragging]);
|
2192
2191
|
this.element.appendChild(this.shadowEle);
|
2193
2192
|
this.renderReactTemplates();
|
2194
2193
|
this.shadowEle = document.querySelector('.e-holder');
|
2195
|
-
|
2196
|
-
|
2194
|
+
var panelValues = this.getCellInstance(args.element.id);
|
2195
|
+
var shadowSize = this.calculateShadowElementSize(panelValues.sizeX, panelValues.sizeY);
|
2196
|
+
this.shadowEle.style.height = shadowSize.height;
|
2197
|
+
this.shadowEle.style.width = shadowSize.width;
|
2197
2198
|
var panelInstance = this.getCellInstance(args.element.id);
|
2198
2199
|
this.setPanelPosition(this.shadowEle, panelInstance.row, panelInstance.col);
|
2199
2200
|
}
|
@@ -2329,12 +2330,17 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2329
2330
|
var heightValue = this.getCellSize()[1];
|
2330
2331
|
var top = row === 0 ? 0 : (((row) * (heightValue + this.cellSpacing[1])));
|
2331
2332
|
var left = col === 0 ? 0 : (((col) * (widthValue + this.cellSpacing[0])));
|
2332
|
-
var cellSizeOne = this.getCellSize()[1];
|
2333
|
-
var cellSizeZero = this.getCellSize()[0];
|
2334
2333
|
this.elementRef.top = this.shadowEle.style.top = top + 'px';
|
2335
2334
|
this.elementRef.left = this.shadowEle.style.left = left + 'px';
|
2336
|
-
|
2337
|
-
this.elementRef.
|
2335
|
+
var shadowSize = this.calculateShadowElementSize(sizeX, sizeY);
|
2336
|
+
this.elementRef.height = this.shadowEle.style.height = shadowSize.height;
|
2337
|
+
this.elementRef.width = this.shadowEle.style.width = shadowSize.width;
|
2338
|
+
};
|
2339
|
+
DashboardLayout.prototype.calculateShadowElementSize = function (sizeX, sizeY) {
|
2340
|
+
return {
|
2341
|
+
width: (sizeX * this.cellSize[0]) + ((sizeX - 1) * this.cellSpacing[0]) + 'px',
|
2342
|
+
height: (sizeY * this.cellSize[1]) + ((sizeY - 1) * this.cellSpacing[1]) + 'px'
|
2343
|
+
};
|
2338
2344
|
};
|
2339
2345
|
DashboardLayout.prototype.getCellInstance = function (idValue) {
|
2340
2346
|
var currentCellInstance;
|