@syncfusion/ej2-layouts 19.2.44 → 19.3.43
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 +1 -1
- package/CHANGELOG.md +22 -0
- 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 +103 -254
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +103 -255
- 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/helpers/e2e/dashboardHelper.d.ts +63 -0
- package/helpers/e2e/dashboardHelper.js +97 -0
- package/helpers/e2e/index.d.ts +1 -0
- package/helpers/e2e/index.js +1 -0
- package/package.json +6 -6
- package/src/dashboard-layout/dashboard-layout-model.d.ts +1 -22
- package/src/dashboard-layout/dashboard-layout.d.ts +0 -23
- package/src/dashboard-layout/dashboard-layout.js +32 -105
- package/src/splitter/splitter-model.d.ts +1 -1
- package/src/splitter/splitter.d.ts +1 -1
- package/src/splitter/splitter.js +73 -151
- package/styles/avatar/_bootstrap5-dark-definition.scss +1 -0
- package/styles/avatar/_bootstrap5-definition.scss +25 -0
- package/styles/avatar/_layout.scss +5 -5
- package/styles/avatar/_tailwind-dark-definition.scss +1 -25
- package/styles/avatar/bootstrap5-dark.css +61 -0
- package/styles/avatar/bootstrap5-dark.scss +3 -0
- package/styles/avatar/bootstrap5.css +61 -0
- package/styles/avatar/bootstrap5.scss +3 -0
- package/styles/bootstrap-dark.css +8 -0
- package/styles/bootstrap.css +8 -0
- package/styles/bootstrap4.css +8 -0
- package/styles/bootstrap5-dark.css +1618 -0
- package/styles/bootstrap5-dark.scss +4 -0
- package/styles/bootstrap5.css +1618 -0
- package/styles/bootstrap5.scss +4 -0
- package/styles/card/_bootstrap5-dark-definition.scss +1 -0
- package/styles/card/_bootstrap5-definition.scss +119 -0
- package/styles/card/_fabric-dark-definition.scss +5 -18
- package/styles/card/_layout.scss +2 -2
- package/styles/card/_tailwind-dark-definition.scss +1 -122
- package/styles/card/_tailwind-definition.scss +5 -9
- package/styles/card/bootstrap5-dark.css +593 -0
- package/styles/card/bootstrap5-dark.scss +3 -0
- package/styles/card/bootstrap5.css +593 -0
- package/styles/card/bootstrap5.scss +3 -0
- package/styles/card/fabric-dark.css +12 -12
- package/styles/card/tailwind-dark.css +2 -3
- package/styles/card/tailwind.css +0 -1
- package/styles/dashboard-layout/_bootstrap5-dark-definition.scss +1 -0
- package/styles/dashboard-layout/_bootstrap5-definition.scss +109 -0
- package/styles/dashboard-layout/_layout.scss +14 -5
- package/styles/dashboard-layout/_tailwind-dark-definition.scss +1 -109
- package/styles/dashboard-layout/_tailwind-definition.scss +27 -28
- package/styles/dashboard-layout/_theme.scss +4 -4
- package/styles/dashboard-layout/bootstrap5-dark.css +393 -0
- package/styles/dashboard-layout/bootstrap5-dark.scss +4 -0
- package/styles/dashboard-layout/bootstrap5.css +393 -0
- package/styles/dashboard-layout/bootstrap5.scss +4 -0
- package/styles/dashboard-layout/icons/_bootstrap5-dark.scss +1 -0
- package/styles/dashboard-layout/icons/_bootstrap5.scss +81 -0
- package/styles/dashboard-layout/material-dark.css +3 -3
- package/styles/dashboard-layout/tailwind-dark.css +10 -8
- package/styles/dashboard-layout/tailwind.css +5 -3
- package/styles/fabric-dark.css +20 -12
- package/styles/fabric.css +8 -0
- package/styles/highcontrast-light.css +8 -0
- package/styles/highcontrast.css +8 -0
- package/styles/material-dark.css +19 -11
- package/styles/material.css +8 -0
- package/styles/splitter/_bootstrap5-dark-definition.scss +1 -0
- package/styles/splitter/_bootstrap5-definition.scss +26 -0
- package/styles/splitter/_tailwind-dark-definition.scss +1 -23
- package/styles/splitter/_tailwind-definition.scss +14 -11
- package/styles/splitter/bootstrap-dark.css +8 -0
- package/styles/splitter/bootstrap.css +8 -0
- package/styles/splitter/bootstrap4.css +8 -0
- package/styles/splitter/bootstrap5-dark.css +568 -0
- package/styles/splitter/bootstrap5-dark.scss +4 -0
- package/styles/splitter/bootstrap5.css +568 -0
- package/styles/splitter/bootstrap5.scss +4 -0
- package/styles/splitter/fabric-dark.css +8 -0
- package/styles/splitter/fabric.css +8 -0
- package/styles/splitter/highcontrast-light.css +8 -0
- package/styles/splitter/highcontrast.css +8 -0
- package/styles/splitter/icons/_bootstrap-dark.scss +12 -0
- package/styles/splitter/icons/_bootstrap.scss +12 -0
- package/styles/splitter/icons/_bootstrap4.scss +12 -0
- package/styles/splitter/icons/_bootstrap5-dark.scss +1 -0
- package/styles/splitter/icons/_bootstrap5.scss +39 -0
- package/styles/splitter/icons/_fabric-dark.scss +12 -0
- package/styles/splitter/icons/_fabric.scss +12 -0
- package/styles/splitter/icons/_highcontrast-light.scss +12 -0
- package/styles/splitter/icons/_highcontrast.scss +12 -0
- package/styles/splitter/icons/_material-dark.scss +12 -0
- package/styles/splitter/icons/_material.scss +12 -0
- package/styles/splitter/icons/_tailwind-dark.scss +1 -39
- package/styles/splitter/icons/_tailwind.scss +12 -0
- package/styles/splitter/material-dark.css +16 -8
- package/styles/splitter/material.css +8 -0
- package/styles/splitter/tailwind-dark.css +14 -7
- package/styles/splitter/tailwind.css +8 -1
- package/styles/tailwind-dark.css +26 -18
- package/styles/tailwind.css +13 -5
@@ -18,8 +18,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
19
19
|
};
|
20
20
|
import { Component, Property, NotifyPropertyChanges, isUndefined } from '@syncfusion/ej2-base';
|
21
|
-
import { Collection, Draggable, isNullOrUndefined, append,
|
22
|
-
import { Event, formatUnit, ChildProperty, compile, closest,
|
21
|
+
import { Collection, Draggable, isNullOrUndefined, append, setValue } from '@syncfusion/ej2-base';
|
22
|
+
import { Event, formatUnit, ChildProperty, compile, closest, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';
|
23
23
|
import { setStyleAttribute as setStyle, addClass, detach, removeClass, EventHandler, Browser, extend } from '@syncfusion/ej2-base';
|
24
24
|
// constant class definitions
|
25
25
|
var preventSelect = 'e-prevent';
|
@@ -129,7 +129,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
129
129
|
_this.mouseY = 0;
|
130
130
|
_this.minTop = 0;
|
131
131
|
_this.minLeft = 0;
|
132
|
-
_this.isBlazor = false;
|
133
132
|
_this.isInlineRendering = false;
|
134
133
|
_this.removeAllCalled = false;
|
135
134
|
// to check whether removePanel is executed in mobile device
|
@@ -146,7 +145,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
146
145
|
* @private
|
147
146
|
*/
|
148
147
|
DashboardLayout.prototype.preRender = function () {
|
149
|
-
this.isBlazor = (isBlazor() && this.isServerRendered);
|
150
148
|
this.panelCollection = [];
|
151
149
|
this.sortedArray = [];
|
152
150
|
this.gridPanelCollection = [];
|
@@ -197,16 +195,8 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
197
195
|
}
|
198
196
|
this.updateDragArea();
|
199
197
|
this.renderComplete();
|
200
|
-
this.updateServerPanelData();
|
201
198
|
this.renderReactTemplates();
|
202
199
|
};
|
203
|
-
DashboardLayout.prototype.updateServerPanelData = function () {
|
204
|
-
if (isBlazor() && this.isServerRendered) {
|
205
|
-
this.setProperties({ panels: this.panels }, true);
|
206
|
-
this.allowServerDataBinding = true;
|
207
|
-
this.serverDataBind();
|
208
|
-
}
|
209
|
-
};
|
210
200
|
DashboardLayout.prototype.initGridLines = function () {
|
211
201
|
this.table = document.createElement('table');
|
212
202
|
var tbody = document.createElement('tbody');
|
@@ -230,8 +220,7 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
230
220
|
};
|
231
221
|
DashboardLayout.prototype.initialize = function () {
|
232
222
|
this.updateRowHeight();
|
233
|
-
if (this.element.childElementCount > 0 && this.element.querySelectorAll('.e-panel').length > 0
|
234
|
-
&& !(this.isBlazor && this.panels.length > 0)) {
|
223
|
+
if (this.element.childElementCount > 0 && this.element.querySelectorAll('.e-panel').length > 0) {
|
235
224
|
var panelElements = [];
|
236
225
|
this.setProperties({ panels: [] }, true);
|
237
226
|
this.isInlineRendering = true;
|
@@ -255,9 +244,7 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
255
244
|
this.panelPropertyChange(this.panels[i], { col: colValue < 0 ? 0 : colValue });
|
256
245
|
}
|
257
246
|
this.setXYAttributes(panelElement, this.panels[i]);
|
258
|
-
this.isBlazor = false;
|
259
247
|
var panel_1 = this.renderPanels(panelElement, this.panels[i], this.panels[i].id, false);
|
260
|
-
this.isBlazor = (isBlazor() && this.isServerRendered);
|
261
248
|
this.panelCollection.push(panel_1);
|
262
249
|
this.setHeightAndWidth(panelElement, this.panels[i]);
|
263
250
|
this.tempObject = this;
|
@@ -288,9 +275,7 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
288
275
|
if (!(this.checkMediaQuery())) {
|
289
276
|
this.panelResponsiveUpdate();
|
290
277
|
}
|
291
|
-
|
292
|
-
this.setEnableRtl();
|
293
|
-
}
|
278
|
+
this.setEnableRtl();
|
294
279
|
};
|
295
280
|
DashboardLayout.prototype.checkMediaQuery = function () {
|
296
281
|
return (this.mediaQuery && window.matchMedia('(' + this.mediaQuery + ')').matches);
|
@@ -407,31 +392,24 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
407
392
|
}
|
408
393
|
};
|
409
394
|
DashboardLayout.prototype.renderPanels = function (cellElement, panelModel, panelId, isStringTemplate) {
|
410
|
-
|
411
|
-
addClass([cellElement], [panel, panelTransition]);
|
412
|
-
}
|
395
|
+
addClass([cellElement], [panel, panelTransition]);
|
413
396
|
var cssClass = panelModel.cssClass ? panelModel.cssClass.split(' ') : null;
|
414
397
|
this.panelContent = cellElement.querySelector('.e-panel-container') ?
|
415
398
|
cellElement.querySelector('.e-panel-container') :
|
416
399
|
this.createSubElement(cssClass, cellElement.id + '_content', panelContainer);
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
this.disablePanel(cellElement);
|
421
|
-
}
|
400
|
+
cellElement.appendChild(this.panelContent);
|
401
|
+
if (!panelModel.enabled) {
|
402
|
+
this.disablePanel(cellElement);
|
422
403
|
}
|
423
404
|
if (panelModel.header) {
|
424
405
|
var headerTemplateElement = cellElement.querySelector('.e-panel-header') ?
|
425
406
|
cellElement.querySelector('.e-panel-header') : this.createSubElement([], cellElement.id + 'template', '');
|
426
|
-
|
427
|
-
|
428
|
-
}
|
429
|
-
if (!cellElement.querySelector('.e-panel-header') && !this.isBlazor) {
|
407
|
+
addClass([headerTemplateElement], [header]);
|
408
|
+
if (!cellElement.querySelector('.e-panel-header')) {
|
430
409
|
var id = this.element.id + 'HeaderTemplate' + panelId;
|
431
410
|
this.renderTemplate(panelModel.header, headerTemplateElement, id, isStringTemplate, 'header');
|
432
411
|
this.panelContent.appendChild(headerTemplateElement);
|
433
412
|
this.renderReactTemplates();
|
434
|
-
updateBlazorTemplate(id, 'HeaderTemplate', panelModel);
|
435
413
|
}
|
436
414
|
}
|
437
415
|
if (panelModel.content) {
|
@@ -442,12 +420,11 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
442
420
|
window.getComputedStyle(this.panelContent.querySelector('.e-panel-header')).height : '0px';
|
443
421
|
var contentHeightValue = 'calc( 100% - ' + headerHeight + ')';
|
444
422
|
setStyle(this.panelBody, { height: contentHeightValue });
|
445
|
-
if (!cellElement.querySelector('.e-panel-content')
|
423
|
+
if (!cellElement.querySelector('.e-panel-content')) {
|
446
424
|
var id = this.element.id + 'ContentTemplate' + panelId;
|
447
425
|
this.renderTemplate(panelModel.content, this.panelBody, id, isStringTemplate, 'content');
|
448
426
|
this.panelContent.appendChild(this.panelBody);
|
449
427
|
this.renderReactTemplates();
|
450
|
-
updateBlazorTemplate(id, 'ContentTemplate', panelModel);
|
451
428
|
}
|
452
429
|
}
|
453
430
|
return cellElement;
|
@@ -703,7 +680,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
703
680
|
if (isNullOrUndefined(this.downTarget)) {
|
704
681
|
return;
|
705
682
|
}
|
706
|
-
this.updateServerPanelData();
|
707
683
|
this.upTarget = this.downTarget;
|
708
684
|
var el = closest((this.upTarget), '.e-panel');
|
709
685
|
var args = { event: e, element: el, isInteracted: true };
|
@@ -987,18 +963,9 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
987
963
|
panelElement.style.height = '' + updatedHeight + 'px';
|
988
964
|
}
|
989
965
|
this.resizeHeight = true;
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
panelProp.col = 0;
|
994
|
-
this.panelPropertyChange(updatedPanel[i], panelProp);
|
995
|
-
this.setPanelPosition(panelElement, i, 0);
|
996
|
-
}
|
997
|
-
else {
|
998
|
-
this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
|
999
|
-
this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
|
1000
|
-
this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
|
1001
|
-
}
|
966
|
+
this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
|
967
|
+
this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
|
968
|
+
this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
|
1002
969
|
this.setClasses(this.panelCollection);
|
1003
970
|
this.checkDragging(this.dragCollection);
|
1004
971
|
this.removeResizeClasses(this.panelCollection);
|
@@ -1050,40 +1017,24 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
1050
1017
|
if (isUndefined(panel.enabled)) {
|
1051
1018
|
panel.enabled = true;
|
1052
1019
|
}
|
1053
|
-
if (this.
|
1054
|
-
cellElement =
|
1055
|
-
|
1056
|
-
|
1057
|
-
if (this.contentTemplateChild.length > 0 && !isNullOrUndefined(index)) {
|
1058
|
-
cellElement = this.contentTemplateChild[index];
|
1059
|
-
if (panel.cssClass) {
|
1060
|
-
addClass([cellElement], [panel.cssClass]);
|
1061
|
-
}
|
1062
|
-
if (panel.id) {
|
1063
|
-
cellElement.setAttribute('id', panel.id);
|
1064
|
-
}
|
1020
|
+
if (this.contentTemplateChild.length > 0 && !isNullOrUndefined(index)) {
|
1021
|
+
cellElement = this.contentTemplateChild[index];
|
1022
|
+
if (panel.cssClass) {
|
1023
|
+
addClass([cellElement], [panel.cssClass]);
|
1065
1024
|
}
|
1066
|
-
|
1067
|
-
cellElement
|
1025
|
+
if (panel.id) {
|
1026
|
+
cellElement.setAttribute('id', panel.id);
|
1068
1027
|
}
|
1069
|
-
cellElement.style.zIndex = '' + panel.zIndex;
|
1070
|
-
this.element.appendChild(cellElement);
|
1071
|
-
this.renderReactTemplates();
|
1072
|
-
}
|
1073
|
-
var dashBoardCell = this.renderPanels(cellElement, panel, panel.id, isStringTemplate);
|
1074
|
-
this.panelCollection.push(dashBoardCell);
|
1075
|
-
if (!this.isBlazor) {
|
1076
|
-
this.setXYAttributes(cellElement, panel);
|
1077
1028
|
}
|
1078
1029
|
else {
|
1079
|
-
|
1080
|
-
if (bodyElement) {
|
1081
|
-
var headerHeight = cellElement.querySelector('.e-panel-header') ?
|
1082
|
-
window.getComputedStyle(cellElement.querySelector('.e-panel-header')).height : '0px';
|
1083
|
-
var contentHeightValue = 'calc( 100% - ' + headerHeight + ')';
|
1084
|
-
setStyle(bodyElement, { height: contentHeightValue });
|
1085
|
-
}
|
1030
|
+
cellElement = this.createPanelElement(panel.cssClass ? panel.cssClass.split(' ') : null, panel.id);
|
1086
1031
|
}
|
1032
|
+
cellElement.style.zIndex = '' + panel.zIndex;
|
1033
|
+
this.element.appendChild(cellElement);
|
1034
|
+
this.renderReactTemplates();
|
1035
|
+
var dashBoardCell = this.renderPanels(cellElement, panel, panel.id, isStringTemplate);
|
1036
|
+
this.panelCollection.push(dashBoardCell);
|
1037
|
+
this.setXYAttributes(cellElement, panel);
|
1087
1038
|
this.setHeightAndWidth(cellElement, panel);
|
1088
1039
|
return cellElement;
|
1089
1040
|
};
|
@@ -1153,7 +1104,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
1153
1104
|
}
|
1154
1105
|
};
|
1155
1106
|
DashboardLayout.prototype.panelPropertyChange = function (panel, value) {
|
1156
|
-
this.allowServerDataBinding = false;
|
1157
1107
|
// eslint-disable-next-line
|
1158
1108
|
panel.setProperties(value, true);
|
1159
1109
|
};
|
@@ -1161,20 +1111,16 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
1161
1111
|
if (this.element.querySelectorAll('.e-panel').length > 0 || this.panels.length > 0) {
|
1162
1112
|
for (var j = 0; j < cells.length; j++) {
|
1163
1113
|
this.gridPanelCollection.push(cells[j]);
|
1164
|
-
|
1165
|
-
this.setMinMaxValues(cells[j]);
|
1166
|
-
}
|
1114
|
+
this.setMinMaxValues(cells[j]);
|
1167
1115
|
if (this.maxColumnValue < cells[j].col || this.maxColumnValue < (cells[j].col + cells[j].sizeX)) {
|
1168
1116
|
this.panelPropertyChange(cells[j], { col: this.maxColumnValue - cells[j].sizeX });
|
1169
1117
|
}
|
1170
1118
|
var cell = this.renderCell(cells[j], false, j);
|
1171
|
-
if (
|
1172
|
-
|
1173
|
-
addClass([cell], 'e-rtl');
|
1174
|
-
}
|
1175
|
-
this.element.appendChild(cell);
|
1176
|
-
this.renderReactTemplates();
|
1119
|
+
if (this.enableRtl) {
|
1120
|
+
addClass([cell], 'e-rtl');
|
1177
1121
|
}
|
1122
|
+
this.element.appendChild(cell);
|
1123
|
+
this.renderReactTemplates();
|
1178
1124
|
if (this.checkMediaQuery() && j === cells.length - 1) {
|
1179
1125
|
this.checkMediaQuerySizing();
|
1180
1126
|
}
|
@@ -2113,7 +2059,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2113
2059
|
var panelInstance = _this.getCellInstance(args.element.id);
|
2114
2060
|
_this.setPanelPosition(args.element, panelInstance.row, panelInstance.col);
|
2115
2061
|
_this.updatePanels();
|
2116
|
-
_this.updateServerPanelData();
|
2117
2062
|
_this.updateCloneArrayObject();
|
2118
2063
|
_this.checkForChanges(true);
|
2119
2064
|
_this.dragStopEventArgs = { event: args.event, element: args.element };
|
@@ -2159,9 +2104,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2159
2104
|
DashboardLayout.prototype.onDraggingStart = function (args) {
|
2160
2105
|
var dragArgs = args;
|
2161
2106
|
this.trigger('dragStart', dragArgs, function (dragArgs) {
|
2162
|
-
if (isBlazor()) {
|
2163
|
-
dragArgs.bindEvents(args.element);
|
2164
|
-
}
|
2165
2107
|
});
|
2166
2108
|
this.panelsInitialModel = this.cloneModels(this.panels);
|
2167
2109
|
this.mainElement = args.element;
|
@@ -2333,7 +2275,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2333
2275
|
*/
|
2334
2276
|
DashboardLayout.prototype.addPanel = function (panel) {
|
2335
2277
|
this.panelsSizeY = 0;
|
2336
|
-
this.allowServerDataBinding = false;
|
2337
2278
|
this.maxCol();
|
2338
2279
|
if (!panel.minSizeX) {
|
2339
2280
|
panel.minSizeX = 1;
|
@@ -2361,9 +2302,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2361
2302
|
this.addPanelCalled = true;
|
2362
2303
|
if (this.checkMediaQuery()) {
|
2363
2304
|
this.checkMediaQuerySizing();
|
2364
|
-
if (this.isBlazor) {
|
2365
|
-
cell.style.removeProperty('visibility');
|
2366
|
-
}
|
2367
2305
|
this.removeResizeClasses(this.panelCollection);
|
2368
2306
|
}
|
2369
2307
|
else {
|
@@ -2372,9 +2310,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2372
2310
|
this.checkCollision = [];
|
2373
2311
|
}
|
2374
2312
|
this.setPanelPosition(cell, panelProp.row, panelProp.col);
|
2375
|
-
if (this.isBlazor) {
|
2376
|
-
cell.style.removeProperty('visibility');
|
2377
|
-
}
|
2378
2313
|
this.updatePanelLayout(cell, panelProp);
|
2379
2314
|
}
|
2380
2315
|
this.addPanelCalled = false;
|
@@ -2400,8 +2335,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2400
2335
|
}
|
2401
2336
|
}
|
2402
2337
|
this.checkForChanges(false, [panelProp]);
|
2403
|
-
this.allowServerDataBinding = true;
|
2404
|
-
this.serverDataBind();
|
2405
2338
|
};
|
2406
2339
|
/**
|
2407
2340
|
* Allows to update a panel in the DashboardLayout.
|
@@ -2510,7 +2443,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2510
2443
|
this.clearTemplate();
|
2511
2444
|
}
|
2512
2445
|
this.removeAllPanel();
|
2513
|
-
this.updateServerPanelData();
|
2514
2446
|
this.rows = 0;
|
2515
2447
|
this.gridPanelCollection = [];
|
2516
2448
|
this.setHeightWidth();
|
@@ -2560,7 +2492,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2560
2492
|
this.checkMediaQuerySizing();
|
2561
2493
|
this.isPanelRemoved = false;
|
2562
2494
|
}
|
2563
|
-
this.updateServerPanelData();
|
2564
2495
|
this.gridPanelCollection.forEach(function (item) {
|
2565
2496
|
if (item.id === id) {
|
2566
2497
|
_this.gridPanelCollection.splice(_this.gridPanelCollection.indexOf(item), 1);
|
@@ -2604,7 +2535,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2604
2535
|
this.updatePanelLayout(ele, panelInstance);
|
2605
2536
|
this.updateRowHeight();
|
2606
2537
|
this.updatePanels();
|
2607
|
-
this.updateServerPanelData();
|
2608
2538
|
this.updateCloneArrayObject();
|
2609
2539
|
this.mainElement = null;
|
2610
2540
|
if (this.allowFloating) {
|
@@ -2667,7 +2597,6 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2667
2597
|
this.setHeightAndWidth(ele, panelInstance);
|
2668
2598
|
this.updatePanelLayout(ele, panelInstance);
|
2669
2599
|
this.updatePanels();
|
2670
|
-
this.updateServerPanelData();
|
2671
2600
|
this.updateRowHeight();
|
2672
2601
|
this.resizeCalled = false;
|
2673
2602
|
this.trigger('resizeStop', args);
|
@@ -2729,12 +2658,10 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
2729
2658
|
if (this.table) {
|
2730
2659
|
this.table.remove();
|
2731
2660
|
}
|
2732
|
-
this.isBlazor = false;
|
2733
2661
|
this.initialize();
|
2734
2662
|
if (this.checkMediaQuery()) {
|
2735
2663
|
this.refresh();
|
2736
2664
|
}
|
2737
|
-
this.isBlazor = (isBlazor() && this.isServerRendered);
|
2738
2665
|
if (this.showGridLines) {
|
2739
2666
|
this.initGridLines();
|
2740
2667
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component, Property, setStyleAttribute, ChildProperty, compile
|
1
|
+
import { Component, Property, setStyleAttribute, ChildProperty, compile } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, addClass, Collection, isNullOrUndefined } from '@syncfusion/ej2-base';import { Event, EmitType, EventHandler, selectAll, removeClass, select, Browser, detach, formatUnit } from '@syncfusion/ej2-base';import { SanitizeHtmlHelper, extend } from '@syncfusion/ej2-base';
|
2
2
|
import {Orientation,BeforeSanitizeHtmlArgs,ResizeEventArgs,ResizingEventArgs,BeforeExpandEventArgs,ExpandedEventArgs} from "./splitter";
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
4
4
|
|
@@ -336,6 +336,7 @@ export declare class Splitter extends Component<HTMLElement> {
|
|
336
336
|
private onDocumentClick;
|
337
337
|
private checkPaneSize;
|
338
338
|
private onMove;
|
339
|
+
private getMinInPixel;
|
339
340
|
/**
|
340
341
|
* @param {string} value - specifies the string value
|
341
342
|
* @returns {string} returns the string
|
@@ -344,7 +345,6 @@ export declare class Splitter extends Component<HTMLElement> {
|
|
344
345
|
sanitizeHelper(value: string): string;
|
345
346
|
private checkDataAttributes;
|
346
347
|
private destroyPaneSettings;
|
347
|
-
private checkBlazor;
|
348
348
|
private setPaneSettings;
|
349
349
|
private checkArrow;
|
350
350
|
private removeDataPrefix;
|