@thednp/shorty 2.0.5 → 2.0.7

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 (223) hide show
  1. package/README.md +1 -3
  2. package/dist/shorty.cjs +1 -17
  3. package/dist/shorty.cjs.map +1 -1
  4. package/dist/shorty.d.ts +2033 -1719
  5. package/dist/shorty.js +1 -17
  6. package/dist/shorty.js.map +1 -1
  7. package/dist/shorty.mjs +514 -516
  8. package/dist/shorty.mjs.map +1 -1
  9. package/package.json +13 -24
  10. package/src/attr/hasAttribute.ts +2 -1
  11. package/src/attr/hasAttributeNS.ts +5 -2
  12. package/src/attr/removeAttribute.ts +2 -1
  13. package/src/attr/removeAttributeNS.ts +5 -2
  14. package/src/attr/setAttributeNS.ts +6 -2
  15. package/src/boolean/isApple.ts +11 -10
  16. package/src/boolean/isFirefox.ts +3 -5
  17. package/src/boolean/isMobile.ts +9 -14
  18. package/src/boolean/support3DTransform.ts +2 -3
  19. package/src/boolean/supportAnimation.ts +2 -3
  20. package/src/boolean/supportPassive.ts +7 -7
  21. package/src/boolean/supportTouch.ts +4 -2
  22. package/src/boolean/supportTransform.ts +2 -3
  23. package/src/boolean/supportTransition.ts +2 -3
  24. package/src/event/off.ts +5 -1
  25. package/src/event/on.ts +5 -1
  26. package/src/event/one.ts +5 -5
  27. package/src/get/getBoundingClientRect.ts +10 -5
  28. package/src/get/getDocument.ts +4 -4
  29. package/src/get/getDocumentBody.ts +1 -1
  30. package/src/get/getDocumentElement.ts +1 -1
  31. package/src/get/getDocumentHead.ts +4 -2
  32. package/src/get/getElementAnimationDelay.ts +9 -6
  33. package/src/get/getElementAnimationDuration.ts +9 -6
  34. package/src/get/getElementStyle.ts +2 -2
  35. package/src/get/getElementTransitionDelay.ts +9 -8
  36. package/src/get/getElementTransitionDuration.ts +9 -8
  37. package/src/get/getNodeScroll.ts +4 -2
  38. package/src/get/getParentNode.ts +5 -5
  39. package/src/get/getRectRelativeToOffsetParent.ts +8 -5
  40. package/src/get/getUID.ts +1 -1
  41. package/src/get/getWindow.ts +2 -2
  42. package/src/index.ts +482 -440
  43. package/src/interface/event.d.ts +49 -41
  44. package/src/interface/fn.ts +1 -0
  45. package/src/interface/originalEvent.d.ts +1 -1
  46. package/src/is/isArray.ts +2 -1
  47. package/src/is/isCanvas.ts +2 -2
  48. package/src/is/isCustomElement.ts +5 -3
  49. package/src/is/isDocument.ts +3 -2
  50. package/src/is/isElement.ts +3 -2
  51. package/src/is/isElementInScrollRange.ts +3 -3
  52. package/src/is/isElementInViewport.ts +5 -4
  53. package/src/is/isElementsArray.ts +2 -2
  54. package/src/is/isFunction.ts +4 -2
  55. package/src/is/isHTMLCollection.ts +2 -2
  56. package/src/is/isHTMLElement.ts +1 -1
  57. package/src/is/isHTMLImageElement.ts +2 -2
  58. package/src/is/isJSON.ts +2 -2
  59. package/src/is/isMap.ts +3 -3
  60. package/src/is/isMedia.ts +9 -3
  61. package/src/is/isNode.ts +5 -3
  62. package/src/is/isNodeList.ts +2 -2
  63. package/src/is/isNumber.ts +2 -1
  64. package/src/is/isObject.ts +1 -1
  65. package/src/is/isRTL.ts +2 -2
  66. package/src/is/isSVGElement.ts +2 -2
  67. package/src/is/isScaledElement.ts +4 -3
  68. package/src/is/isShadowRoot.ts +2 -2
  69. package/src/is/isString.ts +2 -1
  70. package/src/is/isTableElement.ts +6 -3
  71. package/src/is/isWeakMap.ts +3 -3
  72. package/src/is/isWindow.ts +2 -2
  73. package/src/misc/Float32ArrayFrom.ts +3 -2
  74. package/src/misc/Float64ArrayFrom.ts +3 -2
  75. package/src/misc/ObjectAssign.ts +15 -4
  76. package/src/misc/ObjectEntries.ts +1 -1
  77. package/src/misc/ObjectHasOwn.ts +3 -2
  78. package/src/misc/ObjectKeys.ts +2 -1
  79. package/src/misc/ObjectValues.ts +3 -2
  80. package/src/misc/createCustomEvent.ts +7 -4
  81. package/src/misc/createElement.ts +6 -4
  82. package/src/misc/createElementNS.ts +3 -3
  83. package/src/misc/data.ts +2 -2
  84. package/src/misc/dispatchEvent.ts +2 -1
  85. package/src/misc/distinct.ts +2 -1
  86. package/src/misc/emulateAnimationEnd.ts +8 -5
  87. package/src/misc/emulateTransitionEnd.ts +8 -5
  88. package/src/misc/focus.ts +2 -1
  89. package/src/misc/focusTrap.ts +17 -14
  90. package/src/misc/getInstance.ts +1 -1
  91. package/src/misc/normalizeOptions.ts +15 -12
  92. package/src/misc/normalizeValue.ts +8 -6
  93. package/src/misc/setElementStyle.ts +9 -6
  94. package/src/misc/timer.ts +12 -5
  95. package/src/selectors/closest.ts +2 -2
  96. package/src/selectors/getCustomElements.ts +3 -3
  97. package/src/selectors/getElementById.ts +1 -1
  98. package/src/selectors/getElementsByClassName.ts +9 -4
  99. package/src/selectors/getElementsByTagName.ts +9 -4
  100. package/src/selectors/matches.ts +2 -1
  101. package/src/selectors/querySelector.ts +3 -3
  102. package/src/selectors/querySelectorAll.ts +2 -2
  103. package/src/strings/DOMContentLoadedEvent.ts +1 -1
  104. package/src/strings/DOMMouseScrollEvent.ts +1 -1
  105. package/src/strings/abortEvent.ts +1 -1
  106. package/src/strings/addEventListener.ts +1 -1
  107. package/src/strings/animationDelay.ts +1 -1
  108. package/src/strings/animationDuration.ts +1 -1
  109. package/src/strings/animationEndEvent.ts +1 -1
  110. package/src/strings/animationName.ts +1 -1
  111. package/src/strings/ariaChecked.ts +1 -1
  112. package/src/strings/ariaDescribedBy.ts +1 -1
  113. package/src/strings/ariaDescription.ts +1 -1
  114. package/src/strings/ariaExpanded.ts +1 -1
  115. package/src/strings/ariaHasPopup.ts +1 -1
  116. package/src/strings/ariaHidden.ts +1 -1
  117. package/src/strings/ariaLabel.ts +1 -1
  118. package/src/strings/ariaLabelledBy.ts +1 -1
  119. package/src/strings/ariaModal.ts +1 -1
  120. package/src/strings/ariaPressed.ts +1 -1
  121. package/src/strings/ariaSelected.ts +1 -1
  122. package/src/strings/ariaValueMax.ts +1 -1
  123. package/src/strings/ariaValueMin.ts +1 -1
  124. package/src/strings/ariaValueNow.ts +1 -1
  125. package/src/strings/ariaValueText.ts +1 -1
  126. package/src/strings/beforeunloadEvent.ts +1 -1
  127. package/src/strings/bezierEasings.ts +25 -25
  128. package/src/strings/blurEvent.ts +1 -1
  129. package/src/strings/changeEvent.ts +1 -1
  130. package/src/strings/contextmenuEvent.ts +1 -1
  131. package/src/strings/dragEvent.ts +1 -1
  132. package/src/strings/dragendEvent.ts +1 -1
  133. package/src/strings/dragenterEvent.ts +1 -1
  134. package/src/strings/dragleaveEvent.ts +1 -1
  135. package/src/strings/dragoverEvent.ts +1 -1
  136. package/src/strings/dragstartEvent.ts +1 -1
  137. package/src/strings/errorEvent.ts +1 -1
  138. package/src/strings/focusEvent.ts +1 -1
  139. package/src/strings/focusEvents.ts +1 -1
  140. package/src/strings/focusinEvent.ts +1 -1
  141. package/src/strings/focusoutEvent.ts +1 -1
  142. package/src/strings/gesturechangeEvent.ts +1 -1
  143. package/src/strings/gestureendEvent.ts +1 -1
  144. package/src/strings/gesturestartEvent.ts +1 -1
  145. package/src/strings/keyAlt.ts +1 -1
  146. package/src/strings/keyArrowDown.ts +1 -1
  147. package/src/strings/keyArrowLeft.ts +1 -1
  148. package/src/strings/keyArrowRight.ts +1 -1
  149. package/src/strings/keyArrowUp.ts +1 -1
  150. package/src/strings/keyBackspace.ts +1 -1
  151. package/src/strings/keyCapsLock.ts +1 -1
  152. package/src/strings/keyControl.ts +1 -1
  153. package/src/strings/keyDelete.ts +1 -1
  154. package/src/strings/keyEnter.ts +1 -1
  155. package/src/strings/keyEscape.ts +1 -1
  156. package/src/strings/keyInsert.ts +1 -1
  157. package/src/strings/keyMeta.ts +1 -1
  158. package/src/strings/keyNumpadEnter.ts +1 -1
  159. package/src/strings/keyPause.ts +1 -1
  160. package/src/strings/keyScrollLock.ts +1 -1
  161. package/src/strings/keyShift.ts +1 -1
  162. package/src/strings/keySpace.ts +1 -1
  163. package/src/strings/keyTab.ts +1 -1
  164. package/src/strings/keyboardEventKeys.ts +19 -19
  165. package/src/strings/keydownEvent.ts +1 -1
  166. package/src/strings/keypressEvent.ts +1 -1
  167. package/src/strings/keyupEvent.ts +1 -1
  168. package/src/strings/loadEvent.ts +1 -1
  169. package/src/strings/loadstartEvent.ts +1 -1
  170. package/src/strings/mouseClickEvents.ts +1 -1
  171. package/src/strings/mouseHoverEvents.ts +3 -4
  172. package/src/strings/mouseSwipeEvents.ts +4 -4
  173. package/src/strings/mouseclickEvent.ts +1 -1
  174. package/src/strings/mousedblclickEvent.ts +1 -1
  175. package/src/strings/mousedownEvent.ts +1 -1
  176. package/src/strings/mouseenterEvent.ts +1 -1
  177. package/src/strings/mousehoverEvent.ts +1 -1
  178. package/src/strings/mouseinEvent.ts +1 -1
  179. package/src/strings/mouseleaveEvent.ts +1 -1
  180. package/src/strings/mousemoveEvent.ts +1 -1
  181. package/src/strings/mouseoutEvent.ts +1 -1
  182. package/src/strings/mouseoverEvent.ts +1 -1
  183. package/src/strings/mouseupEvent.ts +1 -1
  184. package/src/strings/mousewheelEvent.ts +1 -1
  185. package/src/strings/moveEvent.ts +1 -1
  186. package/src/strings/nativeEvents.ts +50 -50
  187. package/src/strings/offsetHeight.ts +1 -1
  188. package/src/strings/offsetWidth.ts +1 -1
  189. package/src/strings/orientationchangeEvent.ts +1 -1
  190. package/src/strings/pointercancelEvent.ts +1 -1
  191. package/src/strings/pointerdownEvent.ts +1 -1
  192. package/src/strings/pointerleaveEvent.ts +1 -1
  193. package/src/strings/pointermoveEvent.ts +1 -1
  194. package/src/strings/pointerupEvent.ts +1 -1
  195. package/src/strings/readystatechangeEvent.ts +1 -1
  196. package/src/strings/removeEventListener.ts +1 -1
  197. package/src/strings/resetEvent.ts +1 -1
  198. package/src/strings/resizeEvent.ts +1 -1
  199. package/src/strings/scrollEvent.ts +1 -1
  200. package/src/strings/scrollHeight.ts +1 -1
  201. package/src/strings/scrollWidth.ts +1 -1
  202. package/src/strings/selectEvent.ts +1 -1
  203. package/src/strings/selectendEvent.ts +1 -1
  204. package/src/strings/selectstartEvent.ts +1 -1
  205. package/src/strings/submitEvent.ts +1 -1
  206. package/src/strings/tabindex.ts +1 -1
  207. package/src/strings/touchEvents.ts +4 -4
  208. package/src/strings/touchcancelEvent.ts +1 -1
  209. package/src/strings/touchendEvent.ts +1 -1
  210. package/src/strings/touchmoveEvent.ts +1 -1
  211. package/src/strings/touchstartEvent.ts +1 -1
  212. package/src/strings/transitionDelay.ts +1 -1
  213. package/src/strings/transitionDuration.ts +1 -1
  214. package/src/strings/transitionEndEvent.ts +1 -1
  215. package/src/strings/transitionProperty.ts +1 -1
  216. package/src/strings/unloadEvent.ts +1 -1
  217. package/src/strings/userAgentData.ts +3 -4
  218. package/test/boolean.test.ts +9 -9
  219. package/tsconfig.json +2 -1
  220. package/vite.config.mts +20 -0
  221. package/vitest.config-ui.mts +5 -0
  222. package/vitest.config.mts +5 -0
  223. package/dts.config.ts +0 -16
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for aria-modal.
3
3
  */
4
- const ariaModal = 'aria-modal';
4
+ const ariaModal = "aria-modal";
5
5
  export default ariaModal;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for aria-pressed.
3
3
  */
4
- const ariaPressed = 'aria-pressed';
4
+ const ariaPressed = "aria-pressed";
5
5
  export default ariaPressed;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for aria-selected.
3
3
  */
4
- const ariaSelected = 'aria-selected';
4
+ const ariaSelected = "aria-selected";
5
5
  export default ariaSelected;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for aria-valuemax.
3
3
  */
4
- const ariaValueMax = 'aria-valuemax';
4
+ const ariaValueMax = "aria-valuemax";
5
5
  export default ariaValueMax;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for aria-valuemin.
3
3
  */
4
- const ariaValueMin = 'aria-valuemin';
4
+ const ariaValueMin = "aria-valuemin";
5
5
  export default ariaValueMin;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for aria-valuenow.
3
3
  */
4
- const ariaValueNow = 'aria-valuenow';
4
+ const ariaValueNow = "aria-valuenow";
5
5
  export default ariaValueNow;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for aria-valuetext.
3
3
  */
4
- const ariaValueText = 'aria-valuetext';
4
+ const ariaValueText = "aria-valuetext";
5
5
  export default ariaValueText;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `beforeunload` event.
3
3
  */
4
- const beforeunloadEvent = 'beforeunload';
4
+ const beforeunloadEvent = "beforeunload";
5
5
  export default beforeunloadEvent;
@@ -3,30 +3,30 @@
3
3
  * CSS3 'cubic-bezier()' easing functions.
4
4
  */
5
5
  const bezierEasings = {
6
- linear: 'linear',
7
- easingSinusoidalIn: 'cubic-bezier(0.47,0,0.745,0.715)',
8
- easingSinusoidalOut: 'cubic-bezier(0.39,0.575,0.565,1)',
9
- easingSinusoidalInOut: 'cubic-bezier(0.445,0.05,0.55,0.95)',
10
- easingQuadraticIn: 'cubic-bezier(0.550,0.085,0.680,0.530)',
11
- easingQuadraticOut: 'cubic-bezier(0.250,0.460,0.450,0.940)',
12
- easingQuadraticInOut: 'cubic-bezier(0.455,0.030,0.515,0.955)',
13
- easingCubicIn: 'cubic-bezier(0.55,0.055,0.675,0.19)',
14
- easingCubicOut: 'cubic-bezier(0.215,0.61,0.355,1)',
15
- easingCubicInOut: 'cubic-bezier(0.645,0.045,0.355,1)',
16
- easingQuarticIn: 'cubic-bezier(0.895,0.03,0.685,0.22)',
17
- easingQuarticOut: 'cubic-bezier(0.165,0.84,0.44,1)',
18
- easingQuarticInOut: 'cubic-bezier(0.77,0,0.175,1)',
19
- easingQuinticIn: 'cubic-bezier(0.755,0.05,0.855,0.06)',
20
- easingQuinticOut: 'cubic-bezier(0.23,1,0.32,1)',
21
- easingQuinticInOut: 'cubic-bezier(0.86,0,0.07,1)',
22
- easingExponentialIn: 'cubic-bezier(0.95,0.05,0.795,0.035)',
23
- easingExponentialOut: 'cubic-bezier(0.19,1,0.22,1)',
24
- easingExponentialInOut: 'cubic-bezier(1,0,0,1)',
25
- easingCircularIn: 'cubic-bezier(0.6,0.04,0.98,0.335)',
26
- easingCircularOut: 'cubic-bezier(0.075,0.82,0.165,1)',
27
- easingCircularInOut: 'cubic-bezier(0.785,0.135,0.15,0.86)',
28
- easingBackIn: 'cubic-bezier(0.6,-0.28,0.735,0.045)',
29
- easingBackOut: 'cubic-bezier(0.175,0.885,0.32,1.275)',
30
- easingBackInOut: 'cubic-bezier(0.68,-0.55,0.265,1.55)',
6
+ linear: "linear",
7
+ easingSinusoidalIn: "cubic-bezier(0.47,0,0.745,0.715)",
8
+ easingSinusoidalOut: "cubic-bezier(0.39,0.575,0.565,1)",
9
+ easingSinusoidalInOut: "cubic-bezier(0.445,0.05,0.55,0.95)",
10
+ easingQuadraticIn: "cubic-bezier(0.550,0.085,0.680,0.530)",
11
+ easingQuadraticOut: "cubic-bezier(0.250,0.460,0.450,0.940)",
12
+ easingQuadraticInOut: "cubic-bezier(0.455,0.030,0.515,0.955)",
13
+ easingCubicIn: "cubic-bezier(0.55,0.055,0.675,0.19)",
14
+ easingCubicOut: "cubic-bezier(0.215,0.61,0.355,1)",
15
+ easingCubicInOut: "cubic-bezier(0.645,0.045,0.355,1)",
16
+ easingQuarticIn: "cubic-bezier(0.895,0.03,0.685,0.22)",
17
+ easingQuarticOut: "cubic-bezier(0.165,0.84,0.44,1)",
18
+ easingQuarticInOut: "cubic-bezier(0.77,0,0.175,1)",
19
+ easingQuinticIn: "cubic-bezier(0.755,0.05,0.855,0.06)",
20
+ easingQuinticOut: "cubic-bezier(0.23,1,0.32,1)",
21
+ easingQuinticInOut: "cubic-bezier(0.86,0,0.07,1)",
22
+ easingExponentialIn: "cubic-bezier(0.95,0.05,0.795,0.035)",
23
+ easingExponentialOut: "cubic-bezier(0.19,1,0.22,1)",
24
+ easingExponentialInOut: "cubic-bezier(1,0,0,1)",
25
+ easingCircularIn: "cubic-bezier(0.6,0.04,0.98,0.335)",
26
+ easingCircularOut: "cubic-bezier(0.075,0.82,0.165,1)",
27
+ easingCircularInOut: "cubic-bezier(0.785,0.135,0.15,0.86)",
28
+ easingBackIn: "cubic-bezier(0.6,-0.28,0.735,0.045)",
29
+ easingBackOut: "cubic-bezier(0.175,0.885,0.32,1.275)",
30
+ easingBackInOut: "cubic-bezier(0.68,-0.55,0.265,1.55)",
31
31
  };
32
32
  export default bezierEasings;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `blur` event.
3
3
  */
4
- const blurEvent = 'blur';
4
+ const blurEvent = "blur";
5
5
  export default blurEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `change` event.
3
3
  */
4
- const changeEvent = 'change';
4
+ const changeEvent = "change";
5
5
  export default changeEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `contextmenu` event.
3
3
  */
4
- const contextmenuEvent = 'contextmenu';
4
+ const contextmenuEvent = "contextmenu";
5
5
  export default contextmenuEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `drag` event.
3
3
  */
4
- const dragEvent = 'drag';
4
+ const dragEvent = "drag";
5
5
  export default dragEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `dragend` event.
3
3
  */
4
- const dragendEvent = 'dragend';
4
+ const dragendEvent = "dragend";
5
5
  export default dragendEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `dragenter` event.
3
3
  */
4
- const dragenterEvent = 'dragenter';
4
+ const dragenterEvent = "dragenter";
5
5
  export default dragenterEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `dragleave` event.
3
3
  */
4
- const dragleaveEvent = 'dragleave';
4
+ const dragleaveEvent = "dragleave";
5
5
  export default dragleaveEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `dragover` event.
3
3
  */
4
- const dragoverEvent = 'dragover';
4
+ const dragoverEvent = "dragover";
5
5
  export default dragoverEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `dragstart` event.
3
3
  */
4
- const dragstartEvent = 'dragstart';
4
+ const dragstartEvent = "dragstart";
5
5
  export default dragstartEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `error` event.
3
3
  */
4
- const errorEvent = 'error';
4
+ const errorEvent = "error";
5
5
  export default errorEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `focus` event.
3
3
  */
4
- const focusEvent = 'focus';
4
+ const focusEvent = "focus";
5
5
  export default focusEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for focus event names.
3
3
  */
4
- const focusEvents = { in: 'focusin', out: 'focusout' };
4
+ const focusEvents = { in: "focusin", out: "focusout" };
5
5
  export default focusEvents;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `focusin` event.
3
3
  */
4
- const focusinEvent = 'focusin';
4
+ const focusinEvent = "focusin";
5
5
  export default focusinEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `focusout` event.
3
3
  */
4
- const focusoutEvent = 'focusout';
4
+ const focusoutEvent = "focusout";
5
5
  export default focusoutEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `gesturechange` event.
3
3
  */
4
- const gesturechangeEvent = 'gesturechange';
4
+ const gesturechangeEvent = "gesturechange";
5
5
  export default gesturechangeEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `gestureend` event.
3
3
  */
4
- const gestureendEvent = 'gestureend';
4
+ const gestureendEvent = "gestureend";
5
5
  export default gestureendEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `gesturestart` event.
3
3
  */
4
- const gesturestartEvent = 'gesturestart';
4
+ const gesturestartEvent = "gesturestart";
5
5
  export default gesturestartEvent;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Alt` key.
3
3
  * e.which = 18
4
4
  */
5
- const keyAlt = 'Alt';
5
+ const keyAlt = "Alt";
6
6
 
7
7
  export default keyAlt;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `ArrowDown` key.
3
3
  * e.which = 40 equivalent
4
4
  */
5
- const keyArrowDown = 'ArrowDown';
5
+ const keyArrowDown = "ArrowDown";
6
6
 
7
7
  export default keyArrowDown;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `ArrowLeft` key.
3
3
  * e.which = 37 equivalent
4
4
  */
5
- const keyArrowLeft = 'ArrowLeft';
5
+ const keyArrowLeft = "ArrowLeft";
6
6
 
7
7
  export default keyArrowLeft;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `ArrowRight` key.
3
3
  * e.which = 39 equivalent
4
4
  */
5
- const keyArrowRight = 'ArrowRight';
5
+ const keyArrowRight = "ArrowRight";
6
6
 
7
7
  export default keyArrowRight;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `ArrowUp` key.
3
3
  * e.which = 38 equivalent
4
4
  */
5
- const keyArrowUp = 'ArrowUp';
5
+ const keyArrowUp = "ArrowUp";
6
6
 
7
7
  export default keyArrowUp;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Backspace` key.
3
3
  * e.which === 8 equivalent
4
4
  */
5
- const keyBackspace = 'Backspace';
5
+ const keyBackspace = "Backspace";
6
6
 
7
7
  export default keyBackspace;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `CapsLock` key.
3
3
  * e.which = 20 equivalent
4
4
  */
5
- const keyCapsLock = 'CapsLock';
5
+ const keyCapsLock = "CapsLock";
6
6
 
7
7
  export default keyCapsLock;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Control` key.
3
3
  * e.which = 17
4
4
  */
5
- const keyControl = 'Control';
5
+ const keyControl = "Control";
6
6
 
7
7
  export default keyControl;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Delete` key.
3
3
  * e.which = 46 equivalent
4
4
  */
5
- const keyDelete = 'Delete';
5
+ const keyDelete = "Delete";
6
6
 
7
7
  export default keyDelete;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Enter` key.
3
3
  * e.which = 13 equivalent
4
4
  */
5
- const keyEnter = 'Enter';
5
+ const keyEnter = "Enter";
6
6
 
7
7
  export default keyEnter;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Escape` key.
3
3
  * e.which = 27 equivalent
4
4
  */
5
- const keyEscape = 'Escape';
5
+ const keyEscape = "Escape";
6
6
 
7
7
  export default keyEscape;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Insert` key.
3
3
  * e.which = 45 equivalent
4
4
  */
5
- const keyInsert = 'Insert';
5
+ const keyInsert = "Insert";
6
6
 
7
7
  export default keyInsert;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Meta` key.
3
3
  * e.which = 93 equivalent
4
4
  */
5
- const keyMeta = 'Meta';
5
+ const keyMeta = "Meta";
6
6
 
7
7
  export default keyMeta;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Enter` key.
3
3
  * e.which = 13 equivalent
4
4
  */
5
- const keyNumpadEnter = 'NumpadEnter';
5
+ const keyNumpadEnter = "NumpadEnter";
6
6
 
7
7
  export default keyNumpadEnter;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Pause` key.
3
3
  * e.which = 19
4
4
  */
5
- const keyPause = 'Pause';
5
+ const keyPause = "Pause";
6
6
 
7
7
  export default keyPause;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `ScrollLock` key.
3
3
  * e.which = 145 equivalent
4
4
  */
5
- const keyScrollLock = 'ScrollLock';
5
+ const keyScrollLock = "ScrollLock";
6
6
 
7
7
  export default keyScrollLock;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Shift` key.
3
3
  * e.which = 16
4
4
  */
5
- const keyShift = 'Shift';
5
+ const keyShift = "Shift";
6
6
 
7
7
  export default keyShift;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Space` key.
3
3
  * e.which = 32 equivalent
4
4
  */
5
- const keySpace = 'Space';
5
+ const keySpace = "Space";
6
6
 
7
7
  export default keySpace;
@@ -2,6 +2,6 @@
2
2
  * A global namespace for `Tab` key.
3
3
  * e.which = 9 equivalent
4
4
  */
5
- const keyTab = 'Tab';
5
+ const keyTab = "Tab";
6
6
 
7
7
  export default keyTab;
@@ -2,25 +2,25 @@
2
2
  * A global namespace for keyboard event keys.
3
3
  */
4
4
  const keyboardEventKeys = {
5
- Backspace: 'Backspace', // 8
6
- Tab: 'Tab', // 9
7
- Enter: 'Enter', // 13
8
- Shift: 'Shift', // 16
9
- Control: 'Control', // 17
10
- Alt: 'Alt', // 18
11
- Pause: 'Pause', // 19
12
- CapsLock: 'CapsLock', // 20
13
- Escape: 'Escape', // 27
14
- Scape: 'Space', // 32
15
- ArrowLeft: 'ArrowLeft', // 37
16
- ArrowUp: 'ArrowUp', // 38
17
- ArrowRight: 'ArrowRight', // 39
18
- ArrowDown: 'ArrowDown', // 40
19
- Insert: 'Insert', // 45
20
- Delete: 'Delete', // 46
21
- Meta: 'Meta', // 91 windows key
22
- ContextMenu: 'ContextMenu', // 93
23
- ScrollLock: 'ScrollLock', // 145
5
+ Backspace: "Backspace", // 8
6
+ Tab: "Tab", // 9
7
+ Enter: "Enter", // 13
8
+ Shift: "Shift", // 16
9
+ Control: "Control", // 17
10
+ Alt: "Alt", // 18
11
+ Pause: "Pause", // 19
12
+ CapsLock: "CapsLock", // 20
13
+ Escape: "Escape", // 27
14
+ Scape: "Space", // 32
15
+ ArrowLeft: "ArrowLeft", // 37
16
+ ArrowUp: "ArrowUp", // 38
17
+ ArrowRight: "ArrowRight", // 39
18
+ ArrowDown: "ArrowDown", // 40
19
+ Insert: "Insert", // 45
20
+ Delete: "Delete", // 46
21
+ Meta: "Meta", // 91 windows key
22
+ ContextMenu: "ContextMenu", // 93
23
+ ScrollLock: "ScrollLock", // 145
24
24
  };
25
25
 
26
26
  export default keyboardEventKeys;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `keydown` event.
3
3
  */
4
- const keydownEvent = 'keydown';
4
+ const keydownEvent = "keydown";
5
5
  export default keydownEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `keypress` event.
3
3
  */
4
- const keypressEvent = 'keypress';
4
+ const keypressEvent = "keypress";
5
5
  export default keypressEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `keyup` event.
3
3
  */
4
- const keyupEvent = 'keyup';
4
+ const keyupEvent = "keyup";
5
5
  export default keyupEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `load` event.
3
3
  */
4
- const loadEvent = 'load';
4
+ const loadEvent = "load";
5
5
  export default loadEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `loadstart` event.
3
3
  */
4
- const loadstartEvent = 'loadstart';
4
+ const loadstartEvent = "loadstart";
5
5
  export default loadstartEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for mouse click events.
3
3
  */
4
- const mouseClickEvents = { down: 'mousedown', up: 'mouseup' };
4
+ const mouseClickEvents = { down: "mousedown", up: "mouseup" };
5
5
  export default mouseClickEvents;
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * A global namespace for mouse hover events.
3
3
  */
4
- const mouseHoverEvents =
5
- 'onmouseleave' in document
6
- ? ['mouseenter', 'mouseleave']
7
- : /* istanbul ignore next */ ['mouseover', 'mouseout'];
4
+ const mouseHoverEvents = "onmouseleave" in document
5
+ ? ["mouseenter", "mouseleave"]
6
+ : /* istanbul ignore next @preserve */ ["mouseover", "mouseout"];
8
7
  export default mouseHoverEvents;
@@ -2,9 +2,9 @@
2
2
  * A global namespace for mouse events equivalent to touch events.
3
3
  */
4
4
  const mouseSwipeEvents = {
5
- start: 'mousedown',
6
- end: 'mouseup',
7
- move: 'mousemove',
8
- cancel: 'mouseleave',
5
+ start: "mousedown",
6
+ end: "mouseup",
7
+ move: "mousemove",
8
+ cancel: "mouseleave",
9
9
  };
10
10
  export default mouseSwipeEvents;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `click` event.
3
3
  */
4
- const mouseclickEvent = 'click';
4
+ const mouseclickEvent = "click";
5
5
  export default mouseclickEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `dblclick` event.
3
3
  */
4
- const mousedblclickEvent = 'dblclick';
4
+ const mousedblclickEvent = "dblclick";
5
5
  export default mousedblclickEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mousedown` event.
3
3
  */
4
- const mousedownEvent = 'mousedown';
4
+ const mousedownEvent = "mousedown";
5
5
  export default mousedownEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mouseenter` event.
3
3
  */
4
- const mouseenterEvent = 'mouseenter';
4
+ const mouseenterEvent = "mouseenter";
5
5
  export default mouseenterEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `hover` event.
3
3
  */
4
- const mousehoverEvent = 'hover';
4
+ const mousehoverEvent = "hover";
5
5
  export default mousehoverEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mousein` event.
3
3
  */
4
- const mouseinEvent = 'mousein';
4
+ const mouseinEvent = "mousein";
5
5
  export default mouseinEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mouseleave` event.
3
3
  */
4
- const mouseleaveEvent = 'mouseleave';
4
+ const mouseleaveEvent = "mouseleave";
5
5
  export default mouseleaveEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mousemove` event.
3
3
  */
4
- const mousemoveEvent = 'mousemove';
4
+ const mousemoveEvent = "mousemove";
5
5
  export default mousemoveEvent;