@syncfusion/ej2-layouts 20.4.42 → 20.4.53

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.
@@ -1130,18 +1130,21 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1130
1130
  }
1131
1131
  e.target.classList.add(SPLIT_BAR_HOVER);
1132
1132
  }
1133
+ this.splitterDetails(e);
1133
1134
  var icon = e.target;
1134
- if (icon.classList.contains(ARROW_LEFT) || icon.classList.contains(ARROW_UP)) {
1135
- this.collapseAction(e);
1136
- }
1137
- if (icon.classList.contains(ARROW_RIGHT) || icon.classList.contains(ARROW_DOWN)) {
1138
- this.expandAction(e);
1135
+ if (icon.classList.contains(ARROW_LEFT) || icon.classList.contains(ARROW_RIGHT) ||
1136
+ icon.classList.contains(ARROW_DOWN) || icon.classList.contains(ARROW_UP)) {
1137
+ if (!this.nextPane.classList.contains(PANE_HIDDEN) && !this.previousPane.classList.contains(PANE_HIDDEN)) {
1138
+ this.collapseAction(e);
1139
+ }
1140
+ else {
1141
+ this.expandAction(e);
1142
+ }
1143
+ this.updateSplitterSize();
1139
1144
  }
1140
- this.updateSplitterSize();
1141
1145
  };
1142
1146
  Splitter.prototype.expandAction = function (e) {
1143
1147
  var _this = this;
1144
- this.splitterDetails(e);
1145
1148
  var eventArgs = this.beforeAction(e);
1146
1149
  if (this.expandFlag) {
1147
1150
  this.trigger('beforeExpand', eventArgs, function (beforeExpandArgs) {
@@ -1156,6 +1159,12 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1156
1159
  this.expandPane(e);
1157
1160
  }
1158
1161
  };
1162
+ Splitter.prototype.getIcon = function (e) {
1163
+ var targetClass = e.target.className.split(' ').filter(function (className) {
1164
+ return className !== NAVIGATE_ARROW && className !== HIDE_ICON;
1165
+ });
1166
+ return targetClass[0];
1167
+ };
1159
1168
  Splitter.prototype.expandPane = function (e) {
1160
1169
  this.removeStaticPanes();
1161
1170
  var collapseCount = this.element.querySelectorAll('.' + COLLAPSE_PANE).length;
@@ -1164,46 +1173,41 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1164
1173
  !this.nextPane.classList.contains(EXPAND_PANE) && this.nextPane.nextElementSibling.classList.contains(PANE) &&
1165
1174
  !this.nextPane.nextElementSibling.classList.contains(STATIC_PANE) && !(collapseCount === this.allPanes.length - 2));
1166
1175
  var collapseClass = [COLLAPSE_PANE, PANE_HIDDEN];
1167
- if (!this.previousPane.classList.contains(COLLAPSE_PANE)) {
1168
- removeClass([this.nextPane], EXPAND_PANE);
1169
- removeClass([this.previousPane], collapseClass);
1170
- addClass([this.previousPane], EXPAND_PANE);
1171
- addClass([this.nextPane], collapseClass);
1172
- if (this.expandFlag) {
1173
- this.updatePaneSettings(this.nextPaneIndex, true);
1176
+ var icon = this.getIcon(e);
1177
+ var isLeftOrUp = icon === ARROW_LEFT || icon === ARROW_UP;
1178
+ var collapsePane = isLeftOrUp ? this.nextPane : this.previousPane;
1179
+ var expandPane = isLeftOrUp ? this.previousPane : this.nextPane;
1180
+ var expandPaneIndex = isLeftOrUp ? this.nextPaneIndex : this.prevPaneIndex;
1181
+ removeClass([collapsePane], collapseClass);
1182
+ collapsePane.setAttribute('aria-hidden', 'false');
1183
+ // cCount is calculated after removing the COLLAPSE_PANE
1184
+ var cCount = this.element.querySelectorAll('.' + COLLAPSE_PANE).length;
1185
+ if (cCount > 0) {
1186
+ if (!expandPane.classList.contains(COLLAPSE_PANE)) {
1187
+ addClass([expandPane], EXPAND_PANE);
1188
+ expandPane.setAttribute('aria-expanded', 'true');
1189
+ }
1190
+ }
1191
+ else if (cCount === 0) {
1192
+ for (var i = 0; i < this.allPanes.length; i++) {
1193
+ if (!this.allPanes[i].classList.contains(COLLAPSE_PANE)) {
1194
+ removeClass([this.allPanes[i]], EXPAND_PANE);
1195
+ this.allPanes[i].setAttribute('aria-expanded', 'false');
1196
+ }
1174
1197
  }
1175
1198
  }
1176
- else {
1177
- removeClass([this.previousPane], collapseClass);
1178
- removeClass([this.nextPane], EXPAND_PANE);
1179
- if (this.expandFlag) {
1180
- this.updatePaneSettings(this.prevPaneIndex, false);
1181
- }
1199
+ if (this.expandFlag) {
1200
+ this.updatePaneSettings(expandPaneIndex, false);
1182
1201
  }
1183
- this.updateIconsOnExpand(e);
1184
- this.previousPane.setAttribute('aria-expanded', 'true');
1185
- this.nextPane.setAttribute('aria-expanded', 'false');
1186
- this.updateFlexGrow(this.checkStaticPanes());
1202
+ this.updateIconsOnExpand(e, icon);
1203
+ this.updateFlexGrow();
1187
1204
  if (flexStatus) {
1188
1205
  this.previousPane.classList.remove(EXPAND_PANE);
1206
+ this.previousPane.setAttribute('aria-expanded', 'false');
1189
1207
  this.previousPane.style.flexGrow = '';
1190
1208
  }
1191
1209
  };
1192
- Splitter.prototype.checkStaticPanes = function () {
1193
- var staticPane = true;
1194
- for (var i = 0; i < this.allPanes.length; i++) {
1195
- if (!this.allPanes[i].classList.contains(COLLAPSE_PANE) && staticPane) {
1196
- if (this.allPanes[i].classList.contains(STATIC_PANE)) {
1197
- staticPane = true;
1198
- }
1199
- else {
1200
- staticPane = false;
1201
- }
1202
- }
1203
- }
1204
- return staticPane;
1205
- };
1206
- Splitter.prototype.updateFlexGrow = function (status) {
1210
+ Splitter.prototype.updateFlexGrow = function () {
1207
1211
  var collapseCount = 0;
1208
1212
  for (var j = 0; j < this.element.children.length; j++) {
1209
1213
  if (this.element.children[j].classList.contains(COLLAPSE_PANE)) {
@@ -1214,9 +1218,6 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1214
1218
  var panes = this.allPanes;
1215
1219
  for (var i = 0; i < panes.length; i++) {
1216
1220
  panes[i].style.flexGrow = '';
1217
- if (status && !this.nextPane.classList.contains(COLLAPSE_PANE)) {
1218
- this.nextPane.style.flexGrow = '1';
1219
- }
1220
1221
  if (visiblePane && this.allPanes[i].classList.contains(COLLAPSE_PANE) && this.paneSettings[i].size &&
1221
1222
  i !== this.allPanes.length - 1) {
1222
1223
  panes[i].style.flexGrow = '';
@@ -1235,76 +1236,66 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1235
1236
  Splitter.prototype.showTargetBarIcon = function (targetBar, targetArrow) {
1236
1237
  removeClass([select('.' + targetArrow, targetBar)], HIDE_ICON);
1237
1238
  };
1238
- Splitter.prototype.updateIconsOnCollapse = function (e) {
1239
+ Splitter.prototype.updateIconsOnCollapse = function (e, targetIcon) {
1239
1240
  this.splitterProperty();
1240
- if (this.previousPane.classList.contains(COLLAPSE_PANE) && !this.nextPane.classList.contains(COLLAPSE_PANE)) {
1241
- addClass([e.target], HIDE_ICON);
1242
- if (this.paneSettings[this.prevPaneIndex].collapsible) {
1243
- this.showCurrentBarIcon();
1244
- }
1245
- this.resizableModel(this.currentBarIndex, false);
1246
- if (this.previousPane.classList.contains(COLLAPSE_PANE) && !this.nextPane.classList.contains(COLLAPSE_PANE) &&
1247
- !this.paneSettings[this.prevPaneIndex].collapsible) {
1248
- this.hideTargetBarIcon(this.prevBar, this.rightArrow);
1249
- }
1250
- if (this.previousPane.previousElementSibling && !this.previousPane.previousElementSibling.classList.contains(COLLAPSE_PANE)) {
1251
- if (this.previousPane.classList.contains(COLLAPSE_PANE) && this.paneSettings[this.prevPaneIndex].collapsible) {
1252
- this.showTargetBarIcon(this.prevBar, this.leftArrow);
1241
+ var removeIcon = this.arrow;
1242
+ var otherBar = this.currentBarIndex === (this.allBars.length - 1) ? this.prevBar : this.nextBar;
1243
+ var otherBarIndex = this.currentBarIndex === (this.allBars.length - 1) ? this.currentBarIndex - 1
1244
+ : this.currentBarIndex + 1;
1245
+ if (!e.target.classList.contains(HIDE_ICON)) {
1246
+ if (this.splitInstance.prevPaneCollapsed || this.splitInstance.nextPaneCollapsed) {
1247
+ if (this.paneSettings[this.prevPaneIndex].collapsible && this.paneSettings[this.nextPaneIndex].collapsible) {
1248
+ this.resizableModel(this.currentBarIndex, false);
1249
+ this.hideTargetBarIcon(this.currentSeparator, targetIcon);
1250
+ if (!isNullOrUndefined(otherBar)) {
1251
+ var otherPrevPaneIndex = otherBarIndex;
1252
+ var otherNextPaneIndex = otherBarIndex + 1;
1253
+ var collapsecount = this.getCollapseCount(otherPrevPaneIndex, otherNextPaneIndex);
1254
+ if (this.paneSettings[otherPrevPaneIndex].collapsible &&
1255
+ this.paneSettings[otherNextPaneIndex].collapsible) {
1256
+ if (collapsecount === 1) {
1257
+ this.hideTargetBarIcon(otherBar, removeIcon);
1258
+ this.resizableModel(otherBarIndex, false);
1259
+ }
1260
+ else if (collapsecount === 2) {
1261
+ this.hideBarIcons(otherBar);
1262
+ this.resizableModel(otherBarIndex, false);
1263
+ }
1264
+ if (!this.paneSettings[otherPrevPaneIndex].collapsible ||
1265
+ !this.paneSettings[otherNextPaneIndex].collapsible) {
1266
+ this.hideTargetBarIcon(otherBar, targetIcon);
1267
+ }
1268
+ }
1269
+ }
1253
1270
  }
1254
- else if (!this.paneSettings[this.prevPaneIndex].collapsible) {
1255
- this.hideTargetBarIcon(this.prevBar, this.leftArrow);
1271
+ else {
1272
+ this.showTargetBarIcon(this.currentSeparator, removeIcon);
1273
+ this.hideTargetBarIcon(this.currentSeparator, targetIcon);
1274
+ this.resizableModel(this.currentBarIndex, false);
1256
1275
  }
1257
1276
  }
1258
- if (!isNullOrUndefined(this.prevBar)) {
1259
- this.resizableModel(this.currentBarIndex - 1, false);
1260
- this.hideTargetBarIcon(this.prevBar, this.arrow);
1261
- }
1262
- if (!this.paneSettings[this.prevPaneIndex].collapsible) {
1263
- this.hideTargetBarIcon(this.currentSeparator, this.rightArrow);
1264
- }
1265
1277
  }
1266
- else if (!this.splitInstance.prevPaneCollapsed && !this.splitInstance.nextPaneExpanded) {
1267
- if (this.paneSettings[this.currentBarIndex].resizable) {
1268
- this.resizableModel(this.currentBarIndex, true);
1269
- }
1270
- if (!this.splitInstance.nextPaneNextEle.classList.contains(COLLAPSE_PANE) &&
1271
- this.paneSettings[this.currentBarIndex + 1].resizable) {
1272
- this.resizableModel(this.currentBarIndex + 1, true);
1273
- }
1274
- if (!this.paneSettings[this.currentBarIndex].collapsible) {
1275
- addClass([e.target], HIDE_ICON);
1276
- }
1277
- if (this.previousPane && this.prevPaneIndex === 0 && (this.paneSettings[this.prevPaneIndex].collapsible)) {
1278
- this.showTargetBarIcon(this.currentSeparator, this.leftArrow);
1279
- }
1280
- if (this.nextPane && this.nextPaneIndex === this.allPanes.length - 1 && (this.paneSettings[this.nextPaneIndex].collapsible)) {
1281
- this.showTargetBarIcon(this.getPrevBar(this.nextPaneIndex), this.rightArrow);
1282
- }
1283
- if (!(this.previousPane.classList.contains(COLLAPSE_PANE)) && this.paneSettings[this.nextPaneIndex].collapsible) {
1284
- this.showTargetBarIcon(this.currentSeparator, this.rightArrow);
1278
+ else {
1279
+ this.resizableModel(this.currentBarIndex, false);
1280
+ if (!isNullOrUndefined(otherBar)) {
1281
+ this.resizableModel(otherBarIndex, false);
1285
1282
  }
1286
- if (!isNullOrUndefined(this.nextBar)) {
1287
- if (this.nextPane.nextElementSibling && (this.nextPane.nextElementSibling.classList.contains(COLLAPSE_PANE) &&
1288
- this.paneSettings[this.nextPaneIndex + 1].collapsible) ||
1289
- (!this.nextPane.nextElementSibling.classList.contains(COLLAPSE_PANE) &&
1290
- this.paneSettings[this.nextPaneIndex].collapsible)) {
1291
- this.showTargetBarIcon(this.nextBar, this.leftArrow);
1292
- }
1293
- else if (!this.paneSettings[this.splitInstance.nextPaneIndex + 1].collapsible &&
1294
- this.paneSettings[this.currentBarIndex]) {
1295
- this.hideTargetBarIcon(this.nextBar, this.arrow);
1283
+ if (!this.paneSettings[this.prevPaneIndex].collapsible || !this.paneSettings[this.nextPaneIndex].collapsible) {
1284
+ if (!isNullOrUndefined(otherBar)) {
1285
+ this.hideTargetBarIcon(otherBar, targetIcon);
1296
1286
  }
1287
+ this.hideTargetBarIcon(this.currentSeparator, removeIcon);
1297
1288
  }
1298
- if (!(this.nextPaneIndex === this.allPanes.length - 1) && this.nextPane.nextElementSibling &&
1299
- !this.nextPane.classList.contains(COLLAPSE_PANE) && !this.nextPane.nextElementSibling.classList.contains(COLLAPSE_PANE)
1300
- && !this.paneSettings[this.nextPaneIndex + 1].collapsible) {
1301
- this.hideTargetBarIcon(this.nextBar, this.rightArrow);
1289
+ else {
1290
+ if (!isNullOrUndefined(otherBar)) {
1291
+ this.hideTargetBarIcon(otherBar, removeIcon);
1292
+ }
1293
+ this.showTargetBarIcon(this.currentSeparator, removeIcon);
1302
1294
  }
1303
1295
  }
1304
1296
  };
1305
1297
  Splitter.prototype.collapseAction = function (e) {
1306
1298
  var _this = this;
1307
- this.splitterDetails(e);
1308
1299
  var eventArgs = this.beforeAction(e);
1309
1300
  if (this.collapseFlag) {
1310
1301
  this.collapsePane(e);
@@ -1330,26 +1321,43 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1330
1321
  !(collapseCount === this.allPanes.length - 2)) || (this.nextPane.classList.contains(COLLAPSE_PANE) &&
1331
1322
  !this.previousPane.classList.contains(STATIC_PANE) && this.nextPane.classList.contains(STATIC_PANE));
1332
1323
  var collapseClass = [COLLAPSE_PANE, PANE_HIDDEN];
1333
- if (this.nextPane.classList.contains(COLLAPSE_PANE)) {
1334
- removeClass([this.previousPane], EXPAND_PANE);
1335
- removeClass([this.nextPane], collapseClass);
1336
- if (!this.collapseFlag) {
1337
- this.updatePaneSettings(this.nextPaneIndex, false);
1338
- }
1324
+ var icon = this.getIcon(e);
1325
+ var isLeftOrUp = icon === ARROW_LEFT || icon === ARROW_UP;
1326
+ var collapsePane = isLeftOrUp ? this.previousPane : this.nextPane;
1327
+ var expandPane = isLeftOrUp ? this.nextPane : this.previousPane;
1328
+ var collapsePaneIndex = isLeftOrUp ? this.prevPaneIndex : this.nextPaneIndex;
1329
+ removeClass([collapsePane], EXPAND_PANE);
1330
+ collapsePane.setAttribute('aria-expanded', 'false');
1331
+ addClass([collapsePane], collapseClass);
1332
+ collapsePane.setAttribute('aria-hidden', 'true');
1333
+ var isFlexPane = collapsePane.style.flexBasis === '';
1334
+ if (isFlexPane) {
1335
+ addClass([expandPane], EXPAND_PANE);
1336
+ expandPane.setAttribute('aria-expanded', 'true');
1339
1337
  }
1340
1338
  else {
1341
- removeClass([this.previousPane], EXPAND_PANE);
1342
- removeClass([this.nextPane], collapseClass);
1343
- addClass([this.nextPane], EXPAND_PANE);
1344
- addClass([this.previousPane], collapseClass);
1345
- if (!this.collapseFlag) {
1346
- this.updatePaneSettings(this.prevPaneIndex, true);
1347
- }
1348
- }
1349
- this.updateIconsOnCollapse(e);
1350
- this.previousPane.setAttribute('aria-expanded', 'false');
1351
- this.nextPane.setAttribute('aria-expanded', 'true');
1352
- this.updateFlexGrow(this.checkStaticPanes());
1339
+ var isFlexPaneHidden = true;
1340
+ for (var i = 0; i < this.allPanes.length; i++) {
1341
+ if (!this.allPanes[i].classList.contains(COLLAPSE_PANE)) {
1342
+ if (this.allPanes[i].style.flexBasis === '' && !this.allPanes[i].classList.contains(COLLAPSE_PANE)
1343
+ && !this.allPanes[i].classList.contains(EXPAND_PANE)) {
1344
+ addClass([this.allPanes[i]], EXPAND_PANE);
1345
+ this.allPanes[i].setAttribute('aria-expanded', 'true');
1346
+ isFlexPaneHidden = false;
1347
+ break;
1348
+ }
1349
+ }
1350
+ }
1351
+ if (isFlexPaneHidden) {
1352
+ addClass([expandPane], EXPAND_PANE);
1353
+ expandPane.setAttribute('aria-expanded', 'true');
1354
+ }
1355
+ }
1356
+ if (!this.collapseFlag) {
1357
+ this.updatePaneSettings(collapsePaneIndex, true);
1358
+ }
1359
+ this.updateIconsOnCollapse(e, icon);
1360
+ this.updateFlexGrow();
1353
1361
  if (flexStatus) {
1354
1362
  this.nextPane.classList.remove(EXPAND_PANE);
1355
1363
  this.nextPane.style.flexGrow = '';
@@ -1393,71 +1401,95 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1393
1401
  prevPanePreEle: this.previousPane.previousElementSibling
1394
1402
  };
1395
1403
  };
1396
- Splitter.prototype.showCurrentBarIcon = function () {
1404
+ Splitter.prototype.showCurrentBarIcons = function () {
1397
1405
  removeClass([select('.' + this.arrow, this.currentSeparator)], HIDE_ICON);
1398
1406
  };
1399
- Splitter.prototype.updateIconsOnExpand = function (e) {
1407
+ Splitter.prototype.hideBarIcons = function (bar) {
1408
+ addClass([select('.' + this.arrow, bar)], HIDE_ICON);
1409
+ };
1410
+ Splitter.prototype.getCollapseCount = function (prevPaneIndex, nextPaneIndex) {
1411
+ var collapsecount = 0;
1412
+ if (this.allPanes[prevPaneIndex].classList.contains(COLLAPSE_PANE)) {
1413
+ collapsecount = collapsecount + 1;
1414
+ }
1415
+ if (this.allPanes[nextPaneIndex].classList.contains(COLLAPSE_PANE)) {
1416
+ collapsecount = collapsecount + 1;
1417
+ }
1418
+ return collapsecount;
1419
+ };
1420
+ Splitter.prototype.checkResizableProp = function (prevPaneIndex, nextPaneIndex) {
1421
+ if (this.paneSettings[prevPaneIndex].resizable && this.paneSettings[nextPaneIndex].resizable) {
1422
+ return true;
1423
+ }
1424
+ else {
1425
+ return false;
1426
+ }
1427
+ };
1428
+ Splitter.prototype.updateIconsOnExpand = function (e, targetIcon) {
1400
1429
  this.splitterProperty();
1401
- addClass([e.target], HIDE_ICON);
1402
- if (!this.splitInstance.prevPaneExpanded && !this.splitInstance.nextPaneCollapsed) {
1403
- if (this.paneSettings[this.prevPaneIndex].collapsible) {
1404
- this.showCurrentBarIcon();
1405
- }
1406
- if (this.paneSettings[this.nextPaneIndex].collapsible) {
1407
- removeClass([e.target], HIDE_ICON);
1408
- }
1409
- if (this.paneSettings[this.currentBarIndex].resizable) {
1410
- this.resizableModel(this.currentBarIndex, true);
1411
- }
1412
- if (!isNullOrUndefined(this.prevBar) &&
1413
- !this.splitInstance.prevPanePreEle.classList.contains(COLLAPSE_PANE)) {
1414
- if (this.paneSettings[this.currentBarIndex - 1].resizable) {
1415
- this.resizableModel(this.currentBarIndex - 1, true);
1416
- }
1417
- if (this.paneSettings[this.prevPaneIndex].collapsible) {
1418
- this.showTargetBarIcon(this.prevBar, this.rightArrow);
1419
- }
1420
- if (!this.paneSettings[this.currentBarIndex - 1].collapsible) {
1421
- this.hideTargetBarIcon(this.prevBar, this.arrow);
1422
- if (this.paneSettings[this.currentBarIndex].collapsible &&
1423
- !this.paneSettings[this.currentBarIndex + 1].collapsible) {
1424
- this.hideTargetBarIcon(this.currentSeparator, this.rightArrow);
1430
+ var showIcon = this.arrow;
1431
+ var otherBar = this.currentBarIndex === (this.allBars.length - 1) ? this.prevBar : this.nextBar;
1432
+ var otherBarIndex = this.currentBarIndex === (this.allBars.length - 1) ?
1433
+ this.currentBarIndex - 1 : this.currentBarIndex + 1;
1434
+ if (!e.target.classList.contains(HIDE_ICON)) {
1435
+ // prevPane ! collapsed && nextPane ! collapsed
1436
+ if (!this.splitInstance.prevPaneCollapsed && !this.splitInstance.nextPaneCollapsed) {
1437
+ if (this.paneSettings[this.prevPaneIndex].collapsible && this.paneSettings[this.nextPaneIndex].collapsible) {
1438
+ this.showCurrentBarIcons();
1439
+ if (this.checkResizableProp(this.prevPaneIndex, this.nextPaneIndex)) {
1440
+ this.resizableModel(this.currentBarIndex, true);
1441
+ }
1442
+ else {
1443
+ this.resizableModel(this.currentBarIndex, false);
1444
+ }
1445
+ if (!isNullOrUndefined(otherBar)) {
1446
+ var otherPrevPaneIndex = otherBarIndex;
1447
+ var otherNextPaneIndex = otherBarIndex + 1;
1448
+ var collapsecount = this.getCollapseCount(otherPrevPaneIndex, otherNextPaneIndex);
1449
+ if (this.paneSettings[otherPrevPaneIndex].collapsible &&
1450
+ this.paneSettings[otherNextPaneIndex].collapsible) {
1451
+ if (collapsecount === 0) {
1452
+ this.showTargetBarIcon(otherBar, targetIcon);
1453
+ this.showTargetBarIcon(otherBar, showIcon);
1454
+ if (this.checkResizableProp(otherPrevPaneIndex, otherNextPaneIndex)) {
1455
+ this.resizableModel(otherBarIndex, true);
1456
+ }
1457
+ }
1458
+ else if (collapsecount === 1) {
1459
+ this.hideBarIcons(otherBar);
1460
+ // If condition Edge case in flexible cases
1461
+ if (this.allPanes[otherPrevPaneIndex].classList.contains(EXPAND_PANE) ||
1462
+ this.allPanes[otherNextPaneIndex].classList.contains(EXPAND_PANE)) {
1463
+ this.showTargetBarIcon(otherBar, showIcon);
1464
+ }
1465
+ else {
1466
+ // Common case
1467
+ this.showTargetBarIcon(otherBar, targetIcon);
1468
+ }
1469
+ this.resizableModel(otherBarIndex, false);
1470
+ }
1471
+ }
1425
1472
  }
1426
1473
  }
1427
- else if (this.paneSettings[this.currentBarIndex].collapsible &&
1428
- !this.paneSettings[this.currentBarIndex + 1].collapsible) {
1429
- this.hideTargetBarIcon(this.currentSeparator, this.rightArrow);
1430
- }
1431
- }
1432
- else {
1433
- if (this.previousPane.previousElementSibling && this.paneSettings[this.prevPaneIndex].collapsible &&
1434
- (this.previousPane.previousElementSibling.classList.contains(COLLAPSE_PANE) &&
1435
- this.paneSettings[this.prevPaneIndex - 1].collapsible)) {
1436
- this.showTargetBarIcon(this.prevBar, this.rightArrow);
1437
- }
1438
- if (!this.paneSettings[this.currentBarIndex + 1].collapsible) {
1439
- this.hideTargetBarIcon(this.currentSeparator, this.rightArrow);
1474
+ else {
1475
+ this.hideTargetBarIcon(this.currentSeparator, targetIcon);
1476
+ this.showTargetBarIcon(this.currentSeparator, showIcon);
1477
+ if (!this.splitInstance.prevPaneCollapsed && !this.splitInstance.nextPaneCollapsed) {
1478
+ if (this.checkResizableProp(this.prevPaneIndex, this.nextPaneIndex)) {
1479
+ this.resizableModel(this.currentBarIndex, true);
1480
+ }
1481
+ }
1482
+ else {
1483
+ this.resizableModel(this.currentBarIndex, false);
1484
+ }
1440
1485
  }
1441
1486
  }
1442
1487
  }
1443
- else if (this.splitInstance.prevPaneExpanded && this.splitInstance.nextPaneCollapsed) {
1444
- this.resizableModel(this.currentBarIndex, false);
1445
- this.resizableModel(this.currentBarIndex + 1, false);
1446
- if (this.paneSettings[this.nextPaneIndex].collapsible) {
1447
- this.showCurrentBarIcon();
1448
- }
1449
- if (!isNullOrUndefined(this.nextBar)) {
1450
- this.hideTargetBarIcon(this.nextBar, this.arrow);
1451
- }
1452
- if (this.nextPane && this.nextPaneIndex === this.allPanes.length - 1 && (!this.paneSettings[this.nextPaneIndex].collapsible &&
1453
- this.splitInstance.nextPaneCollapsed)) {
1454
- this.hideTargetBarIcon(this.currentSeparator, this.arrow);
1455
- }
1456
- if (!(this.nextPaneIndex === this.allPanes.length - 1) && this.nextPane.nextElementSibling &&
1457
- this.nextPane.classList.contains(COLLAPSE_PANE) &&
1458
- !this.nextPane.nextElementSibling.classList.contains(COLLAPSE_PANE)
1459
- && this.paneSettings[this.nextPaneIndex].collapsible) {
1460
- this.showTargetBarIcon(this.nextBar, this.rightArrow);
1488
+ else {
1489
+ if (!this.paneSettings[this.prevPaneIndex].collapsible && !this.paneSettings[this.nextPaneIndex].collapsible) {
1490
+ if (this.checkResizableProp(this.prevPaneIndex, this.nextPaneIndex)) {
1491
+ this.resizableModel(this.currentBarIndex, true);
1492
+ }
1461
1493
  }
1462
1494
  }
1463
1495
  };
@@ -1778,7 +1810,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1778
1810
  }
1779
1811
  var allFlexiblePanes = flexPaneCount === this.allPanes.length;
1780
1812
  // Two flexible Pane Case.
1781
- if (this.previousPane.style.flexBasis === '' && this.nextPane.style.flexBasis == '' && !allFlexiblePanes) {
1813
+ if (this.previousPane.style.flexBasis === '' && this.nextPane.style.flexBasis === '' && !allFlexiblePanes) {
1782
1814
  var middlePaneIndex = this.allPanes.length % this.allBars.length;
1783
1815
  if (this.prevPaneIndex === middlePaneIndex) {
1784
1816
  this.nextPane.style.flexBasis = this.nextPaneCurrentWidth;
@@ -2451,6 +2483,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
2451
2483
  // to maintain sizeY in mobile device
2452
2484
  _this.panelsSizeY = 0;
2453
2485
  _this.resizeHeight = false;
2486
+ _this.eventVar = false;
2454
2487
  setValue('mergePersistData', _this.mergePersistPanelData, _this);
2455
2488
  return _this;
2456
2489
  }
@@ -4328,69 +4361,90 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
4328
4361
  };
4329
4362
  DashboardLayout.prototype.enableDraggingContent = function (collections) {
4330
4363
  var _this = this;
4331
- for (var i = 0; i < collections.length; i++) {
4364
+ var _loop_6 = function (i) {
4332
4365
  var abortArray = ['.e-resize', '.' + dragRestrict];
4333
4366
  var cellElement = collections[i];
4334
4367
  {
4335
- this.dragobj = new Draggable(cellElement, {
4368
+ this_4.dragobj = new Draggable(cellElement, {
4336
4369
  preventDefault: false,
4337
4370
  clone: false,
4338
- dragArea: this.element,
4371
+ dragArea: this_4.element,
4339
4372
  isDragScroll: true,
4340
- handle: this.draggableHandle ? this.draggableHandle : '.e-panel',
4373
+ handle: this_4.draggableHandle ? this_4.draggableHandle : '.e-panel',
4341
4374
  abort: abortArray,
4342
- dragStart: this.onDraggingStart.bind(this),
4375
+ dragStart: this_4.onDraggingStart.bind(this_4),
4343
4376
  dragStop: function (args) {
4344
- var model = _this.getCellInstance(_this.mainElement.id);
4345
- if (_this.allowPushing &&
4346
- _this.collisions(model.row, model.col, model.sizeX, model.sizeY, _this.mainElement).length > 0) {
4347
- _this.setHolderPosition(args);
4348
- _this.setPanelPosition(_this.mainElement, model.row, model.col);
4349
- _this.updatePanelLayout(_this.mainElement, model);
4350
- }
4351
- else {
4352
- _this.setPanelPosition(_this.mainElement, model.row, model.col);
4353
- }
4354
- _this.mainElement = null;
4355
- var item = _this.getPanelBase(args);
4356
- if (_this.shadowEle) {
4357
- detach(_this.shadowEle);
4377
+ _this.trigger('dragStop', args);
4378
+ if (isNullOrUndefined(args.cancel)) {
4379
+ args.cancel = false;
4358
4380
  }
4359
- removeClass([_this.element], [preventSelect]);
4360
- removeClass([args.element], [dragging]);
4361
- _this.shadowEle = null;
4362
- args.element.classList.remove('e-dragging');
4363
- var row = _this.getRowColumnDragValues(args)[0];
4364
- var col = _this.getRowColumnDragValues(args)[1];
4365
- var panelModel = _this.getCellInstance(args.element.id);
4366
- if (_this.allowPushing &&
4367
- _this.collisions(row, col, panelModel.sizeX, panelModel.sizeY, document.getElementById(item.id)).length === 0) {
4368
- _this.panelPropertyChange(_this.getCellInstance(args.element.id), { row: row, col: col });
4369
- _this.oldRowCol[args.element.id].row = row;
4370
- _this.oldRowCol[args.element.id].col = col;
4371
- _this.setAttributes({ value: { col: col.toString(), row: row.toString() } }, args.element);
4372
- _this.sortedPanel();
4381
+ if (!(args.cancel)) {
4382
+ var model = _this.getCellInstance(_this.mainElement.id);
4383
+ if (_this.allowPushing &&
4384
+ _this.collisions(model.row, model.col, model.sizeX, model.sizeY, _this.mainElement).length > 0) {
4385
+ _this.setHolderPosition(args);
4386
+ _this.setPanelPosition(_this.mainElement, model.row, model.col);
4387
+ _this.updatePanelLayout(_this.mainElement, model);
4388
+ }
4389
+ else {
4390
+ _this.setPanelPosition(_this.mainElement, model.row, model.col);
4391
+ }
4392
+ _this.mainElement = null;
4393
+ var item = _this.getPanelBase(args);
4394
+ if (_this.shadowEle) {
4395
+ detach(_this.shadowEle);
4396
+ }
4397
+ removeClass([_this.element], [preventSelect]);
4398
+ removeClass([args.element], [dragging]);
4399
+ _this.shadowEle = null;
4400
+ args.element.classList.remove('e-dragging');
4401
+ var row = _this.getRowColumnDragValues(args)[0];
4402
+ var col = _this.getRowColumnDragValues(args)[1];
4403
+ var panelModel = _this.getCellInstance(args.element.id);
4404
+ if (_this.allowPushing &&
4405
+ _this.collisions(row, col, panelModel.sizeX, panelModel.sizeY, document.getElementById(item.id)).length === 0) {
4406
+ _this.panelPropertyChange(_this.getCellInstance(args.element.id), { row: row, col: col });
4407
+ _this.oldRowCol[args.element.id].row = row;
4408
+ _this.oldRowCol[args.element.id].col = col;
4409
+ _this.setAttributes({ value: { col: col.toString(), row: row.toString() } }, args.element);
4410
+ _this.sortedPanel();
4411
+ }
4412
+ else {
4413
+ _this.panelPropertyChange(_this.getCellInstance(args.element.id), {
4414
+ row: _this.oldRowCol[args.element.id].row,
4415
+ col: _this.oldRowCol[args.element.id].col
4416
+ });
4417
+ args.element.setAttribute('data-col', _this.getCellInstance(args.element.id).col.toString());
4418
+ args.element.setAttribute('data-row', _this.getCellInstance(args.element.id).row.toString());
4419
+ _this.sortedPanel();
4420
+ }
4421
+ var panelInstance = _this.getCellInstance(args.element.id);
4422
+ _this.setPanelPosition(args.element, panelInstance.row, panelInstance.col);
4423
+ _this.updatePanels();
4424
+ _this.updateCloneArrayObject();
4425
+ _this.checkForChanges(true);
4426
+ _this.dragStopEventArgs = { event: args.event, element: args.element };
4427
+ _this.resizeEvents();
4428
+ _this.rows = _this.maxRow(true);
4429
+ _this.setHeightWidth();
4430
+ _this.updateDragArea();
4373
4431
  }
4374
4432
  else {
4375
- _this.panelPropertyChange(_this.getCellInstance(args.element.id), {
4376
- row: _this.oldRowCol[args.element.id].row,
4377
- col: _this.oldRowCol[args.element.id].col
4378
- });
4379
- args.element.setAttribute('data-col', _this.getCellInstance(args.element.id).col.toString());
4380
- args.element.setAttribute('data-row', _this.getCellInstance(args.element.id).row.toString());
4381
- _this.sortedPanel();
4433
+ var currentPanel = _this.getCellInstance(_this.mainElement.id);
4434
+ for (i = 0; i < _this.panels.length; i++) {
4435
+ if (_this.panels[i].id === currentPanel.id) {
4436
+ args.element.setAttribute('data-col', _this.panelsInitialModel[i].col.toString());
4437
+ args.element.setAttribute('data-row', _this.panelsInitialModel[i].row.toString());
4438
+ currentPanel.col = _this.panelsInitialModel[i].col;
4439
+ currentPanel.row = _this.panelsInitialModel[i].row;
4440
+ _this.setPanelPosition(_this.mainElement, _this.panelsInitialModel[i].row, _this.panelsInitialModel[i].col);
4441
+ _this.updatePanelLayout(_this.mainElement, currentPanel);
4442
+ }
4443
+ }
4444
+ if (_this.shadowEle) {
4445
+ detach(_this.shadowEle);
4446
+ }
4382
4447
  }
4383
- var panelInstance = _this.getCellInstance(args.element.id);
4384
- _this.setPanelPosition(args.element, panelInstance.row, panelInstance.col);
4385
- _this.updatePanels();
4386
- _this.updateCloneArrayObject();
4387
- _this.checkForChanges(true);
4388
- _this.dragStopEventArgs = { event: args.event, element: args.element };
4389
- _this.trigger('dragStop', args);
4390
- _this.resizeEvents();
4391
- _this.rows = _this.maxRow(true);
4392
- _this.setHeightWidth();
4393
- _this.updateDragArea();
4394
4448
  },
4395
4449
  drag: function (args) {
4396
4450
  _this.draggedEventArgs = {
@@ -4402,10 +4456,16 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
4402
4456
  _this.onDragStart(args);
4403
4457
  }
4404
4458
  });
4405
- if (this.dragCollection.indexOf(this.dragobj) === -1) {
4406
- this.dragCollection.push(this.dragobj);
4459
+ if (this_4.dragCollection.indexOf(this_4.dragobj) === -1) {
4460
+ this_4.dragCollection.push(this_4.dragobj);
4407
4461
  }
4408
4462
  }
4463
+ out_i_1 = i;
4464
+ };
4465
+ var this_4 = this, out_i_1;
4466
+ for (var i = 0; i < collections.length; i++) {
4467
+ _loop_6(i);
4468
+ i = out_i_1;
4409
4469
  }
4410
4470
  };
4411
4471
  DashboardLayout.prototype.updatePanels = function () {
@@ -4428,28 +4488,38 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
4428
4488
  DashboardLayout.prototype.onDraggingStart = function (args) {
4429
4489
  var dragArgs = args;
4430
4490
  this.trigger('dragStart', dragArgs, function (dragArgs) {
4491
+ if (isNullOrUndefined(args.cancel)) {
4492
+ args.cancel = false;
4493
+ }
4431
4494
  });
4432
- this.panelsInitialModel = this.cloneModels(this.panels);
4433
- this.mainElement = args.element;
4434
- this.cloneObject = JSON.parse(JSON.stringify(this.cloneObject));
4435
- var eleRowValue = this.startRow = parseInt(args.element.getAttribute('data-row'), 10);
4436
- this.startCol = parseInt(args.element.getAttribute('data-col'), 10);
4437
- var eleSizeY = parseInt(args.element.getAttribute('data-sizeY'), 10);
4438
- this.updateRowsHeight(eleRowValue, eleSizeY, eleSizeY);
4439
- this.updateDragArea();
4440
- this.shadowEle = document.createElement('div');
4441
- this.shadowEle.classList.add('e-holder');
4442
- this.shadowEle.classList.add('e-holder-transition');
4443
- setStyleAttribute(this.shadowEle, { 'position': 'absolute' });
4444
- addClass([this.element], [preventSelect]);
4445
- addClass([args.element], [dragging]);
4446
- this.element.appendChild(this.shadowEle);
4447
- this.renderReactTemplates();
4448
- this.shadowEle = document.querySelector('.e-holder');
4449
- this.shadowEle.style.height = (this.getCellInstance(args.element.id).sizeY * this.cellSize[1]) + 'px';
4450
- this.shadowEle.style.width = (this.getCellInstance(args.element.id).sizeX * this.cellSize[0]) + 'px';
4451
- var panelInstance = this.getCellInstance(args.element.id);
4452
- this.setPanelPosition(this.shadowEle, panelInstance.row, panelInstance.col);
4495
+ this.eventVar = args.cancel;
4496
+ if (!(args.cancel)) {
4497
+ this.panelsInitialModel = this.cloneModels(this.panels);
4498
+ this.mainElement = args.element;
4499
+ this.cloneObject = JSON.parse(JSON.stringify(this.cloneObject));
4500
+ var eleRowValue = this.startRow = parseInt(args.element.getAttribute('data-row'), 10);
4501
+ this.startCol = parseInt(args.element.getAttribute('data-col'), 10);
4502
+ var eleSizeY = parseInt(args.element.getAttribute('data-sizeY'), 10);
4503
+ this.updateRowsHeight(eleRowValue, eleSizeY, eleSizeY);
4504
+ this.updateDragArea();
4505
+ this.shadowEle = document.createElement('div');
4506
+ this.shadowEle.classList.add('e-holder');
4507
+ this.shadowEle.classList.add('e-holder-transition');
4508
+ setStyleAttribute(this.shadowEle, { 'position': 'absolute' });
4509
+ addClass([this.element], [preventSelect]);
4510
+ addClass([args.element], [dragging]);
4511
+ this.element.appendChild(this.shadowEle);
4512
+ this.renderReactTemplates();
4513
+ this.shadowEle = document.querySelector('.e-holder');
4514
+ this.shadowEle.style.height = (this.getCellInstance(args.element.id).sizeY * this.cellSize[1]) + 'px';
4515
+ this.shadowEle.style.width = (this.getCellInstance(args.element.id).sizeX * this.cellSize[0]) + 'px';
4516
+ var panelInstance = this.getCellInstance(args.element.id);
4517
+ this.setPanelPosition(this.shadowEle, panelInstance.row, panelInstance.col);
4518
+ }
4519
+ else {
4520
+ removeClass([this.element], [preventSelect]);
4521
+ removeClass([args.element], [dragging]);
4522
+ }
4453
4523
  };
4454
4524
  // eslint-disable-next-line
4455
4525
  DashboardLayout.prototype.cloneModels = function (source, target) {
@@ -4472,60 +4542,67 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
4472
4542
  var endCol;
4473
4543
  var endRow;
4474
4544
  var dragCol;
4475
- var col = dragCol = this.getRowColumnDragValues(args)[1];
4476
- var row = this.getRowColumnDragValues(args)[0];
4477
- if (col < 0 || row < 0) {
4478
- return;
4479
- }
4480
- this.panelPropertyChange(this.getCellInstance(args.element.id), { row: row, col: col });
4481
- var panelModel = this.getCellInstance(args.element.id);
4482
- this.updateRowsHeight(panelModel.row, panelModel.sizeY, 1);
4483
- this.updateDragArea();
4484
- if (this.allowPushing) {
4485
- this.setAttributes({ value: { col: col.toString(), row: row.toString() } }, args.element);
4545
+ if (!this.eventVar) {
4546
+ var col = dragCol = this.getRowColumnDragValues(args)[1];
4547
+ var row = this.getRowColumnDragValues(args)[0];
4548
+ if (col < 0 || row < 0) {
4549
+ return;
4550
+ }
4486
4551
  this.panelPropertyChange(this.getCellInstance(args.element.id), { row: row, col: col });
4487
- endCol = this.oldRowCol[(args.element.id)].col;
4488
- endRow = this.oldRowCol[(args.element.id)].row;
4489
- this.oldRowCol[(args.element.id)] = { row: row, col: col };
4490
- this.updateOldRowColumn();
4491
- if (this.startCol !== endCol || this.startRow !== endRow) {
4492
- this.setHolderPosition(args);
4493
- if (this.startCol !== endCol) {
4494
- this.startRow = endRow;
4495
- }
4496
- if (this.startRow !== endRow) {
4497
- this.startCol = endCol;
4498
- }
4499
- if (this.allowPushing) {
4500
- this.mainElement = args.element;
4501
- var model = panelModel;
4502
- this.checkCollision = this.collisions(model.row, model.col, model.sizeX, model.sizeY, args.element);
4503
- if (panelModel.col >= this.checkColumnValue) {
4504
- this.checkCollision = [];
4552
+ var panelModel = this.getCellInstance(args.element.id);
4553
+ this.updateRowsHeight(panelModel.row, panelModel.sizeY, 1);
4554
+ this.updateDragArea();
4555
+ if (this.allowPushing) {
4556
+ this.setAttributes({ value: { col: col.toString(), row: row.toString() } }, args.element);
4557
+ this.panelPropertyChange(this.getCellInstance(args.element.id), { row: row, col: col });
4558
+ endCol = this.oldRowCol[(args.element.id)].col;
4559
+ endRow = this.oldRowCol[(args.element.id)].row;
4560
+ this.oldRowCol[(args.element.id)] = { row: row, col: col };
4561
+ this.updateOldRowColumn();
4562
+ if (this.startCol !== endCol || this.startRow !== endRow) {
4563
+ this.setHolderPosition(args);
4564
+ if (this.startCol !== endCol) {
4565
+ this.startRow = endRow;
4566
+ }
4567
+ if (this.startRow !== endRow) {
4568
+ this.startCol = endCol;
4569
+ }
4570
+ if (this.allowPushing) {
4571
+ this.mainElement = args.element;
4572
+ var model = panelModel;
4573
+ this.checkCollision = this.collisions(model.row, model.col, model.sizeX, model.sizeY, args.element);
4574
+ if (panelModel.col >= this.checkColumnValue) {
4575
+ this.checkCollision = [];
4576
+ }
4577
+ this.updatePanelLayout(args.element, panelModel);
4578
+ this.moveItemsUpwards();
4505
4579
  }
4506
- this.updatePanelLayout(args.element, panelModel);
4507
- this.moveItemsUpwards();
4508
4580
  }
4509
4581
  }
4582
+ if (this.allowPushing !== false) {
4583
+ this.panelPropertyChange(this.getCellInstance(args.element.id), { row: row, col: col });
4584
+ }
4585
+ if (this.oldRowCol[args.element.id].row !== row || this.oldRowCol[args.element.id].col !== col) {
4586
+ this.panelPropertyChange(this.getCellInstance(args.element.id), { row: row, col: col });
4587
+ this.setAttributes({ value: { col: col.toString(), row: row.toString() } }, args.element);
4588
+ }
4589
+ if (this.startCol !== dragCol) {
4590
+ this.startCol = endCol;
4591
+ this.moveItemsUpwards();
4592
+ }
4593
+ if (!this.allowPushing) {
4594
+ this.setHolderPosition(args);
4595
+ }
4596
+ this.removeResizeClasses(this.panelCollection);
4597
+ this.setClasses(this.panelCollection);
4598
+ if (this.allowPushing === false) {
4599
+ return;
4600
+ }
4510
4601
  }
4511
- if (this.allowPushing !== false) {
4512
- this.panelPropertyChange(this.getCellInstance(args.element.id), { row: row, col: col });
4513
- }
4514
- if (this.oldRowCol[args.element.id].row !== row || this.oldRowCol[args.element.id].col !== col) {
4515
- this.panelPropertyChange(this.getCellInstance(args.element.id), { row: row, col: col });
4516
- this.setAttributes({ value: { col: col.toString(), row: row.toString() } }, args.element);
4517
- }
4518
- if (this.startCol !== dragCol) {
4519
- this.startCol = endCol;
4520
- this.moveItemsUpwards();
4521
- }
4522
- if (!this.allowPushing) {
4523
- this.setHolderPosition(args);
4524
- }
4525
- this.removeResizeClasses(this.panelCollection);
4526
- this.setClasses(this.panelCollection);
4527
- if (this.allowPushing === false) {
4528
- return;
4602
+ else {
4603
+ this.dragobj.intDestroy(args.event);
4604
+ removeClass([this.element], [preventSelect]);
4605
+ removeClass([args.element], [dragging]);
4529
4606
  }
4530
4607
  };
4531
4608
  DashboardLayout.prototype.getPanelBase = function (args) {
@@ -5148,6 +5225,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
5148
5225
  var key = keys_1[_i];
5149
5226
  if ((typeof getValue(key, this) === 'object' && !isNullOrUndefined(getValue(key, this)))) {
5150
5227
  if (Array.isArray(getValue(key, this)) && key === 'panels') {
5228
+ // eslint-disable-next-line
5151
5229
  this.mergePanels(dataObj[key], this[key]);
5152
5230
  }
5153
5231
  }
@@ -5158,16 +5236,16 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
5158
5236
  /* istanbul ignore next */
5159
5237
  DashboardLayout.prototype.mergePanels = function (sortedPanels, panels) {
5160
5238
  var storedColumns = sortedPanels;
5161
- var _loop_6 = function (i) {
5162
- this_4.checkForIDValues(panels);
5239
+ var _loop_7 = function (i) {
5240
+ this_5.checkForIDValues(panels);
5163
5241
  var localPanel = panels.filter(function (pan) { return pan.id === storedColumns[i].id; })[0];
5164
5242
  if (!isNullOrUndefined(localPanel)) {
5165
5243
  storedColumns[i] = extend(localPanel, storedColumns[i], {}, true);
5166
5244
  }
5167
5245
  };
5168
- var this_4 = this;
5246
+ var this_5 = this;
5169
5247
  for (var i = 0; i < storedColumns.length; i++) {
5170
- _loop_6(i);
5248
+ _loop_7(i);
5171
5249
  }
5172
5250
  };
5173
5251
  /**