@syncfusion/ej2-layouts 19.2.60 → 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.
Files changed (103) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +8 -0
  3. package/dist/ej2-layouts.umd.min.js +2 -2
  4. package/dist/ej2-layouts.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-layouts.es2015.js +72 -151
  6. package/dist/es6/ej2-layouts.es2015.js.map +1 -1
  7. package/dist/es6/ej2-layouts.es5.js +72 -152
  8. package/dist/es6/ej2-layouts.es5.js.map +1 -1
  9. package/dist/global/ej2-layouts.min.js +2 -2
  10. package/dist/global/ej2-layouts.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/helpers/e2e/dashboardHelper.d.ts +63 -0
  13. package/helpers/e2e/dashboardHelper.js +97 -0
  14. package/helpers/e2e/index.d.ts +1 -0
  15. package/helpers/e2e/index.js +1 -0
  16. package/package.json +6 -6
  17. package/src/dashboard-layout/dashboard-layout.js +0 -1
  18. package/src/splitter/splitter-model.d.ts +1 -1
  19. package/src/splitter/splitter.d.ts +1 -1
  20. package/src/splitter/splitter.js +72 -150
  21. package/styles/avatar/_bootstrap5-dark-definition.scss +1 -0
  22. package/styles/avatar/_bootstrap5-definition.scss +25 -0
  23. package/styles/avatar/_layout.scss +5 -5
  24. package/styles/avatar/_tailwind-dark-definition.scss +1 -25
  25. package/styles/avatar/bootstrap5-dark.css +61 -0
  26. package/styles/avatar/bootstrap5-dark.scss +3 -0
  27. package/styles/avatar/bootstrap5.css +61 -0
  28. package/styles/avatar/bootstrap5.scss +3 -0
  29. package/styles/bootstrap-dark.css +8 -0
  30. package/styles/bootstrap.css +8 -0
  31. package/styles/bootstrap4.css +8 -0
  32. package/styles/bootstrap5-dark.css +1618 -0
  33. package/styles/bootstrap5-dark.scss +4 -0
  34. package/styles/bootstrap5.css +1618 -0
  35. package/styles/bootstrap5.scss +4 -0
  36. package/styles/card/_bootstrap5-dark-definition.scss +1 -0
  37. package/styles/card/_bootstrap5-definition.scss +119 -0
  38. package/styles/card/_fabric-dark-definition.scss +5 -18
  39. package/styles/card/_layout.scss +2 -2
  40. package/styles/card/_tailwind-dark-definition.scss +1 -122
  41. package/styles/card/_tailwind-definition.scss +5 -9
  42. package/styles/card/bootstrap5-dark.css +593 -0
  43. package/styles/card/bootstrap5-dark.scss +3 -0
  44. package/styles/card/bootstrap5.css +593 -0
  45. package/styles/card/bootstrap5.scss +3 -0
  46. package/styles/card/fabric-dark.css +12 -12
  47. package/styles/card/tailwind-dark.css +2 -3
  48. package/styles/card/tailwind.css +0 -1
  49. package/styles/dashboard-layout/_bootstrap5-dark-definition.scss +1 -0
  50. package/styles/dashboard-layout/_bootstrap5-definition.scss +109 -0
  51. package/styles/dashboard-layout/_layout.scss +14 -5
  52. package/styles/dashboard-layout/_tailwind-dark-definition.scss +1 -109
  53. package/styles/dashboard-layout/_tailwind-definition.scss +27 -28
  54. package/styles/dashboard-layout/_theme.scss +4 -4
  55. package/styles/dashboard-layout/bootstrap5-dark.css +393 -0
  56. package/styles/dashboard-layout/bootstrap5-dark.scss +4 -0
  57. package/styles/dashboard-layout/bootstrap5.css +393 -0
  58. package/styles/dashboard-layout/bootstrap5.scss +4 -0
  59. package/styles/dashboard-layout/icons/_bootstrap5-dark.scss +1 -0
  60. package/styles/dashboard-layout/icons/_bootstrap5.scss +81 -0
  61. package/styles/dashboard-layout/material-dark.css +3 -3
  62. package/styles/dashboard-layout/tailwind-dark.css +10 -8
  63. package/styles/dashboard-layout/tailwind.css +5 -3
  64. package/styles/fabric-dark.css +20 -12
  65. package/styles/fabric.css +8 -0
  66. package/styles/highcontrast-light.css +8 -0
  67. package/styles/highcontrast.css +8 -0
  68. package/styles/material-dark.css +19 -11
  69. package/styles/material.css +8 -0
  70. package/styles/splitter/_bootstrap5-dark-definition.scss +1 -0
  71. package/styles/splitter/_bootstrap5-definition.scss +26 -0
  72. package/styles/splitter/_tailwind-dark-definition.scss +1 -23
  73. package/styles/splitter/_tailwind-definition.scss +14 -11
  74. package/styles/splitter/bootstrap-dark.css +8 -0
  75. package/styles/splitter/bootstrap.css +8 -0
  76. package/styles/splitter/bootstrap4.css +8 -0
  77. package/styles/splitter/bootstrap5-dark.css +568 -0
  78. package/styles/splitter/bootstrap5-dark.scss +4 -0
  79. package/styles/splitter/bootstrap5.css +568 -0
  80. package/styles/splitter/bootstrap5.scss +4 -0
  81. package/styles/splitter/fabric-dark.css +8 -0
  82. package/styles/splitter/fabric.css +8 -0
  83. package/styles/splitter/highcontrast-light.css +8 -0
  84. package/styles/splitter/highcontrast.css +8 -0
  85. package/styles/splitter/icons/_bootstrap-dark.scss +12 -0
  86. package/styles/splitter/icons/_bootstrap.scss +12 -0
  87. package/styles/splitter/icons/_bootstrap4.scss +12 -0
  88. package/styles/splitter/icons/_bootstrap5-dark.scss +1 -0
  89. package/styles/splitter/icons/_bootstrap5.scss +39 -0
  90. package/styles/splitter/icons/_fabric-dark.scss +12 -0
  91. package/styles/splitter/icons/_fabric.scss +12 -0
  92. package/styles/splitter/icons/_highcontrast-light.scss +12 -0
  93. package/styles/splitter/icons/_highcontrast.scss +12 -0
  94. package/styles/splitter/icons/_material-dark.scss +12 -0
  95. package/styles/splitter/icons/_material.scss +12 -0
  96. package/styles/splitter/icons/_tailwind-dark.scss +1 -39
  97. package/styles/splitter/icons/_tailwind.scss +12 -0
  98. package/styles/splitter/material-dark.css +16 -8
  99. package/styles/splitter/material.css +8 -0
  100. package/styles/splitter/tailwind-dark.css +14 -7
  101. package/styles/splitter/tailwind.css +8 -1
  102. package/styles/tailwind-dark.css +26 -18
  103. package/styles/tailwind.css +13 -5
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.2.60
3
+ * version : 19.3.43
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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
@@ -0,0 +1,63 @@
1
+ import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
2
+ export declare class DashboardHelper extends TestHelper {
3
+ id: string;
4
+ wrapperFn: Function;
5
+ /**
6
+ * Initialize the Dashboard Layout E2E helpers.
7
+ * @param id element id of the Dashboard Layout component.
8
+ * @param wrapperFn pass the wrapper function.
9
+ */
10
+ constructor(id: string, wrapperFn: Function);
11
+ /**
12
+ * Gets the selector of the Dashboard Layout component.
13
+ */
14
+ selector(arg: any): any;
15
+ /**
16
+ * Gets root element of the Dashboard Layout component.
17
+ */
18
+ getElement(): any;
19
+ /**
20
+ * Gets the element of the Dashboard Layout component.
21
+ */
22
+ getDashboardLayout(): any;
23
+ /**
24
+ * Gets a panel container and its inner elements with the given id from dashboard layout component.
25
+ */
26
+ getPanelContainer(): any;
27
+ /**
28
+ * Gets the panel element of Dashboard Layout component which consists the panel container and its inner elements
29
+ */
30
+ getPanelElement(): any;
31
+ /**
32
+ * Used to get the panel header of Dashboard Layout component which contains the header details.
33
+ */
34
+ getPanelHeader(): any;
35
+ /**
36
+ * Gets the panel content of Dashboard Layout component which contains the panel content class.
37
+ */
38
+ getPanelContent(): any;
39
+ /**
40
+ * Gets the resize icon positioned on the South-East side in panel container.
41
+ */
42
+ getSouthEastResizeIcon(): any;
43
+ /**
44
+ * Gets the resize icon positioned on the North-East side in panel container.
45
+ */
46
+ getNorthEastResizeIcon(): any;
47
+ /**
48
+ * Gets the resize icon positioned on the North-West side in panel container.
49
+ */
50
+ getNorthWestResizeIcon(): any;
51
+ /**
52
+ * Gets the resize icon positioned on the South-West side in panel container.
53
+ */
54
+ getSouthWestResizeIcon(): any;
55
+ /**
56
+ * Gets the clear icon from the panel element.
57
+ */
58
+ getClearIcon(): any;
59
+ /**
60
+ * Gets the transition of panel in Dashboard Layout component which is used to achieve the resizing behavior.
61
+ */
62
+ getPanelTansition(): any;
63
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e");
4
+ class DashboardHelper extends e2e_1.TestHelper {
5
+ /**
6
+ * Initialize the Dashboard Layout E2E helpers.
7
+ * @param id element id of the Dashboard Layout component.
8
+ * @param wrapperFn pass the wrapper function.
9
+ */
10
+ constructor(id, wrapperFn) {
11
+ super();
12
+ this.id = id;
13
+ if (wrapperFn !== undefined) {
14
+ this.wrapperFn = wrapperFn;
15
+ }
16
+ return this;
17
+ }
18
+ /**
19
+ * Gets the selector of the Dashboard Layout component.
20
+ */
21
+ selector(arg) {
22
+ return (this.wrapperFn ? this.wrapperFn(arg) : arg);
23
+ }
24
+ /**
25
+ * Gets root element of the Dashboard Layout component.
26
+ */
27
+ getElement() {
28
+ return this.selector('#' + this.id);
29
+ }
30
+ /**
31
+ * Gets the element of the Dashboard Layout component.
32
+ */
33
+ getDashboardLayout() {
34
+ return this.selector('#' + this.id + '.e-dashboardlayout');
35
+ }
36
+ /**
37
+ * Gets a panel container and its inner elements with the given id from dashboard layout component.
38
+ */
39
+ getPanelContainer() {
40
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-panel-container');
41
+ }
42
+ /**
43
+ * Gets the panel element of Dashboard Layout component which consists the panel container and its inner elements
44
+ */
45
+ getPanelElement() {
46
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-panel');
47
+ }
48
+ /**
49
+ * Used to get the panel header of Dashboard Layout component which contains the header details.
50
+ */
51
+ getPanelHeader() {
52
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-panel-header');
53
+ }
54
+ /**
55
+ * Gets the panel content of Dashboard Layout component which contains the panel content class.
56
+ */
57
+ getPanelContent() {
58
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-panel-content');
59
+ }
60
+ /**
61
+ * Gets the resize icon positioned on the South-East side in panel container.
62
+ */
63
+ getSouthEastResizeIcon() {
64
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-south-east .e-resize');
65
+ }
66
+ /**
67
+ * Gets the resize icon positioned on the North-East side in panel container.
68
+ */
69
+ getNorthEastResizeIcon() {
70
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-north-east .e-resize');
71
+ }
72
+ /**
73
+ * Gets the resize icon positioned on the North-West side in panel container.
74
+ */
75
+ getNorthWestResizeIcon() {
76
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-north-west .e-resize');
77
+ }
78
+ /**
79
+ * Gets the resize icon positioned on the South-West side in panel container.
80
+ */
81
+ getSouthWestResizeIcon() {
82
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-south-west .e-resize');
83
+ }
84
+ /**
85
+ * Gets the clear icon from the panel element.
86
+ */
87
+ getClearIcon() {
88
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-clear-icon');
89
+ }
90
+ /**
91
+ * Gets the transition of panel in Dashboard Layout component which is used to achieve the resizing behavior.
92
+ */
93
+ getPanelTansition() {
94
+ return this.selector('#' + this.id + '.e-dashboardlayout .e-panel-transition');
95
+ }
96
+ }
97
+ exports.DashboardHelper = DashboardHelper;
@@ -1 +1,2 @@
1
+ export * from './dashboardHelper';
1
2
  export * from './splitter-helper';
@@ -3,4 +3,5 @@ function __export(m) {
3
3
  for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
4
  }
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ __export(require("./dashboardHelper"));
6
7
  __export(require("./splitter-helper"));
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-layouts@*",
3
- "_id": "@syncfusion/ej2-layouts@19.2.48",
3
+ "_id": "@syncfusion/ej2-layouts@18.23.7",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-NSlsLYKg/ydDyF1OcVDyVNYiBMraMUCJgZlLkJrB2mfXjm1sZyXLsrJd0BsTPQXR+BaXwd5UBdS02mZsS34c5w==",
5
+ "_integrity": "sha512-CMePvOOx9B17e0D/dLknB37+dJV7wpQa5RQBfNh8A8cPodX/ZWHIr8jElXeG43HQifMIFH4G8gDQN6r4ZZG3Ig==",
6
6
  "_location": "/@syncfusion/ej2-layouts",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -27,8 +27,8 @@
27
27
  "/@syncfusion/ej2-react-layouts",
28
28
  "/@syncfusion/ej2-vue-layouts"
29
29
  ],
30
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-layouts/-/ej2-layouts-19.2.48.tgz",
31
- "_shasum": "3bd3c318f663d8250e0e948b8858aeaa1008ff2a",
30
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-layouts/-/ej2-layouts-18.23.7.tgz",
31
+ "_shasum": "bd23f5277351df6a2d390c8a5a9b528fb7f4db2b",
32
32
  "_spec": "@syncfusion/ej2-layouts@*",
33
33
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
34
34
  "author": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~19.2.60"
39
+ "@syncfusion/ej2-base": "~19.3.43"
40
40
  },
41
41
  "deprecated": false,
42
42
  "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.",
@@ -76,6 +76,6 @@
76
76
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
77
77
  },
78
78
  "typings": "index.d.ts",
79
- "version": "19.2.60",
79
+ "version": "19.3.43",
80
80
  "sideEffects": false
81
81
  }
@@ -2078,7 +2078,6 @@ var DashboardLayout = /** @class */ (function (_super) {
2078
2078
  _this.onDragStart(args);
2079
2079
  }
2080
2080
  });
2081
- this.dragobj.enableScrollHandler = true;
2082
2081
  if (this.dragCollection.indexOf(this.dragobj) === -1) {
2083
2082
  this.dragCollection.push(this.dragobj);
2084
2083
  }
@@ -1,4 +1,4 @@
1
- import { Component, Property, setStyleAttribute, ChildProperty, compile, isBlazor } 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';
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;
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Component, Property, setStyleAttribute, ChildProperty, compile, isBlazor } from '@syncfusion/ej2-base';
20
+ import { Component, Property, setStyleAttribute, ChildProperty, compile } from '@syncfusion/ej2-base';
21
21
  import { NotifyPropertyChanges, addClass, Collection, isNullOrUndefined } from '@syncfusion/ej2-base';
22
22
  import { Event, EventHandler, selectAll, removeClass, select, Browser, detach, formatUnit } from '@syncfusion/ej2-base';
23
23
  import { SanitizeHtmlHelper, extend } from '@syncfusion/ej2-base';
@@ -263,11 +263,9 @@ var Splitter = /** @class */ (function (_super) {
263
263
  this.onReportWindowSize = this.reportWindowSize.bind(this);
264
264
  this.wrapper = this.element.cloneNode(true);
265
265
  this.wrapperParent = this.element.parentElement;
266
- if (!this.checkBlazor()) {
267
- removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
268
- var orientation_1 = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
269
- addClass([this.element], orientation_1);
270
- }
266
+ removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
267
+ var orientation = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
268
+ addClass([this.element], orientation);
271
269
  var name = Browser.info.name;
272
270
  var css = (name === 'msie') ? 'e-ie' : '';
273
271
  this.setCssClass(this.element, css);
@@ -294,19 +292,15 @@ var Splitter = /** @class */ (function (_super) {
294
292
  * @private
295
293
  */
296
294
  Splitter.prototype.render = function () {
297
- if (!this.checkBlazor()) {
298
- this.checkDataAttributes();
299
- this.setCssClass(this.element, this.cssClass);
300
- this.isEnabled(this.enabled);
301
- this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
302
- }
295
+ this.checkDataAttributes();
296
+ this.setCssClass(this.element, this.cssClass);
297
+ this.isEnabled(this.enabled);
298
+ this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
303
299
  this.createSplitPane(this.element);
304
300
  this.addSeparator(this.element);
305
301
  this.getPanesDimensions();
306
302
  this.setPaneSettings();
307
- if (!this.checkBlazor()) {
308
- this.setRTL(this.enableRtl);
309
- }
303
+ this.setRTL(this.enableRtl);
310
304
  if (this.enableReversePanes) {
311
305
  this.setReversePane();
312
306
  }
@@ -334,11 +328,15 @@ var Splitter = /** @class */ (function (_super) {
334
328
  this.totalPercent = previousFlexBasis + nextFlexBasis;
335
329
  this.totalWidth = this.convertPercentageToPixel(this.totalPercent + '%');
336
330
  if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
337
- if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0) {
331
+ if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
332
+ (this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) <
333
+ this.convertPercentageToPixel((nextFlexBasis - 1) + '%'))) {
338
334
  this.previousPane.style.flexBasis = (previousFlexBasis + 1) + '%';
339
335
  this.nextPane.style.flexBasis = (nextFlexBasis - 1) + '%';
340
336
  }
341
- else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0) {
337
+ else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
338
+ (this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) <
339
+ this.convertPercentageToPixel((previousFlexBasis - 1) + '%'))) {
342
340
  this.previousPane.style.flexBasis = (previousFlexBasis - 1) + '%';
343
341
  this.nextPane.style.flexBasis = (nextFlexBasis + 1) + '%';
344
342
  }
@@ -348,13 +346,15 @@ var Splitter = /** @class */ (function (_super) {
348
346
  this.totalWidth = (this.orientation === 'Horizontal') ? this.previousPane.offsetWidth + this.nextPane.offsetWidth :
349
347
  this.previousPane.offsetHeight + this.nextPane.offsetHeight;
350
348
  if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
351
- if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0) {
349
+ if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
350
+ (this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) < (nextPaneSize + splitBarSize))) {
352
351
  this.addStaticPaneClass();
353
352
  this.previousPane.style.flexBasis = (prePaneSize + splitBarSize) + 'px';
354
353
  this.nextPane.style.flexBasis = (nextPaneSize < splitBarSize) ? '0px' :
355
354
  (nextPaneSize - splitBarSize) + 'px';
356
355
  }
357
- else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0) {
356
+ else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
357
+ (this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) < (prePaneSize - splitBarSize))) {
358
358
  this.addStaticPaneClass();
359
359
  this.previousPane.style.flexBasis = (prePaneSize < splitBarSize) ? '0px' :
360
360
  (prePaneSize - splitBarSize) + 'px';
@@ -375,11 +375,12 @@ var Splitter = /** @class */ (function (_super) {
375
375
  && (!isPrevpaneExpanded && !isNextpaneCollapsed && !isPrevpaneCollapsed || (isPrevpaneExpanded) && !isNextpaneCollapsed) &&
376
376
  document.activeElement.classList.contains(SPLIT_BAR) && (this.paneSettings[index].resizable &&
377
377
  this.paneSettings[index + 1].resizable)) {
378
+ event.preventDefault();
378
379
  this.checkPaneSize(event);
379
380
  this.triggerResizing(event);
380
381
  }
381
382
  else if (event.keyCode === 13 && this.paneSettings[index].collapsible &&
382
- document.activeElement.classList.contains(SPLIT_BAR)) {
383
+ document.activeElement.classList.contains(SPLIT_BAR) && this.currentSeparator.classList.contains(SPLIT_BAR_ACTIVE)) {
383
384
  if (!this.previousPane.classList.contains(COLLAPSE_PANE)) {
384
385
  this.collapse(index);
385
386
  addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
@@ -391,6 +392,18 @@ var Splitter = /** @class */ (function (_super) {
391
392
  }
392
393
  }
393
394
  };
395
+ Splitter.prototype.getMinInPixel = function (minValue) {
396
+ var min;
397
+ if (isNullOrUndefined(minValue)) {
398
+ return 0;
399
+ }
400
+ var paneMinRange = this.convertPixelToNumber(minValue.toString());
401
+ if (minValue.indexOf('%') > 0) {
402
+ paneMinRange = this.convertPercentageToPixel(minValue);
403
+ }
404
+ min = this.convertPixelToNumber((paneMinRange).toString());
405
+ return min;
406
+ };
394
407
  /**
395
408
  * @param {string} value - specifies the string value
396
409
  * @returns {string} returns the string
@@ -464,9 +477,6 @@ var Splitter = /** @class */ (function (_super) {
464
477
  });
465
478
  this.restoreElem();
466
479
  };
467
- Splitter.prototype.checkBlazor = function () {
468
- return isBlazor() && this.isServerRendered;
469
- };
470
480
  Splitter.prototype.setPaneSettings = function () {
471
481
  var childCount = this.allPanes.length;
472
482
  var paneCollection = [];
@@ -866,52 +876,20 @@ var Splitter = /** @class */ (function (_super) {
866
876
  this.isResizable() ? this.allPanes[index].classList.add(RESIZABLE_PANE) : this.allPanes[index].classList.remove(RESIZABLE_PANE);
867
877
  };
868
878
  Splitter.prototype.addSeparator = function (target) {
869
- var _this = this;
870
879
  var childCount = this.allPanes.length;
871
880
  var clonedEle = target.children;
872
881
  var separator;
873
882
  var proxy;
874
- if (this.checkBlazor()) {
875
- for (var j = 0; j < this.element.children.length; j++) {
876
- if (this.element.children[j].classList.contains(SPLIT_BAR)) {
877
- this.allBars.push(this.element.children[j]);
878
- }
879
- }
880
- }
881
883
  for (var i = 0; i < childCount; i++) {
882
884
  if (i < childCount - 1) {
883
- if (!this.checkBlazor()) {
884
- separator = this.createSeparator(i);
885
- setStyleAttribute(separator, { 'order': (i * 2) + 1 });
886
- this.separatorOrder.push((i * 2) + 1);
887
- clonedEle[i].parentNode.appendChild(separator);
888
- this.currentSeparator = separator;
889
- separator.setAttribute('role', 'separator');
890
- separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
891
- }
892
- if (this.checkBlazor()) {
893
- proxy = this;
894
- separator = this.allBars[i];
895
- this.updateIconClass();
896
- }
897
- if (!this.checkBlazor()) {
898
- this.wireClickEvents();
899
- }
900
- if (this.checkBlazor() && !isNullOrUndefined(separator)) {
901
- this.currentSeparator = separator;
902
- this.addMouseActions(separator);
903
- this.wireClickEvents();
904
- separator.addEventListener('focus', function () {
905
- if (document.activeElement.classList.contains('e-split-bar')) {
906
- proxy.currentSeparator = document.activeElement;
907
- proxy.currentSeparator.classList.add(SPLIT_BAR_ACTIVE);
908
- }
909
- _this.getPaneDetails();
910
- });
911
- separator.addEventListener('blur', function () {
912
- proxy.currentSeparator.classList.remove(SPLIT_BAR_ACTIVE);
913
- });
914
- }
885
+ separator = this.createSeparator(i);
886
+ setStyleAttribute(separator, { 'order': (i * 2) + 1 });
887
+ this.separatorOrder.push((i * 2) + 1);
888
+ clonedEle[i].parentNode.appendChild(separator);
889
+ this.currentSeparator = separator;
890
+ separator.setAttribute('role', 'separator');
891
+ separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
892
+ this.wireClickEvents();
915
893
  if (!isNullOrUndefined(separator)) {
916
894
  if (this.isResizable()) {
917
895
  EventHandler.add(separator, 'mousedown', this.onMouseDown, this);
@@ -1370,13 +1348,7 @@ var Splitter = /** @class */ (function (_super) {
1370
1348
  }
1371
1349
  };
1372
1350
  Splitter.prototype.beforeAction = function (e) {
1373
- var eventArgs = isBlazor() ? {
1374
- element: this.element,
1375
- event: e,
1376
- index: [this.prevPaneIndex, this.nextPaneIndex],
1377
- separator: this.currentSeparator,
1378
- cancel: false
1379
- } : {
1351
+ var eventArgs = {
1380
1352
  element: this.element,
1381
1353
  event: e,
1382
1354
  pane: [this.previousPane, this.nextPane],
@@ -1475,12 +1447,7 @@ var Splitter = /** @class */ (function (_super) {
1475
1447
  }
1476
1448
  };
1477
1449
  Splitter.prototype.afterAction = function (e) {
1478
- var eventArgs = isBlazor() ? {
1479
- element: this.element,
1480
- event: e,
1481
- index: [this.prevPaneIndex, this.nextPaneIndex],
1482
- separator: this.currentSeparator
1483
- } : {
1450
+ var eventArgs = {
1484
1451
  element: this.element,
1485
1452
  event: e,
1486
1453
  pane: [this.previousPane, this.nextPane],
@@ -1493,10 +1460,6 @@ var Splitter = /** @class */ (function (_super) {
1493
1460
  this.currentBarIndex = this.getOrderIndex(parseInt(e.target.parentElement.style.order, 10), 'splitbar');
1494
1461
  };
1495
1462
  Splitter.prototype.getSeparatorIndex = function (target) {
1496
- var separator = this.orientation === 'Horizontal' ? SPLIT_H_BAR : SPLIT_V_BAR;
1497
- if (this.checkBlazor() && this.allBars.length < 1) {
1498
- this.allBars = selectAll('.' + separator, this.element);
1499
- }
1500
1463
  var array = [].slice.call(this.allBars);
1501
1464
  array = this.enableReversePanes ? array.reverse() : array;
1502
1465
  return array.indexOf(target);
@@ -1526,13 +1489,7 @@ var Splitter = /** @class */ (function (_super) {
1526
1489
  this.getPaneDetails();
1527
1490
  };
1528
1491
  Splitter.prototype.triggerResizing = function (e) {
1529
- var eventArgs = isBlazor() ? {
1530
- element: this.element,
1531
- event: e,
1532
- index: [this.prevPaneIndex, this.nextPaneIndex],
1533
- paneSize: [this.prePaneDimenson, this.nextPaneDimension],
1534
- separator: this.currentSeparator
1535
- } : {
1492
+ var eventArgs = {
1536
1493
  element: this.element,
1537
1494
  event: e,
1538
1495
  pane: [this.previousPane, this.nextPane],
@@ -1553,13 +1510,7 @@ var Splitter = /** @class */ (function (_super) {
1553
1510
  addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
1554
1511
  this.updateCursorPosition(e, 'previous');
1555
1512
  this.getPaneDetails();
1556
- var eventArgs = isBlazor() ? {
1557
- element: this.element,
1558
- event: e,
1559
- index: [this.getPreviousPaneIndex(), this.getNextPaneIndex()],
1560
- separator: this.currentSeparator,
1561
- cancel: false
1562
- } : {
1513
+ var eventArgs = {
1563
1514
  element: this.element,
1564
1515
  event: e,
1565
1516
  pane: [this.previousPane, this.nextPane],
@@ -1944,13 +1895,7 @@ var Splitter = /** @class */ (function (_super) {
1944
1895
  Splitter.prototype.onMouseUp = function (e) {
1945
1896
  removeClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
1946
1897
  this.unwireResizeEvents();
1947
- var eventArgs = isBlazor() ? {
1948
- event: e,
1949
- element: this.element,
1950
- index: [this.prevPaneIndex, this.nextPaneIndex],
1951
- separator: this.currentSeparator,
1952
- paneSize: [this.prePaneDimenson, this.nextPaneDimension]
1953
- } : {
1898
+ var eventArgs = {
1954
1899
  event: e,
1955
1900
  element: this.element,
1956
1901
  pane: [this.previousPane, this.nextPane],
@@ -2054,12 +1999,7 @@ var Splitter = /** @class */ (function (_super) {
2054
1999
  }
2055
2000
  var templateFUN;
2056
2001
  if (!isNullOrUndefined(templateFn)) {
2057
- if (isBlazor() && !this.isStringTemplate) {
2058
- templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), this.isStringTemplate);
2059
- }
2060
- else {
2061
- templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
2062
- }
2002
+ templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
2063
2003
  }
2064
2004
  if (!isNullOrUndefined(templateFn) && templateFUN && templateFUN.length > 0) {
2065
2005
  [].slice.call(templateFUN).forEach(function (el) {
@@ -2073,13 +2013,11 @@ var Splitter = /** @class */ (function (_super) {
2073
2013
  };
2074
2014
  Splitter.prototype.createSplitPane = function (target) {
2075
2015
  var childCount = target.children.length;
2076
- if (!this.checkBlazor()) {
2077
- for (var i = 0; i < this.paneSettings.length; i++) {
2078
- if (childCount < this.paneSettings.length) {
2079
- var childElement = this.createElement('div');
2080
- this.element.appendChild(childElement);
2081
- childCount = childCount + 1;
2082
- }
2016
+ for (var i = 0; i < this.paneSettings.length; i++) {
2017
+ if (childCount < this.paneSettings.length) {
2018
+ var childElement = this.createElement('div');
2019
+ this.element.appendChild(childElement);
2020
+ childCount = childCount + 1;
2083
2021
  }
2084
2022
  }
2085
2023
  childCount = target.children.length;
@@ -2089,30 +2027,23 @@ var Splitter = /** @class */ (function (_super) {
2089
2027
  for (var i = 0; i < childCount; i++) {
2090
2028
  // To accept only div and span element as pane
2091
2029
  if (child[i].nodeName === 'DIV' || child[i].nodeName === 'SPAN') {
2092
- if (this.checkBlazor() && child[i].classList.contains(PANE)) {
2093
- this.allPanes.push(child[i]);
2030
+ this.allPanes.push(child[i]);
2031
+ if (this.orientation === 'Horizontal') {
2032
+ addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
2033
+ this.panesDimension(i, child);
2094
2034
  }
2095
- else if (!this.checkBlazor()) {
2096
- this.allPanes.push(child[i]);
2035
+ else {
2036
+ addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
2037
+ this.panesDimension(i, child);
2097
2038
  }
2098
- if (!this.checkBlazor()) {
2099
- if (this.orientation === 'Horizontal') {
2100
- addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
2101
- this.panesDimension(i, child);
2102
- }
2103
- else {
2104
- addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
2105
- this.panesDimension(i, child);
2106
- }
2107
- if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
2108
- this.setTemplate(this.paneSettings[i].content, child[i]);
2109
- }
2110
- if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
2111
- this.setCssClass(child[i], this.paneSettings[i].cssClass);
2112
- }
2113
- if (!isNullOrUndefined(this.paneSettings[i])) {
2114
- this.paneCollapsible(child[i], i);
2115
- }
2039
+ if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
2040
+ this.setTemplate(this.paneSettings[i].content, child[i]);
2041
+ }
2042
+ if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
2043
+ this.setCssClass(child[i], this.paneSettings[i].cssClass);
2044
+ }
2045
+ if (!isNullOrUndefined(this.paneSettings[i])) {
2046
+ this.paneCollapsible(child[i], i);
2116
2047
  }
2117
2048
  }
2118
2049
  }
@@ -2145,24 +2076,15 @@ var Splitter = /** @class */ (function (_super) {
2145
2076
  */
2146
2077
  Splitter.prototype.destroy = function () {
2147
2078
  if (!this.isDestroyed) {
2148
- if (!this.checkBlazor()) {
2149
- _super.prototype.destroy.call(this);
2150
- }
2079
+ _super.prototype.destroy.call(this);
2151
2080
  EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
2081
+ this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
2152
2082
  while (this.element.attributes.length > 0) {
2153
2083
  this.element.removeAttribute(this.element.attributes[0].name);
2154
2084
  }
2155
- if (this.checkBlazor()) {
2156
- var splitNodes = this.element.children;
2157
- for (var i = splitNodes.length - 1; i >= 0; i--) {
2158
- detach(splitNodes[i]);
2159
- }
2160
- }
2161
- else {
2162
- this.element.innerHTML = this.wrapper.innerHTML;
2163
- for (var i = 0; i < this.wrapper.attributes.length; i++) {
2164
- this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
2165
- }
2085
+ this.element.innerHTML = this.wrapper.innerHTML;
2086
+ for (var i = 0; i < this.wrapper.attributes.length; i++) {
2087
+ this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
2166
2088
  }
2167
2089
  if (this.refreshing) {
2168
2090
  addClass([this.element], ['e-control', 'e-lib', ROOT]);
@@ -0,0 +1 @@
1
+ @import './bootstrap5-definition.scss';