@thednp/shorty 2.0.4 → 2.0.6

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 (225) hide show
  1. package/README.md +5 -5
  2. package/dist/shorty.cjs +18 -1
  3. package/dist/shorty.cjs.map +1 -1
  4. package/dist/shorty.d.ts +31 -18
  5. package/dist/shorty.js +18 -1
  6. package/dist/shorty.js.map +1 -1
  7. package/dist/shorty.mjs +451 -386
  8. package/dist/shorty.mjs.map +1 -1
  9. package/dts.config.ts +1 -7
  10. package/package.json +16 -28
  11. package/src/attr/hasAttribute.ts +2 -1
  12. package/src/attr/hasAttributeNS.ts +5 -2
  13. package/src/attr/removeAttribute.ts +2 -1
  14. package/src/attr/removeAttributeNS.ts +5 -2
  15. package/src/attr/setAttributeNS.ts +6 -2
  16. package/src/boolean/isApple.ts +6 -4
  17. package/src/boolean/isFirefox.ts +2 -2
  18. package/src/boolean/isMobile.ts +4 -4
  19. package/src/boolean/support3DTransform.ts +4 -2
  20. package/src/boolean/supportAnimation.ts +4 -2
  21. package/src/boolean/supportPassive.ts +6 -6
  22. package/src/boolean/supportTouch.ts +3 -2
  23. package/src/boolean/supportTransform.ts +4 -2
  24. package/src/boolean/supportTransition.ts +4 -2
  25. package/src/event/off.ts +5 -1
  26. package/src/event/on.ts +5 -1
  27. package/src/event/one.ts +5 -5
  28. package/src/get/getBoundingClientRect.ts +10 -5
  29. package/src/get/getDocument.ts +4 -4
  30. package/src/get/getDocumentBody.ts +1 -1
  31. package/src/get/getDocumentElement.ts +1 -1
  32. package/src/get/getDocumentHead.ts +4 -2
  33. package/src/get/getElementAnimationDelay.ts +9 -6
  34. package/src/get/getElementAnimationDuration.ts +9 -6
  35. package/src/get/getElementStyle.ts +2 -2
  36. package/src/get/getElementTransitionDelay.ts +9 -8
  37. package/src/get/getElementTransitionDuration.ts +9 -8
  38. package/src/get/getNodeScroll.ts +4 -2
  39. package/src/get/getParentNode.ts +5 -5
  40. package/src/get/getRectRelativeToOffsetParent.ts +9 -6
  41. package/src/get/getUID.ts +1 -1
  42. package/src/get/getWindow.ts +2 -2
  43. package/src/index.ts +425 -415
  44. package/src/interface/event.d.ts +49 -41
  45. package/src/interface/fn.ts +1 -0
  46. package/src/interface/originalEvent.d.ts +1 -1
  47. package/src/is/isArray.ts +2 -1
  48. package/src/is/isCanvas.ts +2 -2
  49. package/src/is/isCustomElement.ts +5 -3
  50. package/src/is/isDocument.ts +3 -2
  51. package/src/is/isElement.ts +3 -2
  52. package/src/is/isElementInScrollRange.ts +3 -3
  53. package/src/is/isElementInViewport.ts +5 -4
  54. package/src/is/isElementsArray.ts +2 -2
  55. package/src/is/isFunction.ts +4 -2
  56. package/src/is/isHTMLCollection.ts +2 -2
  57. package/src/is/isHTMLElement.ts +1 -1
  58. package/src/is/isHTMLImageElement.ts +2 -2
  59. package/src/is/isJSON.ts +2 -2
  60. package/src/is/isMap.ts +3 -3
  61. package/src/is/isMedia.ts +9 -3
  62. package/src/is/isNode.ts +5 -3
  63. package/src/is/isNodeList.ts +2 -2
  64. package/src/is/isNumber.ts +2 -1
  65. package/src/is/isObject.ts +1 -1
  66. package/src/is/isRTL.ts +2 -2
  67. package/src/is/isSVGElement.ts +2 -2
  68. package/src/is/isScaledElement.ts +4 -3
  69. package/src/is/isShadowRoot.ts +2 -2
  70. package/src/is/isString.ts +2 -1
  71. package/src/is/isTableElement.ts +6 -3
  72. package/src/is/isWeakMap.ts +3 -3
  73. package/src/is/isWindow.ts +2 -2
  74. package/src/misc/Float32ArrayFrom.ts +3 -2
  75. package/src/misc/Float64ArrayFrom.ts +3 -2
  76. package/src/misc/ObjectAssign.ts +15 -4
  77. package/src/misc/ObjectEntries.ts +1 -1
  78. package/src/misc/ObjectHasOwn.ts +3 -2
  79. package/src/misc/ObjectKeys.ts +2 -1
  80. package/src/misc/ObjectValues.ts +3 -2
  81. package/src/misc/createCustomEvent.ts +8 -5
  82. package/src/misc/createElement.ts +6 -4
  83. package/src/misc/createElementNS.ts +3 -3
  84. package/src/misc/data.ts +4 -7
  85. package/src/misc/dispatchEvent.ts +2 -1
  86. package/src/misc/distinct.ts +2 -1
  87. package/src/misc/emulateAnimationEnd.ts +12 -9
  88. package/src/misc/emulateTransitionEnd.ts +11 -8
  89. package/src/misc/focus.ts +2 -1
  90. package/src/misc/focusTrap.ts +67 -0
  91. package/src/misc/getInstance.ts +1 -1
  92. package/src/misc/normalizeOptions.ts +16 -13
  93. package/src/misc/normalizeValue.ts +8 -6
  94. package/src/misc/setElementStyle.ts +9 -6
  95. package/src/misc/timer.ts +15 -8
  96. package/src/selectors/closest.ts +2 -2
  97. package/src/selectors/getCustomElements.ts +4 -5
  98. package/src/selectors/getElementById.ts +3 -3
  99. package/src/selectors/getElementsByClassName.ts +5 -5
  100. package/src/selectors/getElementsByTagName.ts +7 -5
  101. package/src/selectors/matches.ts +2 -1
  102. package/src/selectors/querySelector.ts +9 -6
  103. package/src/selectors/querySelectorAll.ts +6 -3
  104. package/src/strings/DOMContentLoadedEvent.ts +1 -1
  105. package/src/strings/DOMMouseScrollEvent.ts +1 -1
  106. package/src/strings/abortEvent.ts +1 -1
  107. package/src/strings/addEventListener.ts +1 -1
  108. package/src/strings/animationDelay.ts +1 -1
  109. package/src/strings/animationDuration.ts +1 -1
  110. package/src/strings/animationEndEvent.ts +1 -1
  111. package/src/strings/animationName.ts +1 -1
  112. package/src/strings/ariaChecked.ts +1 -1
  113. package/src/strings/ariaDescribedBy.ts +1 -1
  114. package/src/strings/ariaDescription.ts +1 -1
  115. package/src/strings/ariaExpanded.ts +1 -1
  116. package/src/strings/ariaHasPopup.ts +1 -1
  117. package/src/strings/ariaHidden.ts +1 -1
  118. package/src/strings/ariaLabel.ts +1 -1
  119. package/src/strings/ariaLabelledBy.ts +1 -1
  120. package/src/strings/ariaModal.ts +1 -1
  121. package/src/strings/ariaPressed.ts +1 -1
  122. package/src/strings/ariaSelected.ts +1 -1
  123. package/src/strings/ariaValueMax.ts +1 -1
  124. package/src/strings/ariaValueMin.ts +1 -1
  125. package/src/strings/ariaValueNow.ts +1 -1
  126. package/src/strings/ariaValueText.ts +1 -1
  127. package/src/strings/beforeunloadEvent.ts +1 -1
  128. package/src/strings/bezierEasings.ts +25 -25
  129. package/src/strings/blurEvent.ts +1 -1
  130. package/src/strings/changeEvent.ts +1 -1
  131. package/src/strings/contextmenuEvent.ts +1 -1
  132. package/src/strings/dragEvent.ts +1 -1
  133. package/src/strings/dragendEvent.ts +1 -1
  134. package/src/strings/dragenterEvent.ts +1 -1
  135. package/src/strings/dragleaveEvent.ts +1 -1
  136. package/src/strings/dragoverEvent.ts +1 -1
  137. package/src/strings/dragstartEvent.ts +1 -1
  138. package/src/strings/errorEvent.ts +1 -1
  139. package/src/strings/focusEvent.ts +1 -1
  140. package/src/strings/focusEvents.ts +1 -1
  141. package/src/strings/focusableSelector.ts +4 -0
  142. package/src/strings/focusinEvent.ts +1 -1
  143. package/src/strings/focusoutEvent.ts +1 -1
  144. package/src/strings/gesturechangeEvent.ts +1 -1
  145. package/src/strings/gestureendEvent.ts +1 -1
  146. package/src/strings/gesturestartEvent.ts +1 -1
  147. package/src/strings/keyAlt.ts +1 -1
  148. package/src/strings/keyArrowDown.ts +1 -1
  149. package/src/strings/keyArrowLeft.ts +1 -1
  150. package/src/strings/keyArrowRight.ts +1 -1
  151. package/src/strings/keyArrowUp.ts +1 -1
  152. package/src/strings/keyBackspace.ts +1 -1
  153. package/src/strings/keyCapsLock.ts +1 -1
  154. package/src/strings/keyControl.ts +1 -1
  155. package/src/strings/keyDelete.ts +1 -1
  156. package/src/strings/keyEnter.ts +1 -1
  157. package/src/strings/keyEscape.ts +1 -1
  158. package/src/strings/keyInsert.ts +1 -1
  159. package/src/strings/keyMeta.ts +1 -1
  160. package/src/strings/keyNumpadEnter.ts +1 -1
  161. package/src/strings/keyPause.ts +1 -1
  162. package/src/strings/keyScrollLock.ts +1 -1
  163. package/src/strings/keyShift.ts +1 -1
  164. package/src/strings/keySpace.ts +1 -1
  165. package/src/strings/keyTab.ts +1 -1
  166. package/src/strings/keyboardEventKeys.ts +19 -19
  167. package/src/strings/keydownEvent.ts +1 -1
  168. package/src/strings/keypressEvent.ts +1 -1
  169. package/src/strings/keyupEvent.ts +1 -1
  170. package/src/strings/loadEvent.ts +1 -1
  171. package/src/strings/loadstartEvent.ts +1 -1
  172. package/src/strings/mouseClickEvents.ts +1 -1
  173. package/src/strings/mouseHoverEvents.ts +3 -4
  174. package/src/strings/mouseSwipeEvents.ts +4 -4
  175. package/src/strings/mouseclickEvent.ts +1 -1
  176. package/src/strings/mousedblclickEvent.ts +1 -1
  177. package/src/strings/mousedownEvent.ts +1 -1
  178. package/src/strings/mouseenterEvent.ts +1 -1
  179. package/src/strings/mousehoverEvent.ts +1 -1
  180. package/src/strings/mouseinEvent.ts +1 -1
  181. package/src/strings/mouseleaveEvent.ts +1 -1
  182. package/src/strings/mousemoveEvent.ts +1 -1
  183. package/src/strings/mouseoutEvent.ts +1 -1
  184. package/src/strings/mouseoverEvent.ts +1 -1
  185. package/src/strings/mouseupEvent.ts +1 -1
  186. package/src/strings/mousewheelEvent.ts +1 -1
  187. package/src/strings/moveEvent.ts +1 -1
  188. package/src/strings/nativeEvents.ts +50 -50
  189. package/src/strings/offsetHeight.ts +1 -1
  190. package/src/strings/offsetWidth.ts +1 -1
  191. package/src/strings/orientationchangeEvent.ts +1 -1
  192. package/src/strings/pointercancelEvent.ts +1 -1
  193. package/src/strings/pointerdownEvent.ts +1 -1
  194. package/src/strings/pointerleaveEvent.ts +1 -1
  195. package/src/strings/pointermoveEvent.ts +1 -1
  196. package/src/strings/pointerupEvent.ts +1 -1
  197. package/src/strings/readystatechangeEvent.ts +1 -1
  198. package/src/strings/removeEventListener.ts +1 -1
  199. package/src/strings/resetEvent.ts +1 -1
  200. package/src/strings/resizeEvent.ts +1 -1
  201. package/src/strings/scrollEvent.ts +1 -1
  202. package/src/strings/scrollHeight.ts +1 -1
  203. package/src/strings/scrollWidth.ts +1 -1
  204. package/src/strings/selectEvent.ts +1 -1
  205. package/src/strings/selectendEvent.ts +1 -1
  206. package/src/strings/selectstartEvent.ts +1 -1
  207. package/src/strings/submitEvent.ts +1 -1
  208. package/src/strings/tabindex.ts +1 -1
  209. package/src/strings/touchEvents.ts +4 -4
  210. package/src/strings/touchcancelEvent.ts +1 -1
  211. package/src/strings/touchendEvent.ts +1 -1
  212. package/src/strings/touchmoveEvent.ts +1 -1
  213. package/src/strings/touchstartEvent.ts +1 -1
  214. package/src/strings/transitionDelay.ts +1 -1
  215. package/src/strings/transitionDuration.ts +1 -1
  216. package/src/strings/transitionEndEvent.ts +1 -1
  217. package/src/strings/transitionProperty.ts +1 -1
  218. package/src/strings/unloadEvent.ts +1 -1
  219. package/src/strings/userAgentData.ts +2 -2
  220. package/test/fixtures/getExampleDom.ts +12 -8
  221. package/test/is.test.ts +15 -11
  222. package/test/misc.test.ts +65 -17
  223. package/{vite.config.ts → vite.config.mts} +4 -8
  224. package/{vitest.config-ui.ts → vitest.config-ui.mts} +5 -0
  225. package/{vitest.config.ts → vitest.config.mts} +5 -0
@@ -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;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mouseout` event.
3
3
  */
4
- const mouseoutEvent = 'mouseout';
4
+ const mouseoutEvent = "mouseout";
5
5
  export default mouseoutEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mouseover` event.
3
3
  */
4
- const mouseoverEvent = 'mouseover';
4
+ const mouseoverEvent = "mouseover";
5
5
  export default mouseoverEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mouseup` event.
3
3
  */
4
- const mouseupEvent = 'mouseup';
4
+ const mouseupEvent = "mouseup";
5
5
  export default mouseupEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `mousewheel` event.
3
3
  */
4
- const mousewheelEvent = 'mousewheel';
4
+ const mousewheelEvent = "mousewheel";
5
5
  export default mousewheelEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `move` event.
3
3
  */
4
- const moveEvent = 'move';
4
+ const moveEvent = "move";
5
5
  export default moveEvent;
@@ -1,53 +1,53 @@
1
- import abort from './abortEvent';
2
- import beforeunload from './beforeunloadEvent';
3
- import blur from './blurEvent';
4
- import change from './changeEvent';
5
- import contextmenu from './contextmenuEvent';
6
- import DOMContentLoaded from './DOMContentLoadedEvent';
7
- import DOMMouseScroll from './DOMMouseScrollEvent';
8
- import error from './errorEvent';
9
- import focus from './focusEvent';
10
- import focusin from './focusinEvent';
11
- import focusout from './focusoutEvent';
12
- import gesturechange from './gesturechangeEvent';
13
- import gestureend from './gestureendEvent';
14
- import gesturestart from './gesturestartEvent';
15
- import keydown from './keydownEvent';
16
- import keypress from './keypressEvent';
17
- import keyup from './keyupEvent';
18
- import load from './loadEvent';
19
- import click from './mouseclickEvent';
20
- import dblclick from './mousedblclickEvent';
21
- import mousedown from './mousedownEvent';
22
- import mouseup from './mouseupEvent';
23
- import hover from './mousehoverEvent';
24
- import mouseenter from './mouseenterEvent';
25
- import mouseleave from './mouseleaveEvent';
26
- import mousein from './mouseinEvent';
27
- import mouseout from './mouseoutEvent';
28
- import mouseover from './mouseoverEvent';
29
- import mousemove from './mousemoveEvent';
30
- import mousewheel from './mousewheelEvent';
31
- import move from './moveEvent';
32
- import orientationchange from './orientationchangeEvent';
33
- import pointercancel from './pointercancelEvent';
34
- import pointerdown from './pointerdownEvent';
35
- import pointerleave from './pointerleaveEvent';
36
- import pointermove from './pointermoveEvent';
37
- import pointerup from './pointerupEvent';
38
- import readystatechange from './readystatechangeEvent';
39
- import reset from './resetEvent';
40
- import resize from './resizeEvent';
41
- import select from './selectEvent';
42
- import selectend from './selectendEvent';
43
- import selectstart from './selectstartEvent';
44
- import scroll from './scrollEvent';
45
- import submit from './submitEvent';
46
- import touchstart from './touchstartEvent';
47
- import touchmove from './touchmoveEvent';
48
- import touchcancel from './touchcancelEvent';
49
- import touchend from './touchendEvent';
50
- import unload from './unloadEvent';
1
+ import abort from "./abortEvent";
2
+ import beforeunload from "./beforeunloadEvent";
3
+ import blur from "./blurEvent";
4
+ import change from "./changeEvent";
5
+ import contextmenu from "./contextmenuEvent";
6
+ import DOMContentLoaded from "./DOMContentLoadedEvent";
7
+ import DOMMouseScroll from "./DOMMouseScrollEvent";
8
+ import error from "./errorEvent";
9
+ import focus from "./focusEvent";
10
+ import focusin from "./focusinEvent";
11
+ import focusout from "./focusoutEvent";
12
+ import gesturechange from "./gesturechangeEvent";
13
+ import gestureend from "./gestureendEvent";
14
+ import gesturestart from "./gesturestartEvent";
15
+ import keydown from "./keydownEvent";
16
+ import keypress from "./keypressEvent";
17
+ import keyup from "./keyupEvent";
18
+ import load from "./loadEvent";
19
+ import click from "./mouseclickEvent";
20
+ import dblclick from "./mousedblclickEvent";
21
+ import mousedown from "./mousedownEvent";
22
+ import mouseup from "./mouseupEvent";
23
+ import hover from "./mousehoverEvent";
24
+ import mouseenter from "./mouseenterEvent";
25
+ import mouseleave from "./mouseleaveEvent";
26
+ import mousein from "./mouseinEvent";
27
+ import mouseout from "./mouseoutEvent";
28
+ import mouseover from "./mouseoverEvent";
29
+ import mousemove from "./mousemoveEvent";
30
+ import mousewheel from "./mousewheelEvent";
31
+ import move from "./moveEvent";
32
+ import orientationchange from "./orientationchangeEvent";
33
+ import pointercancel from "./pointercancelEvent";
34
+ import pointerdown from "./pointerdownEvent";
35
+ import pointerleave from "./pointerleaveEvent";
36
+ import pointermove from "./pointermoveEvent";
37
+ import pointerup from "./pointerupEvent";
38
+ import readystatechange from "./readystatechangeEvent";
39
+ import reset from "./resetEvent";
40
+ import resize from "./resizeEvent";
41
+ import select from "./selectEvent";
42
+ import selectend from "./selectendEvent";
43
+ import selectstart from "./selectstartEvent";
44
+ import scroll from "./scrollEvent";
45
+ import submit from "./submitEvent";
46
+ import touchstart from "./touchstartEvent";
47
+ import touchmove from "./touchmoveEvent";
48
+ import touchcancel from "./touchcancelEvent";
49
+ import touchend from "./touchendEvent";
50
+ import unload from "./unloadEvent";
51
51
 
52
52
  /**
53
53
  * A global namespace for all browser native events.
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `offsetHeight` property.
3
3
  */
4
- const offsetHeight = 'offsetHeight';
4
+ const offsetHeight = "offsetHeight";
5
5
  export default offsetHeight;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `offsetWidth` property.
3
3
  */
4
- const offsetWidth = 'offsetWidth';
4
+ const offsetWidth = "offsetWidth";
5
5
  export default offsetWidth;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `orientationchange` event.
3
3
  */
4
- const orientationchangeEvent = 'orientationchange';
4
+ const orientationchangeEvent = "orientationchange";
5
5
  export default orientationchangeEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `pointercancel` event.
3
3
  */
4
- const pointercancelEvent = 'pointercancel';
4
+ const pointercancelEvent = "pointercancel";
5
5
  export default pointercancelEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `pointerdown` event.
3
3
  */
4
- const pointerdownEvent = 'pointerdown';
4
+ const pointerdownEvent = "pointerdown";
5
5
  export default pointerdownEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `pointerleave` event.
3
3
  */
4
- const pointerleaveEvent = 'pointerleave';
4
+ const pointerleaveEvent = "pointerleave";
5
5
  export default pointerleaveEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `pointermove` event.
3
3
  */
4
- const pointermoveEvent = 'pointermove';
4
+ const pointermoveEvent = "pointermove";
5
5
  export default pointermoveEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `pointerup` event.
3
3
  */
4
- const pointerupEvent = 'pointerup';
4
+ const pointerupEvent = "pointerup";
5
5
  export default pointerupEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `readystatechange` event.
3
3
  */
4
- const readystatechangeEvent = 'readystatechange';
4
+ const readystatechangeEvent = "readystatechange";
5
5
  export default readystatechangeEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for 'removeEventListener' string.
3
3
  */
4
- const removeEventListener = 'removeEventListener';
4
+ const removeEventListener = "removeEventListener";
5
5
  export default removeEventListener;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `reset` event.
3
3
  */
4
- const resetEvent = 'reset';
4
+ const resetEvent = "reset";
5
5
  export default resetEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `resize` event.
3
3
  */
4
- const resizeEvent = 'resize';
4
+ const resizeEvent = "resize";
5
5
  export default resizeEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `scroll` event.
3
3
  */
4
- const scrollEvent = 'scroll';
4
+ const scrollEvent = "scroll";
5
5
  export default scrollEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `scrollHeight` property.
3
3
  */
4
- const scrollHeight = 'scrollHeight';
4
+ const scrollHeight = "scrollHeight";
5
5
  export default scrollHeight;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `scrollWidth` property.
3
3
  */
4
- const scrollWidth = 'scrollWidth';
4
+ const scrollWidth = "scrollWidth";
5
5
  export default scrollWidth;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `select` event.
3
3
  */
4
- const selectEvent = 'select';
4
+ const selectEvent = "select";
5
5
  export default selectEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for the `selectend` event.
3
3
  */
4
- const selectendEvent = 'selectend';
4
+ const selectendEvent = "selectend";
5
5
  export default selectendEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for the `selectstart` event.
3
3
  */
4
- const selectstartEvent = 'selectstart';
4
+ const selectstartEvent = "selectstart";
5
5
  export default selectstartEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `submit` event.
3
3
  */
4
- const submitEvent = 'submit';
4
+ const submitEvent = "submit";
5
5
  export default submitEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `touchcancel` event.
3
3
  */
4
- const tabindex = 'tabindex';
4
+ const tabindex = "tabindex";
5
5
  export default tabindex;
@@ -2,9 +2,9 @@
2
2
  * A global namespace for touch events.
3
3
  */
4
4
  const touchEvents = {
5
- start: 'touchstart',
6
- end: 'touchend',
7
- move: 'touchmove',
8
- cancel: 'touchcancel',
5
+ start: "touchstart",
6
+ end: "touchend",
7
+ move: "touchmove",
8
+ cancel: "touchcancel",
9
9
  };
10
10
  export default touchEvents;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `touchcancel` event.
3
3
  */
4
- const touchcancelEvent = 'touchcancel';
4
+ const touchcancelEvent = "touchcancel";
5
5
  export default touchcancelEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `touchend` event.
3
3
  */
4
- const touchendEvent = 'touchend';
4
+ const touchendEvent = "touchend";
5
5
  export default touchendEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `touchmove` event.
3
3
  */
4
- const touchmoveEvent = 'touchmove';
4
+ const touchmoveEvent = "touchmove";
5
5
  export default touchmoveEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `touchstart` event.
3
3
  */
4
- const touchstartEvent = 'touchstart';
4
+ const touchstartEvent = "touchstart";
5
5
  export default touchstartEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for 'transitionDelay' string.
3
3
  */
4
- const transitionDelay = 'transitionDelay';
4
+ const transitionDelay = "transitionDelay";
5
5
  export default transitionDelay;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for 'transitionDuration' string.
3
3
  */
4
- const transitionDuration = 'transitionDuration';
4
+ const transitionDuration = "transitionDuration";
5
5
  export default transitionDuration;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for 'transitionend' string.
3
3
  */
4
- const transitionEndEvent = 'transitionend';
4
+ const transitionEndEvent = "transitionend";
5
5
  export default transitionEndEvent;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `transitionProperty` string for modern browsers.
3
3
  */
4
- const transitionProperty = 'transitionProperty';
4
+ const transitionProperty = "transitionProperty";
5
5
  export default transitionProperty;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * A global namespace for `unload` event.
3
3
  */
4
- const unloadEvent = 'unload';
4
+ const unloadEvent = "unload";
5
5
  export default unloadEvent;
@@ -1,9 +1,9 @@
1
- import type { NavigatorUA } from '../interface/navigatorUA';
1
+ import type { NavigatorUA } from "../interface/navigatorUA";
2
2
 
3
3
  const uaDATA = (navigator as NavigatorUA).userAgentData;
4
4
 
5
5
  /**
6
6
  * A global namespace for `userAgentData` object.
7
7
  */
8
- const userAgentData: NavigatorUA['userAgentData'] = uaDATA;
8
+ const userAgentData: NavigatorUA["userAgentData"] = uaDATA;
9
9
  export default userAgentData;