@syncfusion/ej2-layouts 33.1.44 → 33.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-layouts.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +48 -17
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +49 -17
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +2 -2
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/splitter/splitter.d.ts +1 -0
- package/src/splitter/splitter.js +49 -17
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.
|
|
3
|
+
* version : 33.2.3
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-layouts",
|
|
3
|
-
"version": "33.
|
|
3
|
+
"version": "33.2.3",
|
|
4
4
|
"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.",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-layouts.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~33.
|
|
11
|
+
"@syncfusion/ej2-base": "~33.2.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {},
|
|
14
14
|
"keywords": [
|
|
@@ -129,6 +129,7 @@ export declare class Splitter extends Component<HTMLElement> {
|
|
|
129
129
|
private onMouseUpHandler;
|
|
130
130
|
private onTouchMoveHandler;
|
|
131
131
|
private onTouchEndHandler;
|
|
132
|
+
private documentClickHandler;
|
|
132
133
|
private allPanes;
|
|
133
134
|
private paneOrder;
|
|
134
135
|
private separatorOrder;
|
package/src/splitter/splitter.js
CHANGED
|
@@ -298,6 +298,7 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
298
298
|
this.onMouseUpHandler = this.onMouseUp.bind(this);
|
|
299
299
|
this.onTouchMoveHandler = this.onMouseMove.bind(this);
|
|
300
300
|
this.onTouchEndHandler = this.onMouseUp.bind(this);
|
|
301
|
+
this.documentClickHandler = this.onDocumentClick.bind(this);
|
|
301
302
|
this.wrapper = this.element.cloneNode(true);
|
|
302
303
|
this.wrapperParent = this.element.parentElement;
|
|
303
304
|
removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
|
|
@@ -344,7 +345,7 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
344
345
|
this.collapseFlag = true;
|
|
345
346
|
this.isCollapsed();
|
|
346
347
|
this.collapseFlag = false;
|
|
347
|
-
EventHandler.add(document, 'touchstart click', this.
|
|
348
|
+
EventHandler.add(document, 'touchstart click', this.documentClickHandler);
|
|
348
349
|
this.renderComplete();
|
|
349
350
|
this.element.ownerDocument.defaultView.addEventListener('resize', this.onReportWindowSize, true);
|
|
350
351
|
EventHandler.add(this.element, 'keydown', this.onMove, this);
|
|
@@ -890,6 +891,7 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
890
891
|
}
|
|
891
892
|
};
|
|
892
893
|
Splitter.prototype.createSeparator = function (i) {
|
|
894
|
+
var _this = this;
|
|
893
895
|
var separator = this.createElement('div');
|
|
894
896
|
this.allBars.push(separator);
|
|
895
897
|
var arrow1 = this.createElement('button');
|
|
@@ -902,7 +904,6 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
902
904
|
arrow1.setAttribute('type', 'button');
|
|
903
905
|
arrow2.setAttribute('type', 'button');
|
|
904
906
|
var size = isNullOrUndefined(this.separatorSize) ? '1px' : this.separatorSize + 'px';
|
|
905
|
-
var proxy = null || this;
|
|
906
907
|
if (this.orientation === 'Horizontal') {
|
|
907
908
|
this.updateIconClass();
|
|
908
909
|
addClass([arrow2], [NAVIGATE_ARROW, ARROW_LEFT, HIDE_ICON]);
|
|
@@ -930,14 +931,16 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
930
931
|
else {
|
|
931
932
|
separator.removeAttribute('dir');
|
|
932
933
|
}
|
|
933
|
-
separator.
|
|
934
|
+
separator.delegateFocusHandler = function () {
|
|
934
935
|
separator.classList.add(SPLIT_BAR_ACTIVE);
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
}
|
|
938
|
-
separator.
|
|
936
|
+
_this.currentSeparator = separator;
|
|
937
|
+
_this.getPaneDetails();
|
|
938
|
+
};
|
|
939
|
+
separator.delegateBlurHandler = function () {
|
|
939
940
|
separator.classList.remove(SPLIT_BAR_ACTIVE);
|
|
940
|
-
}
|
|
941
|
+
};
|
|
942
|
+
separator.addEventListener('focus', separator.delegateFocusHandler);
|
|
943
|
+
separator.addEventListener('blur', separator.delegateBlurHandler);
|
|
941
944
|
return separator;
|
|
942
945
|
};
|
|
943
946
|
Splitter.prototype.updateResizablePanes = function (index) {
|
|
@@ -1012,25 +1015,29 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
1012
1015
|
var _this = this;
|
|
1013
1016
|
var sTout;
|
|
1014
1017
|
var hoverTimeOut;
|
|
1015
|
-
separator.
|
|
1018
|
+
separator.delegateMouseEnterHandler = function () {
|
|
1016
1019
|
/* istanbul ignore next */
|
|
1017
1020
|
sTout = setTimeout(function () {
|
|
1018
1021
|
addClass([separator], [SPLIT_BAR_HOVER]);
|
|
1019
1022
|
}, _this.iconsDelay);
|
|
1020
|
-
}
|
|
1021
|
-
separator.
|
|
1023
|
+
};
|
|
1024
|
+
separator.delegateMouseLeaveHandler = function () {
|
|
1022
1025
|
clearTimeout(sTout);
|
|
1023
1026
|
removeClass([separator], [SPLIT_BAR_HOVER]);
|
|
1024
|
-
}
|
|
1025
|
-
separator.
|
|
1027
|
+
};
|
|
1028
|
+
separator.delegateMouseOutHandler = function () {
|
|
1026
1029
|
clearTimeout(hoverTimeOut);
|
|
1027
|
-
}
|
|
1028
|
-
separator.
|
|
1030
|
+
};
|
|
1031
|
+
separator.delegateMouseOverHandler = function () {
|
|
1029
1032
|
/* istanbul ignore next */
|
|
1030
1033
|
hoverTimeOut = setTimeout(function () {
|
|
1031
1034
|
addClass([separator], [SPLIT_BAR_HOVER]);
|
|
1032
1035
|
});
|
|
1033
|
-
}
|
|
1036
|
+
};
|
|
1037
|
+
separator.addEventListener('mouseenter', separator.delegateMouseEnterHandler);
|
|
1038
|
+
separator.addEventListener('mouseleave', separator.delegateMouseLeaveHandler);
|
|
1039
|
+
separator.addEventListener('mouseout', separator.delegateMouseOutHandler);
|
|
1040
|
+
separator.addEventListener('mouseover', separator.delegateMouseOverHandler);
|
|
1034
1041
|
};
|
|
1035
1042
|
Splitter.prototype.getEventType = function (e) {
|
|
1036
1043
|
return (e.indexOf('mouse') > -1) ? 'mouse' : 'touch';
|
|
@@ -2233,7 +2240,8 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
2233
2240
|
Splitter.prototype.destroy = function () {
|
|
2234
2241
|
if (!this.isDestroyed) {
|
|
2235
2242
|
_super.prototype.destroy.call(this);
|
|
2236
|
-
EventHandler.remove(document, 'touchstart click', this.
|
|
2243
|
+
EventHandler.remove(document, 'touchstart click', this.documentClickHandler);
|
|
2244
|
+
this.documentClickHandler = null;
|
|
2237
2245
|
EventHandler.remove(this.element, 'keydown', this.onMove);
|
|
2238
2246
|
this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
|
|
2239
2247
|
while (this.element.attributes.length > 0) {
|
|
@@ -2259,6 +2267,30 @@ var Splitter = /** @class */ (function (_super) {
|
|
|
2259
2267
|
EventHandler.remove(separators[i], 'touchstart', this.onMouseDown);
|
|
2260
2268
|
EventHandler.remove(separators[i], 'click', this.clickHandler);
|
|
2261
2269
|
EventHandler.remove(separators[i], 'mousedown', this.onMouseDown);
|
|
2270
|
+
if (separators[i].delegateFocusHandler) {
|
|
2271
|
+
separators[i].removeEventListener('focus', separators[i].delegateFocusHandler);
|
|
2272
|
+
separators[i].delegateFocusHandler = null;
|
|
2273
|
+
}
|
|
2274
|
+
if (separators[i].delegateBlurHandler) {
|
|
2275
|
+
separators[i].removeEventListener('blur', separators[i].delegateBlurHandler);
|
|
2276
|
+
separators[i].delegateBlurHandler = null;
|
|
2277
|
+
}
|
|
2278
|
+
if (separators[i].delegateMouseEnterHandler) {
|
|
2279
|
+
separators[i].removeEventListener('mouseenter', separators[i].delegateMouseEnterHandler);
|
|
2280
|
+
separators[i].delegateMouseEnterHandler = null;
|
|
2281
|
+
}
|
|
2282
|
+
if (separators[i].delegateMouseLeaveHandler) {
|
|
2283
|
+
separators[i].removeEventListener('mouseleave', separators[i].delegateMouseLeaveHandler);
|
|
2284
|
+
separators[i].delegateMouseLeaveHandler = null;
|
|
2285
|
+
}
|
|
2286
|
+
if (separators[i].delegateMouseOutHandler) {
|
|
2287
|
+
separators[i].removeEventListener('mouseout', separators[i].delegateMouseOutHandler);
|
|
2288
|
+
separators[i].delegateMouseOutHandler = null;
|
|
2289
|
+
}
|
|
2290
|
+
if (separators[i].delegateMouseOverHandler) {
|
|
2291
|
+
separators[i].removeEventListener('mouseover', separators[i].delegateMouseOverHandler);
|
|
2292
|
+
separators[i].delegateMouseOverHandler = null;
|
|
2293
|
+
}
|
|
2262
2294
|
separators[i].parentNode.removeChild(separators[i]); // Use parentNode for broader compatibility
|
|
2263
2295
|
}
|
|
2264
2296
|
}
|