@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
|
@@ -295,6 +295,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
295
295
|
this.onMouseUpHandler = this.onMouseUp.bind(this);
|
|
296
296
|
this.onTouchMoveHandler = this.onMouseMove.bind(this);
|
|
297
297
|
this.onTouchEndHandler = this.onMouseUp.bind(this);
|
|
298
|
+
this.documentClickHandler = this.onDocumentClick.bind(this);
|
|
298
299
|
this.wrapper = this.element.cloneNode(true);
|
|
299
300
|
this.wrapperParent = this.element.parentElement;
|
|
300
301
|
removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
|
|
@@ -341,7 +342,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
341
342
|
this.collapseFlag = true;
|
|
342
343
|
this.isCollapsed();
|
|
343
344
|
this.collapseFlag = false;
|
|
344
|
-
EventHandler.add(document, 'touchstart click', this.
|
|
345
|
+
EventHandler.add(document, 'touchstart click', this.documentClickHandler);
|
|
345
346
|
this.renderComplete();
|
|
346
347
|
this.element.ownerDocument.defaultView.addEventListener('resize', this.onReportWindowSize, true);
|
|
347
348
|
EventHandler.add(this.element, 'keydown', this.onMove, this);
|
|
@@ -887,6 +888,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
887
888
|
}
|
|
888
889
|
};
|
|
889
890
|
Splitter.prototype.createSeparator = function (i) {
|
|
891
|
+
var _this = this;
|
|
890
892
|
var separator = this.createElement('div');
|
|
891
893
|
this.allBars.push(separator);
|
|
892
894
|
var arrow1 = this.createElement('button');
|
|
@@ -899,7 +901,6 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
899
901
|
arrow1.setAttribute('type', 'button');
|
|
900
902
|
arrow2.setAttribute('type', 'button');
|
|
901
903
|
var size = isNullOrUndefined(this.separatorSize) ? '1px' : this.separatorSize + 'px';
|
|
902
|
-
var proxy = this;
|
|
903
904
|
if (this.orientation === 'Horizontal') {
|
|
904
905
|
this.updateIconClass();
|
|
905
906
|
addClass([arrow2], [NAVIGATE_ARROW, ARROW_LEFT, HIDE_ICON]);
|
|
@@ -927,14 +928,16 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
927
928
|
else {
|
|
928
929
|
separator.removeAttribute('dir');
|
|
929
930
|
}
|
|
930
|
-
separator.
|
|
931
|
+
separator.delegateFocusHandler = function () {
|
|
931
932
|
separator.classList.add(SPLIT_BAR_ACTIVE);
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
}
|
|
935
|
-
separator.
|
|
933
|
+
_this.currentSeparator = separator;
|
|
934
|
+
_this.getPaneDetails();
|
|
935
|
+
};
|
|
936
|
+
separator.delegateBlurHandler = function () {
|
|
936
937
|
separator.classList.remove(SPLIT_BAR_ACTIVE);
|
|
937
|
-
}
|
|
938
|
+
};
|
|
939
|
+
separator.addEventListener('focus', separator.delegateFocusHandler);
|
|
940
|
+
separator.addEventListener('blur', separator.delegateBlurHandler);
|
|
938
941
|
return separator;
|
|
939
942
|
};
|
|
940
943
|
Splitter.prototype.updateResizablePanes = function (index) {
|
|
@@ -1009,25 +1012,29 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
1009
1012
|
var _this = this;
|
|
1010
1013
|
var sTout;
|
|
1011
1014
|
var hoverTimeOut;
|
|
1012
|
-
separator.
|
|
1015
|
+
separator.delegateMouseEnterHandler = function () {
|
|
1013
1016
|
/* istanbul ignore next */
|
|
1014
1017
|
sTout = setTimeout(function () {
|
|
1015
1018
|
addClass([separator], [SPLIT_BAR_HOVER]);
|
|
1016
1019
|
}, _this.iconsDelay);
|
|
1017
|
-
}
|
|
1018
|
-
separator.
|
|
1020
|
+
};
|
|
1021
|
+
separator.delegateMouseLeaveHandler = function () {
|
|
1019
1022
|
clearTimeout(sTout);
|
|
1020
1023
|
removeClass([separator], [SPLIT_BAR_HOVER]);
|
|
1021
|
-
}
|
|
1022
|
-
separator.
|
|
1024
|
+
};
|
|
1025
|
+
separator.delegateMouseOutHandler = function () {
|
|
1023
1026
|
clearTimeout(hoverTimeOut);
|
|
1024
|
-
}
|
|
1025
|
-
separator.
|
|
1027
|
+
};
|
|
1028
|
+
separator.delegateMouseOverHandler = function () {
|
|
1026
1029
|
/* istanbul ignore next */
|
|
1027
1030
|
hoverTimeOut = setTimeout(function () {
|
|
1028
1031
|
addClass([separator], [SPLIT_BAR_HOVER]);
|
|
1029
1032
|
});
|
|
1030
|
-
}
|
|
1033
|
+
};
|
|
1034
|
+
separator.addEventListener('mouseenter', separator.delegateMouseEnterHandler);
|
|
1035
|
+
separator.addEventListener('mouseleave', separator.delegateMouseLeaveHandler);
|
|
1036
|
+
separator.addEventListener('mouseout', separator.delegateMouseOutHandler);
|
|
1037
|
+
separator.addEventListener('mouseover', separator.delegateMouseOverHandler);
|
|
1031
1038
|
};
|
|
1032
1039
|
Splitter.prototype.getEventType = function (e) {
|
|
1033
1040
|
return (e.indexOf('mouse') > -1) ? 'mouse' : 'touch';
|
|
@@ -2226,7 +2233,8 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
2226
2233
|
Splitter.prototype.destroy = function () {
|
|
2227
2234
|
if (!this.isDestroyed) {
|
|
2228
2235
|
_super.prototype.destroy.call(this);
|
|
2229
|
-
EventHandler.remove(document, 'touchstart click', this.
|
|
2236
|
+
EventHandler.remove(document, 'touchstart click', this.documentClickHandler);
|
|
2237
|
+
this.documentClickHandler = null;
|
|
2230
2238
|
EventHandler.remove(this.element, 'keydown', this.onMove);
|
|
2231
2239
|
this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
|
|
2232
2240
|
while (this.element.attributes.length > 0) {
|
|
@@ -2252,6 +2260,30 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
2252
2260
|
EventHandler.remove(separators[i], 'touchstart', this.onMouseDown);
|
|
2253
2261
|
EventHandler.remove(separators[i], 'click', this.clickHandler);
|
|
2254
2262
|
EventHandler.remove(separators[i], 'mousedown', this.onMouseDown);
|
|
2263
|
+
if (separators[i].delegateFocusHandler) {
|
|
2264
|
+
separators[i].removeEventListener('focus', separators[i].delegateFocusHandler);
|
|
2265
|
+
separators[i].delegateFocusHandler = null;
|
|
2266
|
+
}
|
|
2267
|
+
if (separators[i].delegateBlurHandler) {
|
|
2268
|
+
separators[i].removeEventListener('blur', separators[i].delegateBlurHandler);
|
|
2269
|
+
separators[i].delegateBlurHandler = null;
|
|
2270
|
+
}
|
|
2271
|
+
if (separators[i].delegateMouseEnterHandler) {
|
|
2272
|
+
separators[i].removeEventListener('mouseenter', separators[i].delegateMouseEnterHandler);
|
|
2273
|
+
separators[i].delegateMouseEnterHandler = null;
|
|
2274
|
+
}
|
|
2275
|
+
if (separators[i].delegateMouseLeaveHandler) {
|
|
2276
|
+
separators[i].removeEventListener('mouseleave', separators[i].delegateMouseLeaveHandler);
|
|
2277
|
+
separators[i].delegateMouseLeaveHandler = null;
|
|
2278
|
+
}
|
|
2279
|
+
if (separators[i].delegateMouseOutHandler) {
|
|
2280
|
+
separators[i].removeEventListener('mouseout', separators[i].delegateMouseOutHandler);
|
|
2281
|
+
separators[i].delegateMouseOutHandler = null;
|
|
2282
|
+
}
|
|
2283
|
+
if (separators[i].delegateMouseOverHandler) {
|
|
2284
|
+
separators[i].removeEventListener('mouseover', separators[i].delegateMouseOverHandler);
|
|
2285
|
+
separators[i].delegateMouseOverHandler = null;
|
|
2286
|
+
}
|
|
2255
2287
|
separators[i].parentNode.removeChild(separators[i]); // Use parentNode for broader compatibility
|
|
2256
2288
|
}
|
|
2257
2289
|
}
|