easy-layout 5.0.79 → 5.0.83

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.
@@ -2,14 +2,15 @@
2
2
 
3
3
  import withStyle from "easy-with-style"; ///
4
4
 
5
- import { window, Element } from "easy";
5
+ import { window, Element, eventTypes } from "easy";
6
6
 
7
7
  import SizeableDiv from "../div/sizeable";
8
8
 
9
9
  import { resetCursor } from "../cursor";
10
10
  import { ESCAPE_KEY_CODE } from "../constants";
11
11
  import { ESCAPE_KEY_STOPS_DRAGGING_OPTION } from "../options";
12
- import { DRAG_EVENT_TYPE, STOP_DRAG_EVENT_TYPE, START_DRAG_EVENT_TYPE, MOUSEUP_BLUR_EVENT_TYPE } from "../eventTypes";
12
+
13
+ const { BLUR_EVENT_TYPE, DRAG_EVENT_TYPE, MOUSEUP_EVENT_TYPE, STOP_DRAG_EVENT_TYPE, START_DRAG_EVENT_TYPE } = eventTypes;
13
14
 
14
15
  class SplitterDiv extends Element {
15
16
  constructor(selector, options) {
@@ -223,7 +224,7 @@ class SplitterDiv extends Element {
223
224
  stopDragHandler && this.onStopDrag(stopDragHandler);
224
225
  startDragHandler && this.onStartDrag(startDragHandler);
225
226
 
226
- window.on(MOUSEUP_BLUR_EVENT_TYPE, this.mouseUpHandler, this); ///
227
+ window.on(`${BLUR_EVENT_TYPE} ${MOUSEUP_EVENT_TYPE}`, this.mouseUpHandler, this); ///
227
228
 
228
229
  window.onMouseMove(this.mouseMoveHandler, this);
229
230
 
@@ -242,7 +243,7 @@ class SplitterDiv extends Element {
242
243
  stopDragHandler && this.offStopDrag(stopDragHandler);
243
244
  startDragHandler && this.offStartDrag(startDragHandler);
244
245
 
245
- window.off(MOUSEUP_BLUR_EVENT_TYPE, this.mouseUpHandler, this); ///
246
+ window.off(`${BLUR_EVENT_TYPE} ${MOUSEUP_EVENT_TYPE}`, this.mouseUpHandler, this); ///
246
247
 
247
248
  window.offMouseMove(this.mouseMoveHandler, this);
248
249
 
package/lib/eventTypes.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- exports.MOUSEUP_BLUR_EVENT_TYPE = exports.START_DRAG_EVENT_TYPE = exports.STOP_DRAG_EVENT_TYPE = exports.DRAG_EVENT_TYPE = void 0;
6
- var DRAG_EVENT_TYPE = "drag";
7
- exports.DRAG_EVENT_TYPE = DRAG_EVENT_TYPE;
8
- var STOP_DRAG_EVENT_TYPE = "stop drag";
9
- exports.STOP_DRAG_EVENT_TYPE = STOP_DRAG_EVENT_TYPE;
10
- var START_DRAG_EVENT_TYPE = "start drag";
11
- exports.START_DRAG_EVENT_TYPE = START_DRAG_EVENT_TYPE;
12
- var MOUSEUP_BLUR_EVENT_TYPE = "mouseup blur";
13
- exports.MOUSEUP_BLUR_EVENT_TYPE = MOUSEUP_BLUR_EVENT_TYPE;
14
-
15
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9ldmVudFR5cGVzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5leHBvcnQgY29uc3QgRFJBR19FVkVOVF9UWVBFID0gXCJkcmFnXCI7XG5leHBvcnQgY29uc3QgU1RPUF9EUkFHX0VWRU5UX1RZUEUgPSBcInN0b3AgZHJhZ1wiO1xuZXhwb3J0IGNvbnN0IFNUQVJUX0RSQUdfRVZFTlRfVFlQRSA9IFwic3RhcnQgZHJhZ1wiO1xuZXhwb3J0IGNvbnN0IE1PVVNFVVBfQkxVUl9FVkVOVF9UWVBFID0gXCJtb3VzZXVwIGJsdXJcIjtcbiJdLCJuYW1lcyI6WyJEUkFHX0VWRU5UX1RZUEUiLCJTVE9QX0RSQUdfRVZFTlRfVFlQRSIsIlNUQVJUX0RSQUdfRVZFTlRfVFlQRSIsIk1PVVNFVVBfQkxVUl9FVkVOVF9UWVBFIl0sIm1hcHBpbmdzIjoiQUFBQSxDQUFZOzs7OztBQUVMLEdBQUssQ0FBQ0EsZUFBZSxHQUFHLENBQU07UUFBeEJBLGVBQWUsR0FBZkEsZUFBZTtBQUNyQixHQUFLLENBQUNDLG9CQUFvQixHQUFHLENBQVc7UUFBbENBLG9CQUFvQixHQUFwQkEsb0JBQW9CO0FBQzFCLEdBQUssQ0FBQ0MscUJBQXFCLEdBQUcsQ0FBWTtRQUFwQ0EscUJBQXFCLEdBQXJCQSxxQkFBcUI7QUFDM0IsR0FBSyxDQUFDQyx1QkFBdUIsR0FBRyxDQUFjO1FBQXhDQSx1QkFBdUIsR0FBdkJBLHVCQUF1QiJ9
package/src/eventTypes.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- export const DRAG_EVENT_TYPE = "drag";
4
- export const STOP_DRAG_EVENT_TYPE = "stop drag";
5
- export const START_DRAG_EVENT_TYPE = "start drag";
6
- export const MOUSEUP_BLUR_EVENT_TYPE = "mouseup blur";