@thednp/shorty 1.0.0

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 (234) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +340 -0
  3. package/dist/shorty.esm.js +2540 -0
  4. package/dist/shorty.esm.min.js +2 -0
  5. package/dist/shorty.js +2563 -0
  6. package/dist/shorty.min.js +2 -0
  7. package/package.json +59 -0
  8. package/src/attr/getAttribute.js +9 -0
  9. package/src/attr/getAttributeNS.js +10 -0
  10. package/src/attr/hasAttribute.js +9 -0
  11. package/src/attr/hasAttributeNS.js +10 -0
  12. package/src/attr/removeAttribute.js +9 -0
  13. package/src/attr/removeAttributeNS.js +10 -0
  14. package/src/attr/setAttribute.js +10 -0
  15. package/src/attr/setAttributeNS.js +11 -0
  16. package/src/blocks/documentBody.js +5 -0
  17. package/src/blocks/documentElement.js +5 -0
  18. package/src/blocks/documentHead.js +5 -0
  19. package/src/boolean/isApple.js +13 -0
  20. package/src/boolean/isFirefox.js +9 -0
  21. package/src/boolean/isMobile.js +20 -0
  22. package/src/boolean/support3DTransform.js +8 -0
  23. package/src/boolean/supportAnimation.js +8 -0
  24. package/src/boolean/supportPassive.js +28 -0
  25. package/src/boolean/supportTouch.js +6 -0
  26. package/src/boolean/supportTransform.js +8 -0
  27. package/src/boolean/supportTransition.js +8 -0
  28. package/src/class/addClass.js +10 -0
  29. package/src/class/hasClass.js +10 -0
  30. package/src/class/removeClass.js +10 -0
  31. package/src/event/off.js +13 -0
  32. package/src/event/on.js +13 -0
  33. package/src/event/one.js +26 -0
  34. package/src/get/getBoundingClientRect.js +33 -0
  35. package/src/get/getDocument.js +11 -0
  36. package/src/get/getDocumentBody.js +10 -0
  37. package/src/get/getDocumentElement.js +11 -0
  38. package/src/get/getDocumentHead.js +10 -0
  39. package/src/get/getElementAnimationDelay.js +21 -0
  40. package/src/get/getElementAnimationDelayLegacy.js +21 -0
  41. package/src/get/getElementAnimationDuration.js +20 -0
  42. package/src/get/getElementAnimationDurationLegacy.js +21 -0
  43. package/src/get/getElementStyle.js +18 -0
  44. package/src/get/getElementTransitionDelay.js +21 -0
  45. package/src/get/getElementTransitionDelayLegacy.js +21 -0
  46. package/src/get/getElementTransitionDuration.js +20 -0
  47. package/src/get/getElementTransitionDurationLegacy.js +21 -0
  48. package/src/get/getNodeScroll.js +16 -0
  49. package/src/get/getParentNode.js +24 -0
  50. package/src/get/getRectRelativeToOffsetParent.js +30 -0
  51. package/src/get/getUID.js +34 -0
  52. package/src/get/getWindow.js +20 -0
  53. package/src/index.js +475 -0
  54. package/src/is/isArray.js +9 -0
  55. package/src/is/isCustomElement.js +8 -0
  56. package/src/is/isDocument.js +9 -0
  57. package/src/is/isElement.js +9 -0
  58. package/src/is/isElementInScrollRange.js +18 -0
  59. package/src/is/isElementInViewport.js +22 -0
  60. package/src/is/isElementsArray.js +10 -0
  61. package/src/is/isFunction.js +9 -0
  62. package/src/is/isHTMLCollection.js +8 -0
  63. package/src/is/isHTMLElement.js +8 -0
  64. package/src/is/isHTMLImageElement.js +8 -0
  65. package/src/is/isMedia.js +12 -0
  66. package/src/is/isNode.js +8 -0
  67. package/src/is/isNodeList.js +8 -0
  68. package/src/is/isRTL.js +9 -0
  69. package/src/is/isSVGElement.js +8 -0
  70. package/src/is/isScaledElement.js +15 -0
  71. package/src/is/isShadowRoot.js +12 -0
  72. package/src/is/isString.js +8 -0
  73. package/src/is/isTableElement.js +7 -0
  74. package/src/is/isWindow.js +9 -0
  75. package/src/misc/ArrayFrom.js +8 -0
  76. package/src/misc/Float32ArrayFrom.js +7 -0
  77. package/src/misc/Float64ArrayFrom.js +7 -0
  78. package/src/misc/ObjectAssign.js +7 -0
  79. package/src/misc/ObjectKeys.js +7 -0
  80. package/src/misc/ObjectValues.js +7 -0
  81. package/src/misc/OriginalEvent.js +18 -0
  82. package/src/misc/createElement.js +25 -0
  83. package/src/misc/createElementNS.js +26 -0
  84. package/src/misc/data.js +78 -0
  85. package/src/misc/dispatchEvent.js +8 -0
  86. package/src/misc/distinct.js +10 -0
  87. package/src/misc/emulateAnimationEnd.js +37 -0
  88. package/src/misc/emulateAnimationEndLegacy.js +38 -0
  89. package/src/misc/emulateTransitionEnd.js +37 -0
  90. package/src/misc/emulateTransitionEndLegacy.js +38 -0
  91. package/src/misc/focus.js +8 -0
  92. package/src/misc/noop.js +3 -0
  93. package/src/misc/normalizeOptions.js +49 -0
  94. package/src/misc/normalizeValue.js +32 -0
  95. package/src/misc/passiveHandler.js +7 -0
  96. package/src/misc/passiveHandlerLegacy.js +9 -0
  97. package/src/misc/reflow.js +9 -0
  98. package/src/misc/setElementStyle.js +10 -0
  99. package/src/misc/timer.js +78 -0
  100. package/src/misc/toLowerCase.js +8 -0
  101. package/src/misc/toUpperCase.js +8 -0
  102. package/src/misc/tryWrapper.js +11 -0
  103. package/src/misc/version.js +9 -0
  104. package/src/selectors/closest.js +16 -0
  105. package/src/selectors/documentAll.js +8 -0
  106. package/src/selectors/elementNodes.js +5 -0
  107. package/src/selectors/getCustomElements.js +18 -0
  108. package/src/selectors/getElementById.js +11 -0
  109. package/src/selectors/getElementsByClassName.js +15 -0
  110. package/src/selectors/getElementsByTagName.js +15 -0
  111. package/src/selectors/matches.js +10 -0
  112. package/src/selectors/matchesLegacy.js +23 -0
  113. package/src/selectors/parentNodes.js +5 -0
  114. package/src/selectors/querySelector.js +15 -0
  115. package/src/selectors/querySelectorAll.js +14 -0
  116. package/src/strings/DOMContentLoadedEvent.js +6 -0
  117. package/src/strings/DOMMouseScrollEvent.js +6 -0
  118. package/src/strings/abortEvent.js +6 -0
  119. package/src/strings/addEventListener.js +6 -0
  120. package/src/strings/animationDelay.js +6 -0
  121. package/src/strings/animationDelayLegacy.js +8 -0
  122. package/src/strings/animationDuration.js +6 -0
  123. package/src/strings/animationDurationLegacy.js +8 -0
  124. package/src/strings/animationEndEvent.js +6 -0
  125. package/src/strings/animationEndEventLegacy.js +8 -0
  126. package/src/strings/animationName.js +6 -0
  127. package/src/strings/animationNameLegacy.js +8 -0
  128. package/src/strings/ariaChecked.js +6 -0
  129. package/src/strings/ariaDescribedBy.js +6 -0
  130. package/src/strings/ariaDescription.js +6 -0
  131. package/src/strings/ariaExpanded.js +6 -0
  132. package/src/strings/ariaHasPopup.js +6 -0
  133. package/src/strings/ariaHidden.js +6 -0
  134. package/src/strings/ariaLabel.js +6 -0
  135. package/src/strings/ariaLabelledBy.js +6 -0
  136. package/src/strings/ariaModal.js +6 -0
  137. package/src/strings/ariaPressed.js +6 -0
  138. package/src/strings/ariaSelected.js +6 -0
  139. package/src/strings/ariaValueMax.js +6 -0
  140. package/src/strings/ariaValueMin.js +6 -0
  141. package/src/strings/ariaValueNow.js +6 -0
  142. package/src/strings/ariaValueText.js +6 -0
  143. package/src/strings/beforeunloadEvent.js +6 -0
  144. package/src/strings/bezierEasings.js +33 -0
  145. package/src/strings/blurEvent.js +6 -0
  146. package/src/strings/changeEvent.js +6 -0
  147. package/src/strings/contextmenuEvent.js +6 -0
  148. package/src/strings/errorEvent.js +6 -0
  149. package/src/strings/focusEvent.js +6 -0
  150. package/src/strings/focusEvents.js +6 -0
  151. package/src/strings/focusinEvent.js +6 -0
  152. package/src/strings/focusoutEvent.js +6 -0
  153. package/src/strings/gesturechangeEvent.js +6 -0
  154. package/src/strings/gestureendEvent.js +6 -0
  155. package/src/strings/gesturestartEvent.js +6 -0
  156. package/src/strings/keyAlt.js +7 -0
  157. package/src/strings/keyArrowDown.js +7 -0
  158. package/src/strings/keyArrowLeft.js +7 -0
  159. package/src/strings/keyArrowRight.js +7 -0
  160. package/src/strings/keyArrowUp.js +7 -0
  161. package/src/strings/keyBackspace.js +7 -0
  162. package/src/strings/keyCapsLock.js +7 -0
  163. package/src/strings/keyControl.js +7 -0
  164. package/src/strings/keyDelete.js +7 -0
  165. package/src/strings/keyEnter.js +7 -0
  166. package/src/strings/keyEscape.js +7 -0
  167. package/src/strings/keyInsert.js +7 -0
  168. package/src/strings/keyMeta.js +7 -0
  169. package/src/strings/keyPause.js +7 -0
  170. package/src/strings/keyScrollLock.js +7 -0
  171. package/src/strings/keyShift.js +7 -0
  172. package/src/strings/keySpace.js +7 -0
  173. package/src/strings/keyTab.js +7 -0
  174. package/src/strings/keyboardEventKeys.js +27 -0
  175. package/src/strings/keydownEvent.js +6 -0
  176. package/src/strings/keypressEvent.js +6 -0
  177. package/src/strings/keyupEvent.js +6 -0
  178. package/src/strings/loadEvent.js +6 -0
  179. package/src/strings/loadstartEvent.js +6 -0
  180. package/src/strings/mouseClickEvents.js +6 -0
  181. package/src/strings/mouseHoverEvents.js +6 -0
  182. package/src/strings/mouseSwipeEvents.js +8 -0
  183. package/src/strings/mouseclickEvent.js +6 -0
  184. package/src/strings/mousedblclickEvent.js +6 -0
  185. package/src/strings/mousedownEvent.js +6 -0
  186. package/src/strings/mouseenterEvent.js +6 -0
  187. package/src/strings/mousehoverEvent.js +6 -0
  188. package/src/strings/mouseinEvent.js +6 -0
  189. package/src/strings/mouseleaveEvent.js +6 -0
  190. package/src/strings/mousemoveEvent.js +6 -0
  191. package/src/strings/mouseoutEvent.js +6 -0
  192. package/src/strings/mouseoverEvent.js +6 -0
  193. package/src/strings/mouseupEvent.js +6 -0
  194. package/src/strings/mousewheelEvent.js +6 -0
  195. package/src/strings/moveEvent.js +6 -0
  196. package/src/strings/nativeEvents.js +108 -0
  197. package/src/strings/offsetHeight.js +6 -0
  198. package/src/strings/offsetWidth.js +6 -0
  199. package/src/strings/orientationchangeEvent.js +6 -0
  200. package/src/strings/pointercancelEvent.js +6 -0
  201. package/src/strings/pointerdownEvent.js +6 -0
  202. package/src/strings/pointerleaveEvent.js +6 -0
  203. package/src/strings/pointermoveEvent.js +6 -0
  204. package/src/strings/pointerupEvent.js +6 -0
  205. package/src/strings/readystatechangeEvent.js +6 -0
  206. package/src/strings/removeEventListener.js +6 -0
  207. package/src/strings/resetEvent.js +6 -0
  208. package/src/strings/resizeEvent.js +6 -0
  209. package/src/strings/scrollEvent.js +6 -0
  210. package/src/strings/scrollHeight.js +6 -0
  211. package/src/strings/scrollWidth.js +6 -0
  212. package/src/strings/selectEvent.js +6 -0
  213. package/src/strings/selectendEvent.js +6 -0
  214. package/src/strings/selectstartEvent.js +6 -0
  215. package/src/strings/submitEvent.js +6 -0
  216. package/src/strings/touchEvents.js +8 -0
  217. package/src/strings/touchcancelEvent.js +6 -0
  218. package/src/strings/touchendEvent.js +6 -0
  219. package/src/strings/touchmoveEvent.js +6 -0
  220. package/src/strings/touchstartEvent.js +6 -0
  221. package/src/strings/transitionDelay.js +6 -0
  222. package/src/strings/transitionDelayLegacy.js +8 -0
  223. package/src/strings/transitionDuration.js +6 -0
  224. package/src/strings/transitionDurationLegacy.js +8 -0
  225. package/src/strings/transitionEndEvent.js +6 -0
  226. package/src/strings/transitionEndEventLegacy.js +8 -0
  227. package/src/strings/transitionProperty.js +7 -0
  228. package/src/strings/transitionPropertyLegacy.js +12 -0
  229. package/src/strings/unloadEvent.js +6 -0
  230. package/src/strings/userAgent.js +7 -0
  231. package/src/strings/userAgentData.js +8 -0
  232. package/types/index.d.ts +252 -0
  233. package/types/module/shorty.ts +249 -0
  234. package/types/shorty.d.ts +2317 -0
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `Escape` key.
3
+ * @type {string} e.which = 27 equivalent
4
+ */
5
+ const keyEscape = 'Escape';
6
+
7
+ export default keyEscape;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `Insert` key.
3
+ * @type {string} e.which = 45 equivalent
4
+ */
5
+ const keyInsert = 'Insert';
6
+
7
+ export default keyInsert;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `Meta` key.
3
+ * @type {string} e.which = 93 equivalent
4
+ */
5
+ const keyMeta = 'Meta';
6
+
7
+ export default keyMeta;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `Pause` key.
3
+ * @type {string} e.which = 19
4
+ */
5
+ const keyPause = 'Pause';
6
+
7
+ export default keyPause;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `ScrollLock` key.
3
+ * @type {string} e.which = 145 equivalent
4
+ */
5
+ const keyScrollLock = 'ScrollLock';
6
+
7
+ export default keyScrollLock;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `Shift` key.
3
+ * @type {string} e.which = 16
4
+ */
5
+ const keyShift = 'Shift';
6
+
7
+ export default keyShift;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `Space` key.
3
+ * @type {string} e.which = 32 equivalent
4
+ */
5
+ const keySpace = 'Space';
6
+
7
+ export default keySpace;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `Tab` key.
3
+ * @type {string} e.which = 9 equivalent
4
+ */
5
+ const keyTab = 'Tab';
6
+
7
+ export default keyTab;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * A global namespace for keyboard event keys.
3
+ * @type {Record<string, string>}
4
+ */
5
+ const keyboardEventKeys = {
6
+ Backspace: 'Backspace', // 8
7
+ Tab: 'Tab', // 9
8
+ Enter: 'Enter', // 13
9
+ Shift: 'Shift', // 16
10
+ Control: 'Control', // 17
11
+ Alt: 'Alt', // 18
12
+ Pause: 'Pause', // 19
13
+ CapsLock: 'CapsLock', // 20
14
+ Escape: 'Escape', // 27
15
+ Scape: 'Space', // 32
16
+ ArrowLeft: 'ArrowLeft', // 37
17
+ ArrowUp: 'ArrowUp', // 38
18
+ ArrowRight: 'ArrowRight', // 39
19
+ ArrowDown: 'ArrowDown', // 40
20
+ Insert: 'Insert', // 45
21
+ Delete: 'Delete', // 46
22
+ Meta: 'Meta', // 91 windows key
23
+ ContextMenu: 'ContextMenu', // 93
24
+ ScrollLock: 'ScrollLock', // 145
25
+ };
26
+
27
+ export default keyboardEventKeys;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `keydown` event.
3
+ * @type {string}
4
+ */
5
+ const keydownEvent = 'keydown';
6
+ export default keydownEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `keypress` event.
3
+ * @type {string}
4
+ */
5
+ const keypressEvent = 'keypress';
6
+ export default keypressEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `keyup` event.
3
+ * @type {string}
4
+ */
5
+ const keyupEvent = 'keyup';
6
+ export default keyupEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `load` event.
3
+ * @type {string}
4
+ */
5
+ const loadEvent = 'load';
6
+ export default loadEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `loadstart` event.
3
+ * @type {string}
4
+ */
5
+ const loadstartEvent = 'loadstart';
6
+ export default loadstartEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for mouse click events.
3
+ * @type {Record<string, string>}
4
+ */
5
+ const mouseClickEvents = { down: 'mousedown', up: 'mouseup' };
6
+ export default mouseClickEvents;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for mouse hover events.
3
+ * @type {[string, string]}
4
+ */
5
+ const mouseHoverEvents = ('onmouseleave' in document) ? ['mouseenter', 'mouseleave'] : ['mouseover', 'mouseout'];
6
+ export default mouseHoverEvents;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A global namespace for mouse events equivalent to touch events.
3
+ * @type {Record<string, string>}
4
+ */
5
+ const mouseSwipeEvents = {
6
+ start: 'mousedown', end: 'mouseup', move: 'mousemove', cancel: 'mouseleave',
7
+ };
8
+ export default mouseSwipeEvents;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `click` event.
3
+ * @type {string}
4
+ */
5
+ const mouseclickEvent = 'click';
6
+ export default mouseclickEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `dblclick` event.
3
+ * @type {string}
4
+ */
5
+ const mousedblclickEvent = 'dblclick';
6
+ export default mousedblclickEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mousedown` event.
3
+ * @type {string}
4
+ */
5
+ const mousedownEvent = 'mousedown';
6
+ export default mousedownEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mouseenter` event.
3
+ * @type {string}
4
+ */
5
+ const mouseenterEvent = 'mouseenter';
6
+ export default mouseenterEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `hover` event.
3
+ * @type {string}
4
+ */
5
+ const mousehoverEvent = 'hover';
6
+ export default mousehoverEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mousein` event.
3
+ * @type {string}
4
+ */
5
+ const mouseinEvent = 'mousein';
6
+ export default mouseinEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mouseleave` event.
3
+ * @type {string}
4
+ */
5
+ const mouseleaveEvent = 'mouseleave';
6
+ export default mouseleaveEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mousemove` event.
3
+ * @type {string}
4
+ */
5
+ const mousemoveEvent = 'mousemove';
6
+ export default mousemoveEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mouseout` event.
3
+ * @type {string}
4
+ */
5
+ const mouseoutEvent = 'mouseout';
6
+ export default mouseoutEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mouseover` event.
3
+ * @type {string}
4
+ */
5
+ const mouseoverEvent = 'mouseover';
6
+ export default mouseoverEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mouseup` event.
3
+ * @type {string}
4
+ */
5
+ const mouseupEvent = 'mouseup';
6
+ export default mouseupEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `mousewheel` event.
3
+ * @type {string}
4
+ */
5
+ const mousewheelEvent = 'mousewheel';
6
+ export default mousewheelEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `move` event.
3
+ * @type {string}
4
+ */
5
+ const moveEvent = 'move';
6
+ export default moveEvent;
@@ -0,0 +1,108 @@
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
+
52
+ /**
53
+ * A global namespace for all browser native events.
54
+ */
55
+ const nativeEvents = {
56
+ DOMContentLoaded,
57
+ DOMMouseScroll,
58
+ abort,
59
+ beforeunload,
60
+ blur,
61
+ change,
62
+ click,
63
+ contextmenu,
64
+ dblclick,
65
+ error,
66
+ focus,
67
+ focusin,
68
+ focusout,
69
+ gesturechange,
70
+ gestureend,
71
+ gesturestart,
72
+ hover,
73
+ keydown,
74
+ keypress,
75
+ keyup,
76
+ load,
77
+ mousedown,
78
+ mousemove,
79
+ mousein,
80
+ mouseout,
81
+ mouseenter,
82
+ mouseleave,
83
+ mouseover,
84
+ mouseup,
85
+ mousewheel,
86
+ move,
87
+ orientationchange,
88
+ pointercancel,
89
+ pointerdown,
90
+ pointerleave,
91
+ pointermove,
92
+ pointerup,
93
+ readystatechange,
94
+ reset,
95
+ resize,
96
+ scroll,
97
+ select,
98
+ selectend,
99
+ selectstart,
100
+ submit,
101
+ touchcancel,
102
+ touchend,
103
+ touchmove,
104
+ touchstart,
105
+ unload,
106
+ };
107
+
108
+ export default nativeEvents;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `offsetHeight` property.
3
+ * @type {string}
4
+ */
5
+ const offsetHeight = 'offsetHeight';
6
+ export default offsetHeight;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `offsetWidth` property.
3
+ * @type {string}
4
+ */
5
+ const offsetWidth = 'offsetWidth';
6
+ export default offsetWidth;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `orientationchange` event.
3
+ * @type {string}
4
+ */
5
+ const orientationchangeEvent = 'orientationchange';
6
+ export default orientationchangeEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `pointercancel` event.
3
+ * @type {string}
4
+ */
5
+ const pointercancelEvent = 'pointercancel';
6
+ export default pointercancelEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `pointerdown` event.
3
+ * @type {string}
4
+ */
5
+ const pointerdownEvent = 'pointerdown';
6
+ export default pointerdownEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `pointerleave` event.
3
+ * @type {string}
4
+ */
5
+ const pointerleaveEvent = 'pointerleave';
6
+ export default pointerleaveEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `pointermove` event.
3
+ * @type {string}
4
+ */
5
+ const pointermoveEvent = 'pointermove';
6
+ export default pointermoveEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `pointerup` event.
3
+ * @type {string}
4
+ */
5
+ const pointerupEvent = 'pointerup';
6
+ export default pointerupEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `readystatechange` event.
3
+ * @type {string}
4
+ */
5
+ const readystatechangeEvent = 'readystatechange';
6
+ export default readystatechangeEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for 'removeEventListener' string.
3
+ * @type {string}
4
+ */
5
+ const removeEventListener = 'removeEventListener';
6
+ export default removeEventListener;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `reset` event.
3
+ * @type {string}
4
+ */
5
+ const resetEvent = 'reset';
6
+ export default resetEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `resize` event.
3
+ * @type {string}
4
+ */
5
+ const resizeEvent = 'resize';
6
+ export default resizeEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `scroll` event.
3
+ * @type {string}
4
+ */
5
+ const scrollEvent = 'scroll';
6
+ export default scrollEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `scrollHeight` property.
3
+ * @type {string}
4
+ */
5
+ const scrollHeight = 'scrollHeight';
6
+ export default scrollHeight;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `scrollWidth` property.
3
+ * @type {string}
4
+ */
5
+ const scrollWidth = 'scrollWidth';
6
+ export default scrollWidth;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `select` event.
3
+ * @type {string}
4
+ */
5
+ const selectEvent = 'select';
6
+ export default selectEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for the `selectend` event.
3
+ * @type {string}
4
+ */
5
+ const selectendEvent = 'selectend';
6
+ export default selectendEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for the `selectstart` event.
3
+ * @type {string}
4
+ */
5
+ const selectstartEvent = 'selectstart';
6
+ export default selectstartEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `submit` event.
3
+ * @type {string}
4
+ */
5
+ const submitEvent = 'submit';
6
+ export default submitEvent;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A global namespace for touch events.
3
+ * @type {Record<string, string>}
4
+ */
5
+ const touchEvents = {
6
+ start: 'touchstart', end: 'touchend', move: 'touchmove', cancel: 'touchcancel',
7
+ };
8
+ export default touchEvents;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `touchcancel` event.
3
+ * @type {string}
4
+ */
5
+ const touchcancelEvent = 'touchcancel';
6
+ export default touchcancelEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `touchend` event.
3
+ * @type {string}
4
+ */
5
+ const touchendEvent = 'touchend';
6
+ export default touchendEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `touchmove` event.
3
+ * @type {string}
4
+ */
5
+ const touchmoveEvent = 'touchmove';
6
+ export default touchmoveEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for `touchstart` event.
3
+ * @type {string}
4
+ */
5
+ const touchstartEvent = 'touchstart';
6
+ export default touchstartEvent;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for 'transitionDelay' string.
3
+ * @type {string}
4
+ */
5
+ const transitionDelay = 'transitionDelay';
6
+ export default transitionDelay;
@@ -0,0 +1,8 @@
1
+ import documentHead from '../blocks/documentHead';
2
+
3
+ /**
4
+ * A global namespace for 'transitionDelay' string.
5
+ * @type {string}
6
+ */
7
+ const transitionDelay = 'webkitTransition' in documentHead.style ? 'webkitTransitionDelay' : 'transitionDelay';
8
+ export default transitionDelay;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for 'transitionDuration' string.
3
+ * @type {string}
4
+ */
5
+ const transitionDuration = 'transitionDuration';
6
+ export default transitionDuration;
@@ -0,0 +1,8 @@
1
+ import documentHead from '../blocks/documentHead';
2
+
3
+ /**
4
+ * A global namespace for 'transitionDuration' string.
5
+ * @type {string}
6
+ */
7
+ const transitionDuration = 'webkitTransition' in documentHead.style ? 'webkitTransitionDuration' : 'transitionDuration';
8
+ export default transitionDuration;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A global namespace for 'transitionend' string.
3
+ * @type {string}
4
+ */
5
+ const transitionEndEvent = 'transitionend';
6
+ export default transitionEndEvent;
@@ -0,0 +1,8 @@
1
+ import documentHead from '../blocks/documentHead';
2
+
3
+ /**
4
+ * A global namespace for 'transitionend' string.
5
+ * @type {string}
6
+ */
7
+ const transitionEndEvent = 'webkitTransition' in documentHead.style ? 'webkitTransitionEnd' : 'transitionend';
8
+ export default transitionEndEvent;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A global namespace for `transitionProperty` string for modern browsers.
3
+ *
4
+ * @type {string}
5
+ */
6
+ const transitionProperty = 'transitionProperty';
7
+ export default transitionProperty;
@@ -0,0 +1,12 @@
1
+ import documentHead from '../blocks/documentHead';
2
+
3
+ /**
4
+ * A global namespace for:
5
+ * * `transitionProperty` string for modern brosers,
6
+ * * `webkitTransition` for legacy Chrome / Safari browsers
7
+ *
8
+ * @type {string}
9
+ */
10
+ const transitionProperty = 'webkitTransition' in documentHead.style ? 'webkitTransitionProperty' : 'transitionProperty';
11
+
12
+ export default transitionProperty;