@thednp/shorty 1.0.1 → 2.0.0-alpha1

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 (1088) hide show
  1. package/README.md +195 -199
  2. package/dist/index.cjs.js +1564 -0
  3. package/dist/index.cjs.js.map +7 -0
  4. package/dist/index.cjs.min.js +3 -0
  5. package/dist/index.cjs.min.js.map +7 -0
  6. package/dist/index.js +1542 -0
  7. package/dist/index.js.map +7 -0
  8. package/dist/index.min.js +3 -0
  9. package/dist/index.min.js.map +7 -0
  10. package/package.json +32 -24
  11. package/src/attr/getAttribute.js +3 -9
  12. package/src/attr/getAttribute.js.map +1 -0
  13. package/src/attr/getAttribute.ts +10 -0
  14. package/src/attr/getAttributeNS.js +3 -10
  15. package/src/attr/getAttributeNS.js.map +1 -0
  16. package/src/attr/getAttributeNS.ts +11 -0
  17. package/src/attr/hasAttribute.js +3 -9
  18. package/src/attr/hasAttribute.js.map +1 -0
  19. package/src/attr/hasAttribute.ts +9 -0
  20. package/src/attr/hasAttributeNS.js +3 -10
  21. package/src/attr/hasAttributeNS.js.map +1 -0
  22. package/src/attr/hasAttributeNS.ts +11 -0
  23. package/src/attr/removeAttribute.js +3 -9
  24. package/src/attr/removeAttribute.js.map +1 -0
  25. package/src/attr/removeAttribute.ts +8 -0
  26. package/src/attr/removeAttributeNS.js +3 -10
  27. package/src/attr/removeAttributeNS.js.map +1 -0
  28. package/src/attr/removeAttributeNS.ts +10 -0
  29. package/src/attr/setAttribute.js +3 -10
  30. package/src/attr/setAttribute.js.map +1 -0
  31. package/src/attr/setAttribute.ts +10 -0
  32. package/src/attr/setAttributeNS.js +3 -11
  33. package/src/attr/setAttributeNS.js.map +1 -0
  34. package/src/attr/setAttributeNS.ts +11 -0
  35. package/src/blocks/documentBody.js +3 -5
  36. package/src/blocks/documentBody.js.map +1 -0
  37. package/src/blocks/documentBody.ts +5 -0
  38. package/src/blocks/documentElement.js +3 -5
  39. package/src/blocks/documentElement.js.map +1 -0
  40. package/src/blocks/documentElement.ts +5 -0
  41. package/src/blocks/documentHead.js +3 -5
  42. package/src/blocks/documentHead.js.map +1 -0
  43. package/src/blocks/documentHead.ts +5 -0
  44. package/src/boolean/isApple.js +8 -13
  45. package/src/boolean/isApple.js.map +1 -0
  46. package/src/boolean/isApple.ts +14 -0
  47. package/src/boolean/isFirefox.js +4 -9
  48. package/src/boolean/isFirefox.js.map +1 -0
  49. package/src/boolean/isFirefox.ts +9 -0
  50. package/src/boolean/isMobile.js +13 -20
  51. package/src/boolean/isMobile.js.map +1 -0
  52. package/src/boolean/isMobile.ts +19 -0
  53. package/src/boolean/support3DTransform.js +4 -8
  54. package/src/boolean/support3DTransform.js.map +1 -0
  55. package/src/boolean/support3DTransform.ts +10 -0
  56. package/src/boolean/supportAnimation.js +4 -8
  57. package/src/boolean/supportAnimation.js.map +1 -0
  58. package/src/boolean/supportAnimation.ts +8 -0
  59. package/src/boolean/supportPassive.js +19 -28
  60. package/src/boolean/supportPassive.js.map +1 -0
  61. package/src/boolean/supportPassive.ts +28 -0
  62. package/src/boolean/supportTouch.js +3 -6
  63. package/src/boolean/supportTouch.js.map +1 -0
  64. package/src/boolean/supportTouch.ts +7 -0
  65. package/src/boolean/supportTransform.js +4 -8
  66. package/src/boolean/supportTransform.js.map +1 -0
  67. package/src/boolean/supportTransform.ts +8 -0
  68. package/src/boolean/supportTransition.js +4 -8
  69. package/src/boolean/supportTransition.js.map +1 -0
  70. package/src/boolean/supportTransition.ts +8 -0
  71. package/src/class/addClass.js +5 -10
  72. package/src/class/addClass.js.map +1 -0
  73. package/src/class/addClass.ts +11 -0
  74. package/src/class/hasClass.js +5 -10
  75. package/src/class/hasClass.js.map +1 -0
  76. package/src/class/hasClass.ts +11 -0
  77. package/src/class/removeClass.js +5 -10
  78. package/src/class/removeClass.js.map +1 -0
  79. package/src/class/removeClass.ts +11 -0
  80. package/src/event/off.js +5 -13
  81. package/src/event/off.js.map +1 -0
  82. package/src/event/off.ts +12 -0
  83. package/src/event/on.js +5 -13
  84. package/src/event/on.js.map +1 -0
  85. package/src/event/on.ts +12 -0
  86. package/src/event/one.js +13 -26
  87. package/src/event/one.js.map +1 -0
  88. package/src/event/one.ts +25 -0
  89. package/src/get/getBoundingClientRect.js +23 -33
  90. package/src/get/getBoundingClientRect.js.map +1 -0
  91. package/src/get/getBoundingClientRect.ts +38 -0
  92. package/src/get/getDocument.js +14 -11
  93. package/src/get/getDocument.js.map +1 -0
  94. package/src/get/getDocument.ts +23 -0
  95. package/src/get/getDocumentBody.js +6 -10
  96. package/src/get/getDocumentBody.js.map +1 -0
  97. package/src/get/getDocumentBody.ts +13 -0
  98. package/src/get/getDocumentElement.js +6 -11
  99. package/src/get/getDocumentElement.js.map +1 -0
  100. package/src/get/getDocumentElement.ts +13 -0
  101. package/src/get/getDocumentHead.js +6 -10
  102. package/src/get/getDocumentHead.js.map +1 -0
  103. package/src/get/getDocumentHead.ts +12 -0
  104. package/src/get/getElementAnimationDelay.js +12 -21
  105. package/src/get/getElementAnimationDelay.js.map +1 -0
  106. package/src/get/getElementAnimationDelay.ts +23 -0
  107. package/src/get/getElementAnimationDuration.js +12 -20
  108. package/src/get/getElementAnimationDuration.js.map +1 -0
  109. package/src/get/getElementAnimationDuration.ts +22 -0
  110. package/src/get/getElementStyle.js +8 -18
  111. package/src/get/getElementStyle.js.map +1 -0
  112. package/src/get/getElementStyle.ts +22 -0
  113. package/src/get/getElementTransitionDelay.js +12 -21
  114. package/src/get/getElementTransitionDelay.js.map +1 -0
  115. package/src/get/getElementTransitionDelay.ts +22 -0
  116. package/src/get/getElementTransitionDuration.js +12 -20
  117. package/src/get/getElementTransitionDuration.js.map +1 -0
  118. package/src/get/getElementTransitionDuration.ts +22 -0
  119. package/src/get/getNodeScroll.js +9 -16
  120. package/src/get/getNodeScroll.js.map +1 -0
  121. package/src/get/getNodeScroll.ts +20 -0
  122. package/src/get/getParentNode.js +13 -24
  123. package/src/get/getParentNode.js.map +1 -0
  124. package/src/get/getParentNode.ts +25 -0
  125. package/src/get/getRectRelativeToOffsetParent.js +21 -30
  126. package/src/get/getRectRelativeToOffsetParent.js.map +1 -0
  127. package/src/get/getRectRelativeToOffsetParent.ts +39 -0
  128. package/src/get/getUID.js +31 -34
  129. package/src/get/getUID.js.map +1 -0
  130. package/src/get/getUID.ts +36 -0
  131. package/src/get/getWindow.js +13 -20
  132. package/src/get/getWindow.js.map +1 -0
  133. package/src/get/getWindow.ts +22 -0
  134. package/src/index.js +411 -471
  135. package/src/index.js.map +1 -0
  136. package/src/index.ts +442 -0
  137. package/src/interface/boundingClientRect.js +2 -0
  138. package/src/interface/boundingClientRect.js.map +1 -0
  139. package/src/interface/boundingClientRect.ts +10 -0
  140. package/src/interface/navigatorUA.js +2 -0
  141. package/src/interface/navigatorUA.js.map +1 -0
  142. package/src/interface/navigatorUA.ts +15 -0
  143. package/src/interface/offsetRect.js +2 -0
  144. package/src/interface/offsetRect.js.map +1 -0
  145. package/src/interface/offsetRect.ts +6 -0
  146. package/src/interface/originalEvent.js +2 -0
  147. package/src/interface/originalEvent.js.map +1 -0
  148. package/src/interface/originalEvent.ts +3 -0
  149. package/src/is/isArray.js +3 -9
  150. package/src/is/isArray.js.map +1 -0
  151. package/src/is/isArray.ts +9 -0
  152. package/src/is/isCustomElement.js +3 -8
  153. package/src/is/isCustomElement.js.map +1 -0
  154. package/src/is/isCustomElement.ts +10 -0
  155. package/src/is/isDocument.js +3 -9
  156. package/src/is/isDocument.js.map +1 -0
  157. package/src/is/isDocument.ts +10 -0
  158. package/src/is/isElement.js +3 -9
  159. package/src/is/isElement.js.map +1 -0
  160. package/src/is/isElement.ts +22 -0
  161. package/src/is/isElementInScrollRange.js +12 -18
  162. package/src/is/isElementInScrollRange.js.map +1 -0
  163. package/src/is/isElementInScrollRange.ts +20 -0
  164. package/src/is/isElementInViewport.js +12 -22
  165. package/src/is/isElementInViewport.js.map +1 -0
  166. package/src/is/isElementInViewport.ts +20 -0
  167. package/src/is/isElementsArray.js +5 -10
  168. package/src/is/isElementsArray.js.map +1 -0
  169. package/src/is/isElementsArray.ts +13 -0
  170. package/src/is/isFunction.js +3 -9
  171. package/src/is/isFunction.js.map +1 -0
  172. package/src/is/isFunction.ts +10 -0
  173. package/src/is/isHTMLCollection.js +3 -8
  174. package/src/is/isHTMLCollection.js.map +1 -0
  175. package/src/is/isHTMLCollection.ts +10 -0
  176. package/src/is/isHTMLElement.js +3 -8
  177. package/src/is/isHTMLElement.js.map +1 -0
  178. package/src/is/isHTMLElement.ts +10 -0
  179. package/src/is/isHTMLImageElement.js +3 -8
  180. package/src/is/isHTMLImageElement.js.map +1 -0
  181. package/src/is/isHTMLImageElement.ts +9 -0
  182. package/src/is/isMedia.js +6 -12
  183. package/src/is/isMedia.js.map +1 -0
  184. package/src/is/isMedia.ts +16 -0
  185. package/src/is/isNode.js +3 -8
  186. package/src/is/isNode.js.map +1 -0
  187. package/src/is/isNode.ts +11 -0
  188. package/src/is/isNodeList.js +3 -8
  189. package/src/is/isNodeList.js.map +1 -0
  190. package/src/is/isNodeList.ts +11 -0
  191. package/src/is/isNumber.js +3 -0
  192. package/src/is/isNumber.js.map +1 -0
  193. package/src/is/isNumber.ts +9 -0
  194. package/src/is/isObject.js +3 -0
  195. package/src/is/isObject.js.map +1 -0
  196. package/src/is/isObject.ts +9 -0
  197. package/src/is/isRTL.js +4 -9
  198. package/src/is/isRTL.js.map +1 -0
  199. package/src/is/isRTL.ts +10 -0
  200. package/src/is/isSVGElement.js +3 -8
  201. package/src/is/isSVGElement.js.map +1 -0
  202. package/src/is/isSVGElement.ts +11 -0
  203. package/src/is/isScaledElement.js +10 -15
  204. package/src/is/isScaledElement.js.map +1 -0
  205. package/src/is/isScaledElement.ts +16 -0
  206. package/src/is/isShadowRoot.js +3 -12
  207. package/src/is/isShadowRoot.js.map +1 -0
  208. package/src/is/isShadowRoot.ts +10 -0
  209. package/src/is/isString.js +3 -8
  210. package/src/is/isString.js.map +1 -0
  211. package/src/is/isString.ts +9 -0
  212. package/src/is/isTableElement.js +3 -7
  213. package/src/is/isTableElement.js.map +1 -0
  214. package/src/is/isTableElement.ts +12 -0
  215. package/src/is/isWindow.js +3 -9
  216. package/src/is/isWindow.js.map +1 -0
  217. package/src/is/isWindow.ts +10 -0
  218. package/src/misc/ArrayFrom.js +3 -8
  219. package/src/misc/ArrayFrom.js.map +1 -0
  220. package/src/misc/ArrayFrom.ts +9 -0
  221. package/src/misc/Float32ArrayFrom.js +3 -7
  222. package/src/misc/Float32ArrayFrom.js.map +1 -0
  223. package/src/misc/Float32ArrayFrom.ts +9 -0
  224. package/src/misc/Float64ArrayFrom.js +3 -7
  225. package/src/misc/Float64ArrayFrom.js.map +1 -0
  226. package/src/misc/Float64ArrayFrom.ts +9 -0
  227. package/src/misc/ObjectAssign.js +3 -7
  228. package/src/misc/ObjectAssign.js.map +1 -0
  229. package/src/misc/ObjectAssign.ts +8 -0
  230. package/src/misc/ObjectEntries.js +3 -0
  231. package/src/misc/ObjectEntries.js.map +1 -0
  232. package/src/misc/ObjectEntries.ts +8 -0
  233. package/src/misc/ObjectKeys.js +3 -7
  234. package/src/misc/ObjectKeys.js.map +1 -0
  235. package/src/misc/ObjectKeys.ts +8 -0
  236. package/src/misc/ObjectValues.js +3 -7
  237. package/src/misc/ObjectValues.js.map +1 -0
  238. package/src/misc/ObjectValues.ts +8 -0
  239. package/src/misc/OriginalEvent.js +14 -18
  240. package/src/misc/OriginalEvent.js.map +1 -0
  241. package/src/misc/OriginalEvent.ts +24 -0
  242. package/src/misc/createElement.js +22 -25
  243. package/src/misc/createElement.js.map +1 -0
  244. package/src/misc/createElement.ts +36 -0
  245. package/src/misc/createElementNS.js +22 -26
  246. package/src/misc/createElementNS.js.map +1 -0
  247. package/src/misc/createElementNS.ts +41 -0
  248. package/src/misc/data.js +36 -78
  249. package/src/misc/data.js.map +1 -0
  250. package/src/misc/data.ts +79 -0
  251. package/src/misc/dispatchEvent.js +3 -8
  252. package/src/misc/dispatchEvent.js.map +1 -0
  253. package/src/misc/dispatchEvent.ts +9 -0
  254. package/src/misc/distinct.js +3 -10
  255. package/src/misc/distinct.js.map +1 -0
  256. package/src/misc/distinct.ts +17 -0
  257. package/src/misc/emulateAnimationEnd.js +29 -37
  258. package/src/misc/emulateAnimationEnd.js.map +1 -0
  259. package/src/misc/{emulateAnimationEndLegacy.js → emulateAnimationEnd.ts} +15 -12
  260. package/src/misc/emulateTransitionEnd.js +29 -37
  261. package/src/misc/emulateTransitionEnd.js.map +1 -0
  262. package/src/misc/{emulateTransitionEndLegacy.js → emulateTransitionEnd.ts} +15 -12
  263. package/src/misc/focus.js +3 -8
  264. package/src/misc/focus.js.map +1 -0
  265. package/src/misc/focus.ts +8 -0
  266. package/src/misc/noop.js +3 -3
  267. package/src/misc/noop.js.map +1 -0
  268. package/src/misc/noop.ts +4 -0
  269. package/src/misc/normalizeOptions.js +31 -49
  270. package/src/misc/normalizeOptions.js.map +1 -0
  271. package/src/misc/normalizeOptions.ts +51 -0
  272. package/src/misc/normalizeValue.js +17 -32
  273. package/src/misc/normalizeValue.js.map +1 -0
  274. package/src/misc/normalizeValue.ts +40 -0
  275. package/src/misc/passiveHandler.js +3 -7
  276. package/src/misc/passiveHandler.js.map +1 -0
  277. package/src/misc/passiveHandler.ts +6 -0
  278. package/src/misc/reflow.js +3 -9
  279. package/src/misc/reflow.js.map +1 -0
  280. package/src/misc/reflow.ts +9 -0
  281. package/src/misc/setElementStyle.js +16 -10
  282. package/src/misc/setElementStyle.js.map +1 -0
  283. package/src/misc/setElementStyle.ts +20 -0
  284. package/src/misc/timer.js +47 -78
  285. package/src/misc/timer.js.map +1 -0
  286. package/src/misc/timer.ts +74 -0
  287. package/src/misc/toLowerCase.js +3 -8
  288. package/src/misc/toLowerCase.js.map +1 -0
  289. package/src/misc/toLowerCase.ts +9 -0
  290. package/src/misc/toUpperCase.js +3 -8
  291. package/src/misc/toUpperCase.js.map +1 -0
  292. package/src/misc/toUpperCase.ts +9 -0
  293. package/src/selectors/closest.js +8 -16
  294. package/src/selectors/closest.js.map +1 -0
  295. package/src/selectors/closest.ts +20 -0
  296. package/src/selectors/getCustomElements.js +8 -17
  297. package/src/selectors/getCustomElements.js.map +1 -0
  298. package/src/selectors/getCustomElements.ts +18 -0
  299. package/src/selectors/getElementById.js +6 -11
  300. package/src/selectors/getElementById.js.map +1 -0
  301. package/src/selectors/getElementById.ts +16 -0
  302. package/src/selectors/getElementsByClassName.js +8 -14
  303. package/src/selectors/getElementsByClassName.js.map +1 -0
  304. package/src/selectors/getElementsByClassName.ts +22 -0
  305. package/src/selectors/getElementsByTagName.js +8 -14
  306. package/src/selectors/getElementsByTagName.js.map +1 -0
  307. package/src/selectors/getElementsByTagName.ts +20 -0
  308. package/src/selectors/matches.js +3 -10
  309. package/src/selectors/matches.js.map +1 -0
  310. package/src/selectors/matches.ts +10 -0
  311. package/src/selectors/querySelector.js +11 -17
  312. package/src/selectors/querySelector.js.map +1 -0
  313. package/src/selectors/querySelector.ts +21 -0
  314. package/src/selectors/querySelectorAll.js +8 -13
  315. package/src/selectors/querySelectorAll.js.map +1 -0
  316. package/src/selectors/querySelectorAll.ts +16 -0
  317. package/src/strings/DOMContentLoadedEvent.js +3 -6
  318. package/src/strings/DOMContentLoadedEvent.js.map +1 -0
  319. package/src/strings/DOMContentLoadedEvent.ts +5 -0
  320. package/src/strings/DOMMouseScrollEvent.js +3 -6
  321. package/src/strings/DOMMouseScrollEvent.js.map +1 -0
  322. package/src/strings/DOMMouseScrollEvent.ts +5 -0
  323. package/src/strings/abortEvent.js +3 -6
  324. package/src/strings/abortEvent.js.map +1 -0
  325. package/src/strings/abortEvent.ts +5 -0
  326. package/src/strings/addEventListener.js +3 -6
  327. package/src/strings/addEventListener.js.map +1 -0
  328. package/src/strings/addEventListener.ts +5 -0
  329. package/src/strings/animationDelay.js +3 -6
  330. package/src/strings/animationDelay.js.map +1 -0
  331. package/src/strings/animationDelay.ts +5 -0
  332. package/src/strings/animationDuration.js +3 -6
  333. package/src/strings/animationDuration.js.map +1 -0
  334. package/src/strings/animationDuration.ts +5 -0
  335. package/src/strings/animationEndEvent.js +3 -6
  336. package/src/strings/animationEndEvent.js.map +1 -0
  337. package/src/strings/animationEndEvent.ts +5 -0
  338. package/src/strings/animationName.js +3 -6
  339. package/src/strings/animationName.js.map +1 -0
  340. package/src/strings/animationName.ts +5 -0
  341. package/src/strings/ariaChecked.js +3 -6
  342. package/src/strings/ariaChecked.js.map +1 -0
  343. package/src/strings/ariaChecked.ts +5 -0
  344. package/src/strings/ariaDescribedBy.js +3 -6
  345. package/src/strings/ariaDescribedBy.js.map +1 -0
  346. package/src/strings/ariaDescribedBy.ts +5 -0
  347. package/src/strings/ariaDescription.js +3 -6
  348. package/src/strings/ariaDescription.js.map +1 -0
  349. package/src/strings/ariaDescription.ts +5 -0
  350. package/src/strings/ariaExpanded.js +3 -6
  351. package/src/strings/ariaExpanded.js.map +1 -0
  352. package/src/strings/ariaExpanded.ts +5 -0
  353. package/src/strings/ariaHasPopup.js +3 -6
  354. package/src/strings/ariaHasPopup.js.map +1 -0
  355. package/src/strings/ariaHasPopup.ts +5 -0
  356. package/src/strings/ariaHidden.js +3 -6
  357. package/src/strings/ariaHidden.js.map +1 -0
  358. package/src/strings/ariaHidden.ts +5 -0
  359. package/src/strings/ariaLabel.js +3 -6
  360. package/src/strings/ariaLabel.js.map +1 -0
  361. package/src/strings/ariaLabel.ts +5 -0
  362. package/src/strings/ariaLabelledBy.js +3 -6
  363. package/src/strings/ariaLabelledBy.js.map +1 -0
  364. package/src/strings/ariaLabelledBy.ts +5 -0
  365. package/src/strings/ariaModal.js +3 -6
  366. package/src/strings/ariaModal.js.map +1 -0
  367. package/src/strings/ariaModal.ts +5 -0
  368. package/src/strings/ariaPressed.js +3 -6
  369. package/src/strings/ariaPressed.js.map +1 -0
  370. package/src/strings/ariaPressed.ts +5 -0
  371. package/src/strings/ariaSelected.js +3 -6
  372. package/src/strings/ariaSelected.js.map +1 -0
  373. package/src/strings/ariaSelected.ts +5 -0
  374. package/src/strings/ariaValueMax.js +3 -6
  375. package/src/strings/ariaValueMax.js.map +1 -0
  376. package/src/strings/ariaValueMax.ts +5 -0
  377. package/src/strings/ariaValueMin.js +3 -6
  378. package/src/strings/ariaValueMin.js.map +1 -0
  379. package/src/strings/ariaValueMin.ts +5 -0
  380. package/src/strings/ariaValueNow.js +3 -6
  381. package/src/strings/ariaValueNow.js.map +1 -0
  382. package/src/strings/ariaValueNow.ts +5 -0
  383. package/src/strings/ariaValueText.js +3 -6
  384. package/src/strings/ariaValueText.js.map +1 -0
  385. package/src/strings/ariaValueText.ts +5 -0
  386. package/src/strings/beforeunloadEvent.js +3 -6
  387. package/src/strings/beforeunloadEvent.js.map +1 -0
  388. package/src/strings/beforeunloadEvent.ts +5 -0
  389. package/src/strings/bezierEasings.js +29 -33
  390. package/src/strings/bezierEasings.js.map +1 -0
  391. package/src/strings/bezierEasings.ts +32 -0
  392. package/src/strings/blurEvent.js +3 -6
  393. package/src/strings/blurEvent.js.map +1 -0
  394. package/src/strings/blurEvent.ts +5 -0
  395. package/src/strings/changeEvent.js +3 -6
  396. package/src/strings/changeEvent.js.map +1 -0
  397. package/src/strings/changeEvent.ts +5 -0
  398. package/src/strings/contextmenuEvent.js +3 -6
  399. package/src/strings/contextmenuEvent.js.map +1 -0
  400. package/src/strings/contextmenuEvent.ts +5 -0
  401. package/src/strings/errorEvent.js +3 -6
  402. package/src/strings/errorEvent.js.map +1 -0
  403. package/src/strings/errorEvent.ts +5 -0
  404. package/src/strings/focusEvent.js +3 -6
  405. package/src/strings/focusEvent.js.map +1 -0
  406. package/src/strings/focusEvent.ts +5 -0
  407. package/src/strings/focusEvents.js +3 -6
  408. package/src/strings/focusEvents.js.map +1 -0
  409. package/src/strings/focusEvents.ts +5 -0
  410. package/src/strings/focusinEvent.js +3 -6
  411. package/src/strings/focusinEvent.js.map +1 -0
  412. package/src/strings/focusinEvent.ts +5 -0
  413. package/src/strings/focusoutEvent.js +3 -6
  414. package/src/strings/focusoutEvent.js.map +1 -0
  415. package/src/strings/focusoutEvent.ts +5 -0
  416. package/src/strings/gesturechangeEvent.js +3 -6
  417. package/src/strings/gesturechangeEvent.js.map +1 -0
  418. package/src/strings/gesturechangeEvent.ts +5 -0
  419. package/src/strings/gestureendEvent.js +3 -6
  420. package/src/strings/gestureendEvent.js.map +1 -0
  421. package/src/strings/gestureendEvent.ts +5 -0
  422. package/src/strings/gesturestartEvent.js +3 -6
  423. package/src/strings/gesturestartEvent.js.map +1 -0
  424. package/src/strings/gesturestartEvent.ts +5 -0
  425. package/src/strings/keyAlt.js +3 -7
  426. package/src/strings/keyAlt.js.map +1 -0
  427. package/src/strings/keyAlt.ts +7 -0
  428. package/src/strings/keyArrowDown.js +3 -7
  429. package/src/strings/keyArrowDown.js.map +1 -0
  430. package/src/strings/keyArrowDown.ts +7 -0
  431. package/src/strings/keyArrowLeft.js +3 -7
  432. package/src/strings/keyArrowLeft.js.map +1 -0
  433. package/src/strings/keyArrowLeft.ts +7 -0
  434. package/src/strings/keyArrowRight.js +3 -7
  435. package/src/strings/keyArrowRight.js.map +1 -0
  436. package/src/strings/keyArrowRight.ts +7 -0
  437. package/src/strings/keyArrowUp.js +3 -7
  438. package/src/strings/keyArrowUp.js.map +1 -0
  439. package/src/strings/keyArrowUp.ts +7 -0
  440. package/src/strings/keyBackspace.js +3 -7
  441. package/src/strings/keyBackspace.js.map +1 -0
  442. package/src/strings/keyBackspace.ts +7 -0
  443. package/src/strings/keyCapsLock.js +3 -7
  444. package/src/strings/keyCapsLock.js.map +1 -0
  445. package/src/strings/keyCapsLock.ts +7 -0
  446. package/src/strings/keyControl.js +3 -7
  447. package/src/strings/keyControl.js.map +1 -0
  448. package/src/strings/keyControl.ts +7 -0
  449. package/src/strings/keyDelete.js +3 -7
  450. package/src/strings/keyDelete.js.map +1 -0
  451. package/src/strings/keyDelete.ts +7 -0
  452. package/src/strings/keyEnter.js +3 -7
  453. package/src/strings/keyEnter.js.map +1 -0
  454. package/src/strings/keyEnter.ts +7 -0
  455. package/src/strings/keyEscape.js +3 -7
  456. package/src/strings/keyEscape.js.map +1 -0
  457. package/src/strings/keyEscape.ts +7 -0
  458. package/src/strings/keyInsert.js +3 -7
  459. package/src/strings/keyInsert.js.map +1 -0
  460. package/src/strings/keyInsert.ts +7 -0
  461. package/src/strings/keyMeta.js +3 -7
  462. package/src/strings/keyMeta.js.map +1 -0
  463. package/src/strings/keyMeta.ts +7 -0
  464. package/src/strings/keyPause.js +3 -7
  465. package/src/strings/keyPause.js.map +1 -0
  466. package/src/strings/keyPause.ts +7 -0
  467. package/src/strings/keyScrollLock.js +3 -7
  468. package/src/strings/keyScrollLock.js.map +1 -0
  469. package/src/strings/keyScrollLock.ts +7 -0
  470. package/src/strings/keyShift.js +3 -7
  471. package/src/strings/keyShift.js.map +1 -0
  472. package/src/strings/keyShift.ts +7 -0
  473. package/src/strings/keySpace.js +3 -7
  474. package/src/strings/keySpace.js.map +1 -0
  475. package/src/strings/keySpace.ts +7 -0
  476. package/src/strings/keyTab.js +3 -7
  477. package/src/strings/keyTab.js.map +1 -0
  478. package/src/strings/keyTab.ts +7 -0
  479. package/src/strings/keyboardEventKeys.js +23 -27
  480. package/src/strings/keyboardEventKeys.js.map +1 -0
  481. package/src/strings/keyboardEventKeys.ts +26 -0
  482. package/src/strings/keydownEvent.js +3 -6
  483. package/src/strings/keydownEvent.js.map +1 -0
  484. package/src/strings/keydownEvent.ts +5 -0
  485. package/src/strings/keypressEvent.js +3 -6
  486. package/src/strings/keypressEvent.js.map +1 -0
  487. package/src/strings/keypressEvent.ts +5 -0
  488. package/src/strings/keyupEvent.js +3 -6
  489. package/src/strings/keyupEvent.js.map +1 -0
  490. package/src/strings/keyupEvent.ts +5 -0
  491. package/src/strings/loadEvent.js +3 -6
  492. package/src/strings/loadEvent.js.map +1 -0
  493. package/src/strings/loadEvent.ts +5 -0
  494. package/src/strings/loadstartEvent.js +3 -6
  495. package/src/strings/loadstartEvent.js.map +1 -0
  496. package/src/strings/loadstartEvent.ts +5 -0
  497. package/src/strings/mouseClickEvents.js +3 -6
  498. package/src/strings/mouseClickEvents.js.map +1 -0
  499. package/src/strings/mouseClickEvents.ts +5 -0
  500. package/src/strings/mouseHoverEvents.js +5 -6
  501. package/src/strings/mouseHoverEvents.js.map +1 -0
  502. package/src/strings/mouseHoverEvents.ts +8 -0
  503. package/src/strings/mouseSwipeEvents.js +8 -8
  504. package/src/strings/mouseSwipeEvents.js.map +1 -0
  505. package/src/strings/mouseSwipeEvents.ts +10 -0
  506. package/src/strings/mouseclickEvent.js +3 -6
  507. package/src/strings/mouseclickEvent.js.map +1 -0
  508. package/src/strings/mouseclickEvent.ts +5 -0
  509. package/src/strings/mousedblclickEvent.js +3 -6
  510. package/src/strings/mousedblclickEvent.js.map +1 -0
  511. package/src/strings/mousedblclickEvent.ts +5 -0
  512. package/src/strings/mousedownEvent.js +3 -6
  513. package/src/strings/mousedownEvent.js.map +1 -0
  514. package/src/strings/mousedownEvent.ts +5 -0
  515. package/src/strings/mouseenterEvent.js +3 -6
  516. package/src/strings/mouseenterEvent.js.map +1 -0
  517. package/src/strings/mouseenterEvent.ts +5 -0
  518. package/src/strings/mousehoverEvent.js +3 -6
  519. package/src/strings/mousehoverEvent.js.map +1 -0
  520. package/src/strings/mousehoverEvent.ts +5 -0
  521. package/src/strings/mouseinEvent.js +3 -6
  522. package/src/strings/mouseinEvent.js.map +1 -0
  523. package/src/strings/mouseinEvent.ts +5 -0
  524. package/src/strings/mouseleaveEvent.js +3 -6
  525. package/src/strings/mouseleaveEvent.js.map +1 -0
  526. package/src/strings/mouseleaveEvent.ts +5 -0
  527. package/src/strings/mousemoveEvent.js +3 -6
  528. package/src/strings/mousemoveEvent.js.map +1 -0
  529. package/src/strings/mousemoveEvent.ts +5 -0
  530. package/src/strings/mouseoutEvent.js +3 -6
  531. package/src/strings/mouseoutEvent.js.map +1 -0
  532. package/src/strings/mouseoutEvent.ts +5 -0
  533. package/src/strings/mouseoverEvent.js +3 -6
  534. package/src/strings/mouseoverEvent.js.map +1 -0
  535. package/src/strings/mouseoverEvent.ts +5 -0
  536. package/src/strings/mouseupEvent.js +3 -6
  537. package/src/strings/mouseupEvent.js.map +1 -0
  538. package/src/strings/mouseupEvent.ts +5 -0
  539. package/src/strings/mousewheelEvent.js +3 -6
  540. package/src/strings/mousewheelEvent.js.map +1 -0
  541. package/src/strings/mousewheelEvent.ts +5 -0
  542. package/src/strings/moveEvent.js +3 -6
  543. package/src/strings/moveEvent.js.map +1 -0
  544. package/src/strings/moveEvent.ts +5 -0
  545. package/src/strings/nativeEvents.js +104 -108
  546. package/src/strings/nativeEvents.js.map +1 -0
  547. package/src/strings/nativeEvents.ts +108 -0
  548. package/src/strings/offsetHeight.js +3 -6
  549. package/src/strings/offsetHeight.js.map +1 -0
  550. package/src/strings/offsetHeight.ts +5 -0
  551. package/src/strings/offsetWidth.js +3 -6
  552. package/src/strings/offsetWidth.js.map +1 -0
  553. package/src/strings/offsetWidth.ts +5 -0
  554. package/src/strings/orientationchangeEvent.js +3 -6
  555. package/src/strings/orientationchangeEvent.js.map +1 -0
  556. package/src/strings/orientationchangeEvent.ts +5 -0
  557. package/src/strings/pointercancelEvent.js +3 -6
  558. package/src/strings/pointercancelEvent.js.map +1 -0
  559. package/src/strings/pointercancelEvent.ts +5 -0
  560. package/src/strings/pointerdownEvent.js +3 -6
  561. package/src/strings/pointerdownEvent.js.map +1 -0
  562. package/src/strings/pointerdownEvent.ts +5 -0
  563. package/src/strings/pointerleaveEvent.js +3 -6
  564. package/src/strings/pointerleaveEvent.js.map +1 -0
  565. package/src/strings/pointerleaveEvent.ts +5 -0
  566. package/src/strings/pointermoveEvent.js +3 -6
  567. package/src/strings/pointermoveEvent.js.map +1 -0
  568. package/src/strings/pointermoveEvent.ts +5 -0
  569. package/src/strings/pointerupEvent.js +3 -6
  570. package/src/strings/pointerupEvent.js.map +1 -0
  571. package/src/strings/pointerupEvent.ts +5 -0
  572. package/src/strings/readystatechangeEvent.js +3 -6
  573. package/src/strings/readystatechangeEvent.js.map +1 -0
  574. package/src/strings/readystatechangeEvent.ts +5 -0
  575. package/src/strings/removeEventListener.js +3 -6
  576. package/src/strings/removeEventListener.js.map +1 -0
  577. package/src/strings/removeEventListener.ts +5 -0
  578. package/src/strings/resetEvent.js +3 -6
  579. package/src/strings/resetEvent.js.map +1 -0
  580. package/src/strings/resetEvent.ts +5 -0
  581. package/src/strings/resizeEvent.js +3 -6
  582. package/src/strings/resizeEvent.js.map +1 -0
  583. package/src/strings/resizeEvent.ts +5 -0
  584. package/src/strings/scrollEvent.js +3 -6
  585. package/src/strings/scrollEvent.js.map +1 -0
  586. package/src/strings/scrollEvent.ts +5 -0
  587. package/src/strings/scrollHeight.js +3 -6
  588. package/src/strings/scrollHeight.js.map +1 -0
  589. package/src/strings/scrollHeight.ts +5 -0
  590. package/src/strings/scrollWidth.js +3 -6
  591. package/src/strings/scrollWidth.js.map +1 -0
  592. package/src/strings/scrollWidth.ts +5 -0
  593. package/src/strings/selectEvent.js +3 -6
  594. package/src/strings/selectEvent.js.map +1 -0
  595. package/src/strings/selectEvent.ts +5 -0
  596. package/src/strings/selectendEvent.js +3 -6
  597. package/src/strings/selectendEvent.js.map +1 -0
  598. package/src/strings/selectendEvent.ts +5 -0
  599. package/src/strings/selectstartEvent.js +3 -6
  600. package/src/strings/selectstartEvent.js.map +1 -0
  601. package/src/strings/selectstartEvent.ts +5 -0
  602. package/src/strings/submitEvent.js +3 -6
  603. package/src/strings/submitEvent.js.map +1 -0
  604. package/src/strings/submitEvent.ts +5 -0
  605. package/src/strings/tabindex.js +3 -0
  606. package/src/strings/tabindex.js.map +1 -0
  607. package/src/strings/tabindex.ts +5 -0
  608. package/src/strings/touchEvents.js +8 -8
  609. package/src/strings/touchEvents.js.map +1 -0
  610. package/src/strings/touchEvents.ts +10 -0
  611. package/src/strings/touchcancelEvent.js +3 -6
  612. package/src/strings/touchcancelEvent.js.map +1 -0
  613. package/src/strings/touchcancelEvent.ts +5 -0
  614. package/src/strings/touchendEvent.js +3 -6
  615. package/src/strings/touchendEvent.js.map +1 -0
  616. package/src/strings/touchendEvent.ts +5 -0
  617. package/src/strings/touchmoveEvent.js +3 -6
  618. package/src/strings/touchmoveEvent.js.map +1 -0
  619. package/src/strings/touchmoveEvent.ts +5 -0
  620. package/src/strings/touchstartEvent.js +3 -6
  621. package/src/strings/touchstartEvent.js.map +1 -0
  622. package/src/strings/touchstartEvent.ts +5 -0
  623. package/src/strings/transitionDelay.js +3 -6
  624. package/src/strings/transitionDelay.js.map +1 -0
  625. package/src/strings/transitionDelay.ts +5 -0
  626. package/src/strings/transitionDuration.js +3 -6
  627. package/src/strings/transitionDuration.js.map +1 -0
  628. package/src/strings/transitionDuration.ts +5 -0
  629. package/src/strings/transitionEndEvent.js +3 -6
  630. package/src/strings/transitionEndEvent.js.map +1 -0
  631. package/src/strings/transitionEndEvent.ts +5 -0
  632. package/src/strings/transitionProperty.js +3 -7
  633. package/src/strings/transitionProperty.js.map +1 -0
  634. package/src/strings/transitionProperty.ts +5 -0
  635. package/src/strings/unloadEvent.js +3 -6
  636. package/src/strings/unloadEvent.js.map +1 -0
  637. package/src/strings/unloadEvent.ts +5 -0
  638. package/src/strings/userAgent.js +4 -7
  639. package/src/strings/userAgent.js.map +1 -0
  640. package/src/strings/userAgent.ts +7 -0
  641. package/src/strings/userAgentData.js +4 -8
  642. package/src/strings/userAgentData.js.map +1 -0
  643. package/src/strings/userAgentData.ts +9 -0
  644. package/types/attr/getAttribute.d.ts +3 -0
  645. package/types/attr/getAttribute.d.ts.map +1 -0
  646. package/types/attr/getAttributeNS.d.ts +3 -0
  647. package/types/attr/getAttributeNS.d.ts.map +1 -0
  648. package/types/attr/hasAttribute.d.ts +3 -0
  649. package/types/attr/hasAttribute.d.ts.map +1 -0
  650. package/types/attr/hasAttributeNS.d.ts +3 -0
  651. package/types/attr/hasAttributeNS.d.ts.map +1 -0
  652. package/types/attr/removeAttribute.d.ts +3 -0
  653. package/types/attr/removeAttribute.d.ts.map +1 -0
  654. package/types/attr/removeAttributeNS.d.ts +3 -0
  655. package/types/attr/removeAttributeNS.d.ts.map +1 -0
  656. package/types/attr/setAttribute.d.ts +3 -0
  657. package/types/attr/setAttribute.d.ts.map +1 -0
  658. package/types/attr/setAttributeNS.d.ts +3 -0
  659. package/types/attr/setAttributeNS.d.ts.map +1 -0
  660. package/types/blocks/documentBody.d.ts +3 -0
  661. package/types/blocks/documentBody.d.ts.map +1 -0
  662. package/types/blocks/documentElement.d.ts +3 -0
  663. package/types/blocks/documentElement.d.ts.map +1 -0
  664. package/types/blocks/documentHead.d.ts +3 -0
  665. package/types/blocks/documentHead.d.ts.map +1 -0
  666. package/types/boolean/isApple.d.ts +3 -0
  667. package/types/boolean/isApple.d.ts.map +1 -0
  668. package/types/boolean/isFirefox.d.ts +3 -0
  669. package/types/boolean/isFirefox.d.ts.map +1 -0
  670. package/types/boolean/isMobile.d.ts +3 -0
  671. package/types/boolean/isMobile.d.ts.map +1 -0
  672. package/types/boolean/support3DTransform.d.ts +3 -0
  673. package/types/boolean/support3DTransform.d.ts.map +1 -0
  674. package/types/boolean/supportAnimation.d.ts +3 -0
  675. package/types/boolean/supportAnimation.d.ts.map +1 -0
  676. package/types/boolean/supportPassive.d.ts +3 -0
  677. package/types/boolean/supportPassive.d.ts.map +1 -0
  678. package/types/boolean/supportTouch.d.ts +3 -0
  679. package/types/boolean/supportTouch.d.ts.map +1 -0
  680. package/types/boolean/supportTransform.d.ts +3 -0
  681. package/types/boolean/supportTransform.d.ts.map +1 -0
  682. package/types/boolean/supportTransition.d.ts +3 -0
  683. package/types/boolean/supportTransition.d.ts.map +1 -0
  684. package/types/class/addClass.d.ts +3 -0
  685. package/types/class/addClass.d.ts.map +1 -0
  686. package/types/class/hasClass.d.ts +3 -0
  687. package/types/class/hasClass.d.ts.map +1 -0
  688. package/types/class/removeClass.d.ts +3 -0
  689. package/types/class/removeClass.d.ts.map +1 -0
  690. package/types/event/off.d.ts +2 -0
  691. package/types/event/off.d.ts.map +1 -0
  692. package/types/event/on.d.ts +2 -0
  693. package/types/event/on.d.ts.map +1 -0
  694. package/types/event/one.d.ts +3 -0
  695. package/types/event/one.d.ts.map +1 -0
  696. package/types/get/getBoundingClientRect.d.ts +4 -0
  697. package/types/get/getBoundingClientRect.d.ts.map +1 -0
  698. package/types/get/getDocument.d.ts +3 -0
  699. package/types/get/getDocument.d.ts.map +1 -0
  700. package/types/get/getDocumentBody.d.ts +3 -0
  701. package/types/get/getDocumentBody.d.ts.map +1 -0
  702. package/types/get/getDocumentElement.d.ts +3 -0
  703. package/types/get/getDocumentElement.d.ts.map +1 -0
  704. package/types/get/getDocumentHead.d.ts +3 -0
  705. package/types/get/getDocumentHead.d.ts.map +1 -0
  706. package/types/get/getElementAnimationDelay.d.ts +3 -0
  707. package/types/get/getElementAnimationDelay.d.ts.map +1 -0
  708. package/types/get/getElementAnimationDuration.d.ts +3 -0
  709. package/types/get/getElementAnimationDuration.d.ts.map +1 -0
  710. package/types/get/getElementStyle.d.ts +3 -0
  711. package/types/get/getElementStyle.d.ts.map +1 -0
  712. package/types/get/getElementTransitionDelay.d.ts +3 -0
  713. package/types/get/getElementTransitionDelay.d.ts.map +1 -0
  714. package/types/get/getElementTransitionDuration.d.ts +3 -0
  715. package/types/get/getElementTransitionDuration.d.ts.map +1 -0
  716. package/types/get/getNodeScroll.d.ts +6 -0
  717. package/types/get/getNodeScroll.d.ts.map +1 -0
  718. package/types/get/getParentNode.d.ts +3 -0
  719. package/types/get/getParentNode.d.ts.map +1 -0
  720. package/types/get/getRectRelativeToOffsetParent.d.ts +7 -0
  721. package/types/get/getRectRelativeToOffsetParent.d.ts.map +1 -0
  722. package/types/get/getUID.d.ts +3 -0
  723. package/types/get/getUID.d.ts.map +1 -0
  724. package/types/get/getWindow.d.ts +3 -0
  725. package/types/get/getWindow.d.ts.map +1 -0
  726. package/types/index.d.ts +341 -250
  727. package/types/index.d.ts.map +1 -0
  728. package/types/interface/boundingClientRect.d.ts +11 -0
  729. package/types/interface/boundingClientRect.d.ts.map +1 -0
  730. package/types/interface/navigatorUA.d.ts +13 -0
  731. package/types/interface/navigatorUA.d.ts.map +1 -0
  732. package/types/interface/offsetRect.d.ts +7 -0
  733. package/types/interface/offsetRect.d.ts.map +1 -0
  734. package/types/interface/originalEvent.d.ts +4 -0
  735. package/types/interface/originalEvent.d.ts.map +1 -0
  736. package/types/is/isArray.d.ts +3 -0
  737. package/types/is/isArray.d.ts.map +1 -0
  738. package/types/is/isCustomElement.d.ts +5 -0
  739. package/types/is/isCustomElement.d.ts.map +1 -0
  740. package/types/is/isDocument.d.ts +3 -0
  741. package/types/is/isDocument.d.ts.map +1 -0
  742. package/types/is/isElement.d.ts +3 -0
  743. package/types/is/isElement.d.ts.map +1 -0
  744. package/types/is/isElementInScrollRange.d.ts +3 -0
  745. package/types/is/isElementInScrollRange.d.ts.map +1 -0
  746. package/types/is/isElementInViewport.d.ts +3 -0
  747. package/types/is/isElementInViewport.d.ts.map +1 -0
  748. package/types/is/isElementsArray.d.ts +3 -0
  749. package/types/is/isElementsArray.d.ts.map +1 -0
  750. package/types/is/isFunction.d.ts +3 -0
  751. package/types/is/isFunction.d.ts.map +1 -0
  752. package/types/is/isHTMLCollection.d.ts +3 -0
  753. package/types/is/isHTMLCollection.d.ts.map +1 -0
  754. package/types/is/isHTMLElement.d.ts +3 -0
  755. package/types/is/isHTMLElement.d.ts.map +1 -0
  756. package/types/is/isHTMLImageElement.d.ts +3 -0
  757. package/types/is/isHTMLImageElement.d.ts.map +1 -0
  758. package/types/is/isMedia.d.ts +3 -0
  759. package/types/is/isMedia.d.ts.map +1 -0
  760. package/types/is/isNode.d.ts +3 -0
  761. package/types/is/isNode.d.ts.map +1 -0
  762. package/types/is/isNodeList.d.ts +3 -0
  763. package/types/is/isNodeList.d.ts.map +1 -0
  764. package/types/is/isNumber.d.ts +3 -0
  765. package/types/is/isNumber.d.ts.map +1 -0
  766. package/types/is/isObject.d.ts +3 -0
  767. package/types/is/isObject.d.ts.map +1 -0
  768. package/types/is/isRTL.d.ts +3 -0
  769. package/types/is/isRTL.d.ts.map +1 -0
  770. package/types/is/isSVGElement.d.ts +3 -0
  771. package/types/is/isSVGElement.d.ts.map +1 -0
  772. package/types/is/isScaledElement.d.ts +2 -0
  773. package/types/is/isScaledElement.d.ts.map +1 -0
  774. package/types/is/isShadowRoot.d.ts +3 -0
  775. package/types/is/isShadowRoot.d.ts.map +1 -0
  776. package/types/is/isString.d.ts +3 -0
  777. package/types/is/isString.d.ts.map +1 -0
  778. package/types/is/isTableElement.d.ts +3 -0
  779. package/types/is/isTableElement.d.ts.map +1 -0
  780. package/types/is/isWindow.d.ts +3 -0
  781. package/types/is/isWindow.d.ts.map +1 -0
  782. package/types/misc/ArrayFrom.d.ts +3 -0
  783. package/types/misc/ArrayFrom.d.ts.map +1 -0
  784. package/types/misc/Float32ArrayFrom.d.ts +3 -0
  785. package/types/misc/Float32ArrayFrom.d.ts.map +1 -0
  786. package/types/misc/Float64ArrayFrom.d.ts +3 -0
  787. package/types/misc/Float64ArrayFrom.d.ts.map +1 -0
  788. package/types/misc/ObjectAssign.d.ts +3 -0
  789. package/types/misc/ObjectAssign.d.ts.map +1 -0
  790. package/types/misc/ObjectEntries.d.ts +3 -0
  791. package/types/misc/ObjectEntries.d.ts.map +1 -0
  792. package/types/misc/ObjectKeys.d.ts +3 -0
  793. package/types/misc/ObjectKeys.d.ts.map +1 -0
  794. package/types/misc/ObjectValues.d.ts +3 -0
  795. package/types/misc/ObjectValues.d.ts.map +1 -0
  796. package/types/misc/OriginalEvent.d.ts +4 -0
  797. package/types/misc/OriginalEvent.d.ts.map +1 -0
  798. package/types/misc/createElement.d.ts +3 -0
  799. package/types/misc/createElement.d.ts.map +1 -0
  800. package/types/misc/createElementNS.d.ts +3 -0
  801. package/types/misc/createElementNS.d.ts.map +1 -0
  802. package/types/misc/data.d.ts +9 -0
  803. package/types/misc/data.d.ts.map +1 -0
  804. package/types/misc/dispatchEvent.d.ts +3 -0
  805. package/types/misc/dispatchEvent.d.ts.map +1 -0
  806. package/types/misc/distinct.d.ts +3 -0
  807. package/types/misc/distinct.d.ts.map +1 -0
  808. package/types/misc/emulateAnimationEnd.d.ts +3 -0
  809. package/types/misc/emulateAnimationEnd.d.ts.map +1 -0
  810. package/types/misc/emulateTransitionEnd.d.ts +3 -0
  811. package/types/misc/emulateTransitionEnd.d.ts.map +1 -0
  812. package/types/misc/focus.d.ts +3 -0
  813. package/types/misc/focus.d.ts.map +1 -0
  814. package/types/misc/noop.d.ts +3 -0
  815. package/types/misc/noop.d.ts.map +1 -0
  816. package/types/misc/normalizeOptions.d.ts +3 -0
  817. package/types/misc/normalizeOptions.d.ts.map +1 -0
  818. package/types/misc/normalizeValue.d.ts +3 -0
  819. package/types/misc/normalizeValue.d.ts.map +1 -0
  820. package/types/misc/passiveHandler.d.ts +3 -0
  821. package/types/misc/passiveHandler.d.ts.map +1 -0
  822. package/types/misc/reflow.d.ts +3 -0
  823. package/types/misc/reflow.d.ts.map +1 -0
  824. package/types/misc/setElementStyle.d.ts +3 -0
  825. package/types/misc/setElementStyle.d.ts.map +1 -0
  826. package/types/misc/timer.d.ts +7 -0
  827. package/types/misc/timer.d.ts.map +1 -0
  828. package/types/misc/toLowerCase.d.ts +3 -0
  829. package/types/misc/toLowerCase.d.ts.map +1 -0
  830. package/types/misc/toUpperCase.d.ts +3 -0
  831. package/types/misc/toUpperCase.d.ts.map +1 -0
  832. package/types/selectors/closest.d.ts +3 -0
  833. package/types/selectors/closest.d.ts.map +1 -0
  834. package/types/selectors/getCustomElements.d.ts +3 -0
  835. package/types/selectors/getCustomElements.d.ts.map +1 -0
  836. package/types/selectors/getElementById.d.ts +3 -0
  837. package/types/selectors/getElementById.d.ts.map +1 -0
  838. package/types/selectors/getElementsByClassName.d.ts +3 -0
  839. package/types/selectors/getElementsByClassName.d.ts.map +1 -0
  840. package/types/selectors/getElementsByTagName.d.ts +3 -0
  841. package/types/selectors/getElementsByTagName.d.ts.map +1 -0
  842. package/types/selectors/matches.d.ts +3 -0
  843. package/types/selectors/matches.d.ts.map +1 -0
  844. package/types/selectors/querySelector.d.ts +3 -0
  845. package/types/selectors/querySelector.d.ts.map +1 -0
  846. package/types/selectors/querySelectorAll.d.ts +3 -0
  847. package/types/selectors/querySelectorAll.d.ts.map +1 -0
  848. package/types/strings/DOMContentLoadedEvent.d.ts +3 -0
  849. package/types/strings/DOMContentLoadedEvent.d.ts.map +1 -0
  850. package/types/strings/DOMMouseScrollEvent.d.ts +3 -0
  851. package/types/strings/DOMMouseScrollEvent.d.ts.map +1 -0
  852. package/types/strings/abortEvent.d.ts +3 -0
  853. package/types/strings/abortEvent.d.ts.map +1 -0
  854. package/types/strings/addEventListener.d.ts +3 -0
  855. package/types/strings/addEventListener.d.ts.map +1 -0
  856. package/types/strings/animationDelay.d.ts +3 -0
  857. package/types/strings/animationDelay.d.ts.map +1 -0
  858. package/types/strings/animationDuration.d.ts +3 -0
  859. package/types/strings/animationDuration.d.ts.map +1 -0
  860. package/types/strings/animationEndEvent.d.ts +3 -0
  861. package/types/strings/animationEndEvent.d.ts.map +1 -0
  862. package/types/strings/animationName.d.ts +3 -0
  863. package/types/strings/animationName.d.ts.map +1 -0
  864. package/types/strings/ariaChecked.d.ts +3 -0
  865. package/types/strings/ariaChecked.d.ts.map +1 -0
  866. package/types/strings/ariaDescribedBy.d.ts +3 -0
  867. package/types/strings/ariaDescribedBy.d.ts.map +1 -0
  868. package/types/strings/ariaDescription.d.ts +3 -0
  869. package/types/strings/ariaDescription.d.ts.map +1 -0
  870. package/types/strings/ariaExpanded.d.ts +3 -0
  871. package/types/strings/ariaExpanded.d.ts.map +1 -0
  872. package/types/strings/ariaHasPopup.d.ts +3 -0
  873. package/types/strings/ariaHasPopup.d.ts.map +1 -0
  874. package/types/strings/ariaHidden.d.ts +3 -0
  875. package/types/strings/ariaHidden.d.ts.map +1 -0
  876. package/types/strings/ariaLabel.d.ts +3 -0
  877. package/types/strings/ariaLabel.d.ts.map +1 -0
  878. package/types/strings/ariaLabelledBy.d.ts +3 -0
  879. package/types/strings/ariaLabelledBy.d.ts.map +1 -0
  880. package/types/strings/ariaModal.d.ts +3 -0
  881. package/types/strings/ariaModal.d.ts.map +1 -0
  882. package/types/strings/ariaPressed.d.ts +3 -0
  883. package/types/strings/ariaPressed.d.ts.map +1 -0
  884. package/types/strings/ariaSelected.d.ts +3 -0
  885. package/types/strings/ariaSelected.d.ts.map +1 -0
  886. package/types/strings/ariaValueMax.d.ts +3 -0
  887. package/types/strings/ariaValueMax.d.ts.map +1 -0
  888. package/types/strings/ariaValueMin.d.ts +3 -0
  889. package/types/strings/ariaValueMin.d.ts.map +1 -0
  890. package/types/strings/ariaValueNow.d.ts +3 -0
  891. package/types/strings/ariaValueNow.d.ts.map +1 -0
  892. package/types/strings/ariaValueText.d.ts +3 -0
  893. package/types/strings/ariaValueText.d.ts.map +1 -0
  894. package/types/strings/beforeunloadEvent.d.ts +3 -0
  895. package/types/strings/beforeunloadEvent.d.ts.map +1 -0
  896. package/types/strings/bezierEasings.d.ts +29 -0
  897. package/types/strings/bezierEasings.d.ts.map +1 -0
  898. package/types/strings/blurEvent.d.ts +3 -0
  899. package/types/strings/blurEvent.d.ts.map +1 -0
  900. package/types/strings/changeEvent.d.ts +3 -0
  901. package/types/strings/changeEvent.d.ts.map +1 -0
  902. package/types/strings/contextmenuEvent.d.ts +3 -0
  903. package/types/strings/contextmenuEvent.d.ts.map +1 -0
  904. package/types/strings/errorEvent.d.ts +3 -0
  905. package/types/strings/errorEvent.d.ts.map +1 -0
  906. package/types/strings/focusEvent.d.ts +3 -0
  907. package/types/strings/focusEvent.d.ts.map +1 -0
  908. package/types/strings/focusEvents.d.ts +6 -0
  909. package/types/strings/focusEvents.d.ts.map +1 -0
  910. package/types/strings/focusinEvent.d.ts +3 -0
  911. package/types/strings/focusinEvent.d.ts.map +1 -0
  912. package/types/strings/focusoutEvent.d.ts +3 -0
  913. package/types/strings/focusoutEvent.d.ts.map +1 -0
  914. package/types/strings/gesturechangeEvent.d.ts +3 -0
  915. package/types/strings/gesturechangeEvent.d.ts.map +1 -0
  916. package/types/strings/gestureendEvent.d.ts +3 -0
  917. package/types/strings/gestureendEvent.d.ts.map +1 -0
  918. package/types/strings/gesturestartEvent.d.ts +3 -0
  919. package/types/strings/gesturestartEvent.d.ts.map +1 -0
  920. package/types/strings/keyAlt.d.ts +3 -0
  921. package/types/strings/keyAlt.d.ts.map +1 -0
  922. package/types/strings/keyArrowDown.d.ts +3 -0
  923. package/types/strings/keyArrowDown.d.ts.map +1 -0
  924. package/types/strings/keyArrowLeft.d.ts +3 -0
  925. package/types/strings/keyArrowLeft.d.ts.map +1 -0
  926. package/types/strings/keyArrowRight.d.ts +3 -0
  927. package/types/strings/keyArrowRight.d.ts.map +1 -0
  928. package/types/strings/keyArrowUp.d.ts +3 -0
  929. package/types/strings/keyArrowUp.d.ts.map +1 -0
  930. package/types/strings/keyBackspace.d.ts +3 -0
  931. package/types/strings/keyBackspace.d.ts.map +1 -0
  932. package/types/strings/keyCapsLock.d.ts +3 -0
  933. package/types/strings/keyCapsLock.d.ts.map +1 -0
  934. package/types/strings/keyControl.d.ts +3 -0
  935. package/types/strings/keyControl.d.ts.map +1 -0
  936. package/types/strings/keyDelete.d.ts +3 -0
  937. package/types/strings/keyDelete.d.ts.map +1 -0
  938. package/types/strings/keyEnter.d.ts +3 -0
  939. package/types/strings/keyEnter.d.ts.map +1 -0
  940. package/types/strings/keyEscape.d.ts +3 -0
  941. package/types/strings/keyEscape.d.ts.map +1 -0
  942. package/types/strings/keyInsert.d.ts +3 -0
  943. package/types/strings/keyInsert.d.ts.map +1 -0
  944. package/types/strings/keyMeta.d.ts +3 -0
  945. package/types/strings/keyMeta.d.ts.map +1 -0
  946. package/types/strings/keyPause.d.ts +3 -0
  947. package/types/strings/keyPause.d.ts.map +1 -0
  948. package/types/strings/keyScrollLock.d.ts +3 -0
  949. package/types/strings/keyScrollLock.d.ts.map +1 -0
  950. package/types/strings/keyShift.d.ts +3 -0
  951. package/types/strings/keyShift.d.ts.map +1 -0
  952. package/types/strings/keySpace.d.ts +3 -0
  953. package/types/strings/keySpace.d.ts.map +1 -0
  954. package/types/strings/keyTab.d.ts +3 -0
  955. package/types/strings/keyTab.d.ts.map +1 -0
  956. package/types/strings/keyboardEventKeys.d.ts +23 -0
  957. package/types/strings/keyboardEventKeys.d.ts.map +1 -0
  958. package/types/strings/keydownEvent.d.ts +3 -0
  959. package/types/strings/keydownEvent.d.ts.map +1 -0
  960. package/types/strings/keypressEvent.d.ts +3 -0
  961. package/types/strings/keypressEvent.d.ts.map +1 -0
  962. package/types/strings/keyupEvent.d.ts +3 -0
  963. package/types/strings/keyupEvent.d.ts.map +1 -0
  964. package/types/strings/loadEvent.d.ts +3 -0
  965. package/types/strings/loadEvent.d.ts.map +1 -0
  966. package/types/strings/loadstartEvent.d.ts +3 -0
  967. package/types/strings/loadstartEvent.d.ts.map +1 -0
  968. package/types/strings/mouseClickEvents.d.ts +6 -0
  969. package/types/strings/mouseClickEvents.d.ts.map +1 -0
  970. package/types/strings/mouseHoverEvents.d.ts +3 -0
  971. package/types/strings/mouseHoverEvents.d.ts.map +1 -0
  972. package/types/strings/mouseSwipeEvents.d.ts +8 -0
  973. package/types/strings/mouseSwipeEvents.d.ts.map +1 -0
  974. package/types/strings/mouseclickEvent.d.ts +3 -0
  975. package/types/strings/mouseclickEvent.d.ts.map +1 -0
  976. package/types/strings/mousedblclickEvent.d.ts +3 -0
  977. package/types/strings/mousedblclickEvent.d.ts.map +1 -0
  978. package/types/strings/mousedownEvent.d.ts +3 -0
  979. package/types/strings/mousedownEvent.d.ts.map +1 -0
  980. package/types/strings/mouseenterEvent.d.ts +3 -0
  981. package/types/strings/mouseenterEvent.d.ts.map +1 -0
  982. package/types/strings/mousehoverEvent.d.ts +3 -0
  983. package/types/strings/mousehoverEvent.d.ts.map +1 -0
  984. package/types/strings/mouseinEvent.d.ts +3 -0
  985. package/types/strings/mouseinEvent.d.ts.map +1 -0
  986. package/types/strings/mouseleaveEvent.d.ts +3 -0
  987. package/types/strings/mouseleaveEvent.d.ts.map +1 -0
  988. package/types/strings/mousemoveEvent.d.ts +3 -0
  989. package/types/strings/mousemoveEvent.d.ts.map +1 -0
  990. package/types/strings/mouseoutEvent.d.ts +3 -0
  991. package/types/strings/mouseoutEvent.d.ts.map +1 -0
  992. package/types/strings/mouseoverEvent.d.ts +3 -0
  993. package/types/strings/mouseoverEvent.d.ts.map +1 -0
  994. package/types/strings/mouseupEvent.d.ts +3 -0
  995. package/types/strings/mouseupEvent.d.ts.map +1 -0
  996. package/types/strings/mousewheelEvent.d.ts +3 -0
  997. package/types/strings/mousewheelEvent.d.ts.map +1 -0
  998. package/types/strings/moveEvent.d.ts +3 -0
  999. package/types/strings/moveEvent.d.ts.map +1 -0
  1000. package/types/strings/nativeEvents.d.ts +54 -0
  1001. package/types/strings/nativeEvents.d.ts.map +1 -0
  1002. package/types/strings/offsetHeight.d.ts +3 -0
  1003. package/types/strings/offsetHeight.d.ts.map +1 -0
  1004. package/types/strings/offsetWidth.d.ts +3 -0
  1005. package/types/strings/offsetWidth.d.ts.map +1 -0
  1006. package/types/strings/orientationchangeEvent.d.ts +3 -0
  1007. package/types/strings/orientationchangeEvent.d.ts.map +1 -0
  1008. package/types/strings/pointercancelEvent.d.ts +3 -0
  1009. package/types/strings/pointercancelEvent.d.ts.map +1 -0
  1010. package/types/strings/pointerdownEvent.d.ts +3 -0
  1011. package/types/strings/pointerdownEvent.d.ts.map +1 -0
  1012. package/types/strings/pointerleaveEvent.d.ts +3 -0
  1013. package/types/strings/pointerleaveEvent.d.ts.map +1 -0
  1014. package/types/strings/pointermoveEvent.d.ts +3 -0
  1015. package/types/strings/pointermoveEvent.d.ts.map +1 -0
  1016. package/types/strings/pointerupEvent.d.ts +3 -0
  1017. package/types/strings/pointerupEvent.d.ts.map +1 -0
  1018. package/types/strings/readystatechangeEvent.d.ts +3 -0
  1019. package/types/strings/readystatechangeEvent.d.ts.map +1 -0
  1020. package/types/strings/removeEventListener.d.ts +3 -0
  1021. package/types/strings/removeEventListener.d.ts.map +1 -0
  1022. package/types/strings/resetEvent.d.ts +3 -0
  1023. package/types/strings/resetEvent.d.ts.map +1 -0
  1024. package/types/strings/resizeEvent.d.ts +3 -0
  1025. package/types/strings/resizeEvent.d.ts.map +1 -0
  1026. package/types/strings/scrollEvent.d.ts +3 -0
  1027. package/types/strings/scrollEvent.d.ts.map +1 -0
  1028. package/types/strings/scrollHeight.d.ts +3 -0
  1029. package/types/strings/scrollHeight.d.ts.map +1 -0
  1030. package/types/strings/scrollWidth.d.ts +3 -0
  1031. package/types/strings/scrollWidth.d.ts.map +1 -0
  1032. package/types/strings/selectEvent.d.ts +3 -0
  1033. package/types/strings/selectEvent.d.ts.map +1 -0
  1034. package/types/strings/selectendEvent.d.ts +3 -0
  1035. package/types/strings/selectendEvent.d.ts.map +1 -0
  1036. package/types/strings/selectstartEvent.d.ts +3 -0
  1037. package/types/strings/selectstartEvent.d.ts.map +1 -0
  1038. package/types/strings/submitEvent.d.ts +3 -0
  1039. package/types/strings/submitEvent.d.ts.map +1 -0
  1040. package/types/strings/tabindex.d.ts +3 -0
  1041. package/types/strings/tabindex.d.ts.map +1 -0
  1042. package/types/strings/touchEvents.d.ts +8 -0
  1043. package/types/strings/touchEvents.d.ts.map +1 -0
  1044. package/types/strings/touchcancelEvent.d.ts +3 -0
  1045. package/types/strings/touchcancelEvent.d.ts.map +1 -0
  1046. package/types/strings/touchendEvent.d.ts +3 -0
  1047. package/types/strings/touchendEvent.d.ts.map +1 -0
  1048. package/types/strings/touchmoveEvent.d.ts +3 -0
  1049. package/types/strings/touchmoveEvent.d.ts.map +1 -0
  1050. package/types/strings/touchstartEvent.d.ts +3 -0
  1051. package/types/strings/touchstartEvent.d.ts.map +1 -0
  1052. package/types/strings/transitionDelay.d.ts +3 -0
  1053. package/types/strings/transitionDelay.d.ts.map +1 -0
  1054. package/types/strings/transitionDuration.d.ts +3 -0
  1055. package/types/strings/transitionDuration.d.ts.map +1 -0
  1056. package/types/strings/transitionEndEvent.d.ts +3 -0
  1057. package/types/strings/transitionEndEvent.d.ts.map +1 -0
  1058. package/types/strings/transitionProperty.d.ts +3 -0
  1059. package/types/strings/transitionProperty.d.ts.map +1 -0
  1060. package/types/strings/unloadEvent.d.ts +3 -0
  1061. package/types/strings/unloadEvent.d.ts.map +1 -0
  1062. package/types/strings/userAgent.d.ts +3 -0
  1063. package/types/strings/userAgent.d.ts.map +1 -0
  1064. package/types/strings/userAgentData.d.ts +4 -0
  1065. package/types/strings/userAgentData.d.ts.map +1 -0
  1066. package/dist/shorty.esm.js +0 -2527
  1067. package/dist/shorty.esm.min.js +0 -2
  1068. package/dist/shorty.js +0 -2550
  1069. package/dist/shorty.min.js +0 -2
  1070. package/src/get/getElementAnimationDelayLegacy.js +0 -21
  1071. package/src/get/getElementAnimationDurationLegacy.js +0 -21
  1072. package/src/get/getElementTransitionDelayLegacy.js +0 -21
  1073. package/src/get/getElementTransitionDurationLegacy.js +0 -21
  1074. package/src/misc/passiveHandlerLegacy.js +0 -9
  1075. package/src/misc/tryWrapper.js +0 -11
  1076. package/src/misc/version.js +0 -9
  1077. package/src/selectors/documentAll.js +0 -8
  1078. package/src/selectors/matchesLegacy.js +0 -23
  1079. package/src/strings/animationDelayLegacy.js +0 -8
  1080. package/src/strings/animationDurationLegacy.js +0 -8
  1081. package/src/strings/animationEndEventLegacy.js +0 -8
  1082. package/src/strings/animationNameLegacy.js +0 -8
  1083. package/src/strings/transitionDelayLegacy.js +0 -8
  1084. package/src/strings/transitionDurationLegacy.js +0 -8
  1085. package/src/strings/transitionEndEventLegacy.js +0 -8
  1086. package/src/strings/transitionPropertyLegacy.js +0 -12
  1087. package/types/module/shorty.ts +0 -247
  1088. package/types/shorty.d.ts +0 -2292
package/README.md CHANGED
@@ -1,26 +1,33 @@
1
- # shorty ![typescript version](https://img.shields.io/badge/typescript-4.5.2-brightgreen) [![ci](https://github.com/thednp/shorty/actions/workflows/ci.yml/badge.svg)](https://github.com/thednp/shorty/actions/workflows/ci.yml)
1
+ # shorty
2
2
 
3
- A small ES6+ library with various JavaScript tools, all ESLint valid and with TypeScript definitions, everything useful for creating light libraries or web components. If there is anything that is consistently repeating itself, **shorty** can help you save up to 50% of the code required, with little to no performance cost.
3
+ [![Coverage Status](https://coveralls.io/repos/github/thednp/shorty/badge.svg)](https://coveralls.io/github/thednp/shorty)
4
+ [![ci](https://github.com/thednp/shorty/actions/workflows/ci.yml/badge.svg)](https://github.com/thednp/shorty/actions/workflows/ci.yml)
5
+ [![NPM Version](https://img.shields.io/npm/v/@thednp/shorty.svg)](https://www.npmjs.com/package/@thednp/shorty)
6
+ [![NPM Downloads](https://img.shields.io/npm/dm/@thednp/shorty.svg)](http://npm-stat.com/charts.html?package=@thednp/shorty)
7
+ [![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hw/@thednp/shorty)](https://www.jsdelivr.com/package/npm/@thednp/shorty)
8
+ ![cypress version](https://img.shields.io/badge/cypress-10.3.1-brightgreen)
9
+ ![typescript version](https://img.shields.io/badge/typescript-4.7.4-brightgreen)
4
10
 
5
- [![NPM Version](https://img.shields.io/npm/v/@thednp/shorty.svg?style=flat-square)](https://www.npmjs.com/package/shorty)
6
- [![NPM Downloads](https://img.shields.io/npm/dm/@thednp/shorty.svg?style=flat-square)](http://npm-stat.com/charts.html?package=shorty)
7
- [![jsDeliver](https://data.jsdelivr.com/v1/package/npm/@thednp/shorty/badge)](https://www.jsdelivr.com/package/npm/shorty)
11
+ A small TypeScript library with various tools, all ESLint valid and featuring everything useful for creating light libraries or web components. If there is anything that is consistently repeating itself, **shorty** can help you save up to 50% of the code required, with little to no performance cost.
8
12
 
9
- **shorty** is featured in [KUTE.js](https://github.com/thednp/kute.js), [BSN](https://github.com/thednp/bootstrap.native), [Navbar.js](https://github.com/thednp/navbar.js) and other libraries.
13
+ **shorty** is featured in [ColorPicker](https://github.com/thednp/color-picker), [KUTE.js](https://github.com/thednp/kute.js), [BSN](https://github.com/thednp/bootstrap.native), [Navbar.js](https://github.com/thednp/navbar.js) and other libraries.
10
14
 
11
- * The purpose of the library is to speed up the development workflow, minimize the size of larger libraries by providing a shorter syntax for most used JavaScript API methods, most used strings or other helpful utilities.
12
- * While the library comes with a working build in the `dist` folder, that is mainly for build consistency testing. You can make use of "tree shaking" to import one or anything your code needs.
13
- * On that note, all shorties are organized in folders inside the `src` root folder, the structure is key to understanding the purpose of each type of shortie, whether we have `boolean` for various basic browser detection or browser feature support, `attr` for all things *Element* attributes or `strings` for most common and most used *Element.prototype* methods.
15
+ - The purpose of the library is to speed up the development workflow, minimize the size of larger libraries by providing a shorter syntax for most used JavaScript API methods, most used strings or other helpful utilities.
16
+ - Another excellent use for the library is for its selectors in a testing environment where you need to check the `instanceof` for various objects.
17
+ - While the library comes with a working build in the `dist` folder, that is mainly for build consistency testing. You can make use of "tree shaking" to import one or anything your code needs.
18
+ - On that note, all shorties are organized in folders inside the `src` root folder, the structure is key to understanding the purpose of each type of shortie, whether we have `boolean` for various basic browser detection or browser feature support, `attr` for all things _Element_ attributes or `strings` for most common and most used _Element.prototype_ methods.
14
19
 
15
20
  # npm
21
+
16
22
  ```
17
23
  npm install @thednp/shorty
18
24
  ```
19
25
 
20
- # ES6+ Base usage
26
+ # TypeScript / ES6+ Base usage
27
+
21
28
  ```js
22
29
  // import the tool you need
23
- import { supportTransform } from '@thednp/shorty';
30
+ import { supportTransform } from "@thednp/shorty";
24
31
 
25
32
  // use the tool in your ES6/ES7 sources
26
33
  if (supportTransform) {
@@ -29,159 +36,155 @@ if (supportTransform) {
29
36
  ```
30
37
 
31
38
  # attr
32
- * ***getAttribute*** - returns the value of a specified *Element* attribute;
33
- * ***getAttributeNS*** - returns the value of a specified namespaced *Element* attribute (eg: namespaced SVG attributes);
34
- * ***hasAttribute*** - check if element has a specified attribute;
35
- * ***hasAttributeNS*** - check if element has a specified namespaced attribute;
36
- * ***removeAttribute*** - removes a specified attribute from an element;
37
- * ***removeAttributeNS*** - removes a specified namespaced attribute from an element;
38
- * ***setAttribute*** - set a new attribute value for a given element;
39
- * ***setAttributeNS*** - set a new namespaced attribute value for a given element;
40
-
41
- ```js
39
+
40
+ - **_getAttribute_** - returns the value of a specified _Element_ attribute;
41
+ - **_getAttributeNS_** - returns the value of a specified namespaced _Element_ attribute (eg: namespaced SVG attributes);
42
+ - **_hasAttribute_** - check if element has a specified attribute;
43
+ - **_hasAttributeNS_** - check if element has a specified namespaced attribute;
44
+ - **_removeAttribute_** - removes a specified attribute from an element;
45
+ - **_removeAttributeNS_** - removes a specified namespaced attribute from an element;
46
+ - **_setAttribute_** - set a new attribute value for a given element;
47
+ - **_setAttributeNS_** - set a new namespaced attribute value for a given element;
48
+
49
+ ```js
42
50
  // EXAMPLES
43
- import { getAttribute, hasAttribute, setAttribute } from '@thednp/shorty';
51
+ import { getAttribute, hasAttribute, setAttribute } from "@thednp/shorty";
44
52
 
45
53
  // check target has certain attribute
46
- if (!hasAttribute(myTarget, 'attribute-name')) {
47
- setAttribute(myTarget, 'attribute-name', 'new-value');
54
+ if (!hasAttribute(myTarget, "attribute-name")) {
55
+ setAttribute(myTarget, "attribute-name", "new-value");
48
56
  }
49
57
 
50
58
  // get attribute value
51
- const currentAttrValue = getAttribute(myTarget, 'attribute-name');
59
+ const currentAttrValue = getAttribute(myTarget, "attribute-name");
52
60
  ```
53
61
 
54
-
55
62
  # blocks
56
- * ***documentBody*** - a shortie for `document.body`;
57
- * ***documentElement*** - a shortie for `document.documentElement`;
58
- * ***documentHead*** - a shortie for `document.head`;
63
+
64
+ - **_documentBody_** - a shortie for `document.body`;
65
+ - **_documentElement_** - a shortie for `document.documentElement`;
66
+ - **_documentHead_** - a shortie for `document.head`;
59
67
 
60
68
  # boolean
61
- * ***isApple*** - checks and preserves a `boolean` value for the client browser is either Apple **Safari** browser or not;
62
- * ***isFirefox*** - checks and preserves a `boolean` value for the client browser is either **Firefox** or not;
63
- * ***isMobile*** - checks and preserves a `boolean` value for the client browser is either a Mobile device or not;
64
- * ***support3DTransform*** - checks and preserves a `boolean` value for the client browser capability for webKit `perspective`;
65
- * ***supportTouch*** - checks and preserves a `boolean` value for the client browser capability for `touch` events;
66
- * ***supportPassive*** - checks and preserves a `boolean` value for the client browser capability for `passive` event option;
67
- * ***supportTransform*** - checks and preserves a `boolean` value for the client browser capability for webKit `transform`;
68
- * ***supportAnimation*** - checks and preserves a `boolean` value for the client browser capability for webKit keyframe `animation`;
69
- * ***supportTransition*** - checks and preserves a `boolean` value for the client browser capability for webKit `transition`;
70
-
71
- ```js
69
+
70
+ - **_isApple_** - checks and preserves a `boolean` value for the client browser is either Apple **Safari** browser or not;
71
+ - **_isFirefox_** - checks and preserves a `boolean` value for the client browser is either **Firefox** or not;
72
+ - **_isMobile_** - checks and preserves a `boolean` value for the client browser is either a Mobile device or not;
73
+ - **_support3DTransform_** - checks and preserves a `boolean` value for the client browser capability for webKit `perspective`;
74
+ - **_supportTouch_** - checks and preserves a `boolean` value for the client browser capability for `touch` events;
75
+ - **_supportPassive_** - checks and preserves a `boolean` value for the client browser capability for `passive` event option;
76
+ - **_supportTransform_** - checks and preserves a `boolean` value for the client browser capability for webKit `transform`;
77
+ - **_supportAnimation_** - checks and preserves a `boolean` value for the client browser capability for webKit keyframe `animation`;
78
+ - **_supportTransition_** - checks and preserves a `boolean` value for the client browser capability for webKit `transition`;
79
+
80
+ ```js
72
81
  // EXAMPLES
73
- import { support3DTransform } from '@thednp/shorty';
82
+ import { support3DTransform } from "@thednp/shorty";
74
83
 
75
84
  // filter myAction to supported browsers
76
85
  if (support3DTransform) {
77
86
  // do something with modern browsers
78
87
  }
79
88
  ```
80
-
89
+
81
90
  # class
82
- * ***addClass*** - add a class to a target *Element*;
83
- * ***removeClass*** - remove a class from a target *Element*;
84
- * ***hasClass*** - checks the existence of a class for a target *Element*;
85
91
 
86
- ```js
92
+ - **_addClass_** - add a class to a target _Element_;
93
+ - **_removeClass_** - remove a class from a target _Element_;
94
+ - **_hasClass_** - checks the existence of a class for a target _Element_;
95
+
96
+ ```js
87
97
  // EXAMPLES
88
- import { addClass, removeClass, hasClass } from '@thednp/shorty'
98
+ import { addClass, removeClass, hasClass } from "@thednp/shorty";
89
99
 
90
100
  // add a class
91
- addClass(targetElement, 'className');
101
+ addClass(targetElement, "className");
92
102
 
93
103
  // remove a class
94
- removeClass(targetElement, 'className');
104
+ removeClass(targetElement, "className");
95
105
 
96
106
  // check for a class
97
- if (hasClass(targetElement, 'className')) {
107
+ if (hasClass(targetElement, "className")) {
98
108
  // do something about that
99
109
  }
100
110
  ```
101
111
 
102
112
  # event
103
- * ***on*** - attach an event listener to a specific target *Element*;
104
- * ***off*** - detach an event listener from a specific target *Element*;
105
- * ***one*** - attach an event listener to a specific target *Element*, and detach when complete;
106
113
 
107
- ```js
114
+ - **_on_** - attach an event listener to a specific target _Element_;
115
+ - **_off_** - detach an event listener from a specific target _Element_;
116
+ - **_one_** - attach an event listener to a specific target _Element_, and detach when complete;
117
+
118
+ ```js
108
119
  // EXAMPLES
109
- import { on, off, one, passiveHandler } from '@thednp/shorty';
120
+ import { on, off, one, passiveHandler } from "@thednp/shorty";
110
121
 
111
122
  // attach a passive mousedown eventHandler
112
- on(targetElement, 'click', eventHandler, passiveHandler);
123
+ on(targetElement, "click", eventHandler, passiveHandler);
113
124
 
114
125
  // detach a passive mouseup eventHandler
115
- off(targetElement, 'mouseup', eventHandler, passiveHandler);
126
+ off(targetElement, "mouseup", eventHandler, passiveHandler);
116
127
 
117
128
  // attach a single instance passive touchstart eventHandler
118
- one(targetElement, 'touchstart', eventHandler, passiveHandler);
129
+ one(targetElement, "touchstart", eventHandler, passiveHandler);
119
130
  ```
120
131
 
121
132
  For a more advanced method to handle event listeners, I recommend using the [event-listener.js](github.com/thednp/event-listener.js).
122
133
 
123
-
124
134
  # get
125
- * ***getBoundingClientRect*** - returns the bounding client rectangle of a given *Element*;
126
- * ***getDocument*** - returns the containing `#Document` for a given *Element* or just any *Document*, useful when working with *iframe*s;
127
- * ***getDocumentBody*** - returns the containing `<body>` for a given *Element* or just any;
128
- * ***getDocumentElement*** - returns the containing `<html>` for a given *Element* or just any;
129
- * ***getDocumentHead*** - returns the containing `<head>` for a given *Element* or just any;
130
- * ***getElementAnimationDelay*** - returns the `animationDelay` property of an `animation` property;
131
- * ***getElementAnimationDelayLegacy*** - for legacy browsers;
132
- * ***getElementAnimationDuration*** - returns the `animationDuration` property of a `animation` property;
133
- * ***getElementAnimationDurationLegacy*** - for legacy browsers;
134
- * ***getElementTransitionDelay*** - returns the `transitionDelay` property of a `transition` property;
135
- * ***getElementTransitionDelayLegacy*** - for legacy browsers;
136
- * ***getElementTransitionDuration*** - returns the `transitionDuration` property of a `transition` property;
137
- * ***getElementTransitionDurationLegacy*** - for legacy browsers;
138
- * ***getElementStyle*** - returns the *Element* computed style for a given property;
139
- * ***getNodeScroll*** - returns the *Element* / *Window* current `{ x, y }` scroll position;
140
- * ***getParentNode*** - returns parent of a given *Element*;
141
- * ***getRectRelativeToOffsetParent*** - returns the bounding client rectangle of a given *Element* relative to a given `offsetParent`;
142
- * ***getUID*** - a nice utility that creates a unique ID for a given *Element* and returns it;
143
- * ***getWindow*** - returns the containing `Window` for a given *Element* or just any *Window*;
144
-
145
- ```js
135
+
136
+ - **_getBoundingClientRect_** - returns the bounding client rectangle of a given _Element_;
137
+ - **_getDocument_** - returns the containing `#Document` for a given _Element_ or just any _Document_, useful when working with *iframe*s;
138
+ - **_getDocumentBody_** - returns the containing `<body>` for a given _Element_ or just any;
139
+ - **_getDocumentElement_** - returns the containing `<html>` for a given _Element_ or just any;
140
+ - **_getDocumentHead_** - returns the containing `<head>` for a given _Element_ or just any;
141
+ - **_getElementAnimationDelay_** - returns the `animationDelay` property of an `animation` property;
142
+ - **_getElementAnimationDuration_** - returns the `animationDuration` property of a `animation` property;
143
+ - **_getElementTransitionDelay_** - returns the `transitionDelay` property of a `transition` property;
144
+ - **_getElementTransitionDuration_** - returns the `transitionDuration` property of a `transition` property;
145
+ - **_getElementStyle_** - returns the _Element_ computed style for a given property;
146
+ - **_getNodeScroll_** - returns the _Element_ / _Window_ current `{ x, y }` scroll position;
147
+ - **_getParentNode_** - returns parent of a given _Element_;
148
+ - **_getRectRelativeToOffsetParent_** - returns the bounding client rectangle of a given _Element_ relative to a given `offsetParent`;
149
+ - **_getUID_** - a nice utility that creates a unique ID for a given _Element_ and returns it;
150
+ - **_getWindow_** - returns the containing `Window` for a given _Element_ or just any _Window_;
151
+
152
+ ```js
146
153
  // EXAMPLES
147
- import {
148
- getElementAnimationDuration,
149
- getElementAnimationDurationLegacy,
150
- } from '@thednp/shorty'
154
+ import { getElementAnimationDuration } from "@thednp/shorty";
151
155
 
152
156
  // store the transition duration for target element on a modern browser
153
157
  const duration = getElementAnimationDuration(target);
154
-
155
- // or do the same with legacy browser fallback
156
- const duration = getElementAnimationDurationLegacy(target);
157
158
  ```
158
159
 
159
160
  # is
160
- * ***isArray*** - check if a given value is an `Array`;
161
- * ***isCustomElement*** - check if a given value is a `CustomElement` instance;
162
- * ***isDocument*** - check if a given value is a `Document` instance;
163
- * ***isElement*** - check if a given value is an `Element` instance;
164
- * ***isElementInScrollRange*** - check if a given `Element` is partially visible in the viewport;
165
- * ***isElementInViewport*** - check if a given `Element` is fully visible in the viewport;
166
- * ***isElementsArray*** - check if a given value is an `Array` with `Element` instances;
167
- * ***isFunction*** - check if a given value is a `Function` instance;
168
- * ***isHTMLCollection*** - check if a given value is an `HTMLCollection` instance;
169
- * ***isHTMLElement*** - check if a given value is an `HTMLElement` instance;
170
- * ***isHTMLImageElement*** - check if a given value is an `HTMLImageElement` instance;
171
- * ***isMedia*** - check if a given value is an `SVGElement`, `HTMLImageElement` or `HTMLVideoElement` instance;
172
- * ***isNode*** - check if a given value is a `Node` instance;
173
- * ***isNodeList*** - check if a given value is a `NodeList` instance;
174
- * ***isRTL*** - check if a given node is contained in a `<html dir="rtl">`;
175
- * ***isScaledElement*** - check if a given *Element* is affected by scale;
176
- * ***isShadowRoot*** - check if a given *Node* is a `ShadowRoot` instance;
177
- * ***isString*** - check if a given value is string;
178
- * ***isSVGElement*** - check if a given value is `SVGElement` instance;
179
- * ***isTableElement*** - check if a given value is `<table>`, `<td>` or `<th>` *Element*;
180
- * ***isWindow*** - check if a given value is a `Window` instance;
181
-
182
- ```js
161
+
162
+ - **_isArray_** - check if a given value is an `Array`;
163
+ - **_isCustomElement_** - check if a given value is a `CustomElement` instance;
164
+ - **_isDocument_** - check if a given value is a `Document` instance;
165
+ - **_isElement_** - check if a given value is an `Element` instance;
166
+ - **_isElementInScrollRange_** - check if a given `Element` is partially visible in the viewport;
167
+ - **_isElementInViewport_** - check if a given `Element` is fully visible in the viewport;
168
+ - **_isElementsArray_** - check if a given value is an `Array` with `Element` instances;
169
+ - **_isFunction_** - check if a given value is a `Function` instance;
170
+ - **_isHTMLCollection_** - check if a given value is an `HTMLCollection` instance;
171
+ - **_isHTMLElement_** - check if a given value is an `HTMLElement` instance;
172
+ - **_isHTMLImageElement_** - check if a given value is an `HTMLImageElement` instance;
173
+ - **_isMedia_** - check if a given value is an `SVGElement`, `HTMLImageElement` or `HTMLVideoElement` instance;
174
+ - **_isNode_** - check if a given value is a `Node` instance;
175
+ - **_isNodeList_** - check if a given value is a `NodeList` instance;
176
+ - **_isNumber_** - check if a given value is string;
177
+ - **_isRTL_** - check if a given node is contained in a `<html dir="rtl">`;
178
+ - **_isScaledElement_** - check if a given _Element_ is affected by scale;
179
+ - **_isShadowRoot_** - check if a given _Node_ is a `ShadowRoot` instance;
180
+ - **_isString_** - check if a given value is string;
181
+ - **_isSVGElement_** - check if a given value is `SVGElement` instance;
182
+ - **_isTableElement_** - check if a given value is `<table>`, `<td>` or `<th>` _Element_;
183
+ - **_isWindow_** - check if a given value is a `Window` instance;
184
+
185
+ ```js
183
186
  // EXAMPLES
184
- import { isArray, isHTMLElement, isElementsArray } from '@thednp/shorty';
187
+ import { isArray, isHTMLElement, isElementsArray } from "@thednp/shorty";
185
188
 
186
189
  // check if a value is an `Array` of `Element` instances
187
190
  if (isArray(myValue) && myValue.every(isHTMLElement)) {
@@ -195,40 +198,38 @@ if (isElementsArray(myValue)) {
195
198
  ```
196
199
 
197
200
  # misc
198
- * ***ArrayFrom*** - a shortie for `Array.from()` method;
199
- * ***Data*** - a small utility to store web components data that makes use of the native `Map`;
200
- * ***dispatchEvent*** - a shortie for `Element.dispatchEvent()` method;
201
- * ***distinct*** - a shortie you can use to filter duplicate values in an `Array`;
202
- * ***emulateAnimationEnd*** - utility to execute a callback function when `animationend` event is triggered, or execute the callback right after for legacy browsers;
203
- * ***emulateAnimationEndLegacy*** - for legacy browsers;
204
- * ***emulateTransitionEnd*** - utility to execute a callback function when `transitionend` event is triggered, or execute the callback right after for legacy browsers;
205
- * ***emulateTransitionEndLegacy*** - for legacy browsers;
206
- * ***Float32ArrayFrom*** - a shortie for `Float32Array.from()` method;
207
- * ***Float64ArrayFrom*** - a shortie for `Float64Array.from()` method;
208
- * ***focus*** - a shortie for `Element.focus()` method;
209
- * ***noop*** - is your regular `() => {}` NOOP;
210
- * ***normalizeOptions*** - a cool utility to normalize and crosscheck JavaScript options and their DATA API counterparts for various web components; supports namespaced options like `data-NAMESPACE-option="value"`; priority: JavaScript options > DATA API options > default options
211
- * ***ObjectAssign*** - a shortie for `Object.assign()` method;
212
- * ***ObjectKeys*** - a shortie for `Object.keys()` method;
213
- * ***ObjectValues*** - a shortie for `Object.values()` method;
214
- * ***OriginalEvent*** - a small utility that returns a synthetic `CustomEvent` with the added `relatedTarget` and other properties;
215
- * ***passiveHandler*** - a constant that preserves a standard listener `options` with `passive: true` event option used;
216
- * ***passiveHandlerLegacy*** - for legacy browsers;
217
- * ***reflow*** - a small utility that force repaint of a given *Element* by "checking" its `offsetHeight` value, also because using just `element.offsetHeight;` won't validate on ESLint;
218
- * ***setElementStyle*** - a small utility that allows you to set multiple CSS properties at once for a given *Element* target;
219
- * ***Timer*** - a small but powerful utility that makes `setTimeout` have a meaning;
220
- * ***toLowerCase*** - a shortie for `String.toLowerCase()` method;
221
- * ***toUpperCase*** - a shortie for `String.toUpperCase()` method;
222
- * ***tryWrapper*** - a simple `try()` and `catch()` wrapper for functions, with option to preffix the error logs, pointing out the context of the errors;
223
-
224
- The ***Data*** and ***Timer*** utilities have their own specifics, you might want to check the [wiki](https://github.com/thednp/shorty/wiki).
225
-
226
- ```js
201
+
202
+ - **_ArrayFrom_** - a shortie for `Array.from()` method;
203
+ - **_Data_** - a small utility to store web components data that makes use of the native `Map`;
204
+ - **_dispatchEvent_** - a shortie for `Element.dispatchEvent()` method;
205
+ - **_distinct_** - a shortie you can use to filter duplicate values in an `Array`;
206
+ - **_emulateAnimationEnd_** - utility to execute a callback function when `animationend` event is triggered, or execute the callback right after for legacy browsers;
207
+ - **_emulateAnimationEndLegacy_** - for legacy browsers;
208
+ - **_emulateTransitionEnd_** - utility to execute a callback function when `transitionend` event is triggered, or execute the callback right after for legacy browsers;
209
+ - **_emulateTransitionEndLegacy_** - for legacy browsers;
210
+ - **_Float32ArrayFrom_** - a shortie for `Float32Array.from()` method;
211
+ - **_Float64ArrayFrom_** - a shortie for `Float64Array.from()` method;
212
+ - **_focus_** - a shortie for `Element.focus()` method;
213
+ - **_noop_** - is your regular `() => {}` NOOP;
214
+ - **_normalizeOptions_** - a cool utility to normalize and crosscheck JavaScript options and their DATA API counterparts for various web components; supports namespaced options like `data-NAMESPACE-option="value"`; priority: JavaScript options > DATA API options > default options
215
+ - **_ObjectAssign_** - a shortie for `Object.assign()` method;
216
+ - **_ObjectEntries_** - a shortie for `Object.entries()` method;
217
+ - **_ObjectKeys_** - a shortie for `Object.keys()` method;
218
+ - **_ObjectValues_** - a shortie for `Object.values()` method;
219
+ - **_OriginalEvent_** - a small utility that returns a synthetic `CustomEvent` with the added `relatedTarget` and other properties;
220
+ - **_passiveHandler_** - a constant that preserves a standard listener `options` with `passive: true` event option used;
221
+ - **_passiveHandlerLegacy_** - for legacy browsers;
222
+ - **_reflow_** - a small utility that force repaint of a given _Element_ by "checking" its `offsetHeight` value, also because using just `element.offsetHeight;` won't validate on ESLint;
223
+ - **_setElementStyle_** - a small utility that allows you to set multiple CSS properties at once for a given _Element_ target;
224
+ - **_Timer_** - a small but powerful utility that makes `setTimeout` have a meaning;
225
+ - **_toLowerCase_** - a shortie for `String.toLowerCase()` method;
226
+ - **_toUpperCase_** - a shortie for `String.toUpperCase()` method;
227
+
228
+ The **_Data_** and **_Timer_** utilities have their own specifics, you might want to check the [wiki](https://github.com/thednp/shorty/wiki).
229
+
230
+ ```js
227
231
  // EXAMPLES
228
- import {
229
- emulateTransitionEnd,
230
- distinct,
231
- } from '@thednp/shorty';
232
+ import { emulateTransitionEnd, distinct } from "@thednp/shorty";
232
233
 
233
234
  // execute a callback when transitionend is triggered for the target
234
235
  emulateTransitionEnd(targetElement, callback);
@@ -243,61 +244,54 @@ const array3 = [...array1, ...array2].filter(distinct);
243
244
  ```
244
245
 
245
246
  # selectors
246
- * ***closest*** - a shortie for `Element.closest()` method;
247
- * ***documentAll*** - a quick bit equivalent of the deprecated `document.all` collection;
248
- * ***getCustomElements*** - returns an `Array` with all registered `CustomElement`;
249
- * ***getElementById*** - a shortie for `document.getElementById()` method;
250
- * ***getElementsByClassName*** - a shortie for `Element.getElementsByClassName()` method;
251
- * ***getElementsByTagName*** - a shortie for `Element.getElementsByTagName()` method;
252
- * ***matches*** - a shortie for `Element.matches()` method;
253
- * ***matchesLegacy*** - for legacy browsers;
254
- * ***querySelector*** - a simple utility to check if a given value is an *Element* or a selector string, and if a selector string find the FIRST *Element* and return it;
255
- * ***querySelectorAll*** - a simple utility to check if a certain item is an *Element* or a selector string, and if a selector string find the FIRST *Element* and return it;
256
-
257
- ```js
247
+
248
+ - **_closest_** - a shortie for `Element.closest()` method;
249
+ - **_getCustomElements_** - returns an `Array` with all registered `CustomElement`;
250
+ - **_getElementById_** - a shortie for `document.getElementById()` method;
251
+ - **_getElementsByClassName_** - a shortie for `Element.getElementsByClassName()` method;
252
+ - **_getElementsByTagName_** - a shortie for `Element.getElementsByTagName()` method;
253
+ - **_matches_** - a shortie for `Element.matches()` method;
254
+ - **_matchesLegacy_** - for legacy browsers;
255
+ - **_querySelector_** - a simple utility to check if a given value is an _Element_ or a selector string, and if a selector string find the FIRST _Element_ and return it;
256
+ - **_querySelectorAll_** - a simple utility to check if a certain item is an _Element_ or a selector string, and if a selector string find the FIRST _Element_ and return it;
257
+
258
+ ```js
258
259
  // EXAMPLES
259
- import { querySelector, querySelectorAll, documentAll, matches } from '@thednp/shorty';
260
+ import { querySelector, querySelectorAll, documentAll, matches } from "@thednp/shorty";
260
261
 
261
262
  // get first element that matches a certain selector
262
- const element = querySelector('.my-class-name');
263
+ const element = querySelector(".my-class-name");
263
264
 
264
265
  // get all elements that matches same selector
265
- const elements = querySelectorAll('.my-class-name');
266
+ const elements = querySelectorAll(".my-class-name");
266
267
 
267
268
  // now do the same as the above, but differently
268
- const elements = [...documentAll].filter((x) => matches(x, '.my-class-name'));
269
+ const elements = [...documentAll].filter((x) => matches(x, ".my-class-name"));
269
270
  ```
270
271
 
271
272
  # strings
272
- * ***bezierEasings*** - an *Object* comprised or a set of valid CSS `transition-timing-function` based on Cubic Bezier; EG: `cubic-bezier(0.215,0.61,0.355,1)` for `bezierEasings.easingCubicOut`;
273
- * ***mouseSwipeEvents*** - preserves the pointer events from mouse actions: start: `mousedown`, end: `mouseup`, move: `mousemove`, cancel: `mouseout`;
274
- * ***mouseClickEvents*** - preserves the pointer events from mouse actions: down: `mousedown`, up: `mouseup`;
275
- * ***mouseHoverEvents*** - preserve browser specific mouse hover events: `mouseenter` and `mouseleave` OR `mouseover` and `mouseout`;
276
- * ***touchEvents*** - preserves the pointer events from touch actions: start: `touchstart`, end: `touchend`, move: `touchmove`, cancel: `touchcancel`;
277
- * ***animationDuration*** - preserves the `animationDuration` property for modern browsers;
278
- * ***animationDurationLegacy*** - for legacy browsers fallback;
279
- * ***animationDelay*** - preserves the `animationDelay` property for modern browsers;
280
- * ***animationDelayLegacy*** - for legacy browsers fallback;
281
- * ***animationEndEvent*** - preserves the `animationEndEvent` event for modern browsers;
282
- * ***animationEndEventLegacy*** - for legacy browsers fallback;
283
- * ***animationName*** - preserves the `animationName` property name for modern browsers;
284
- * ***animationNameLegacy*** - for legacy browsers fallback;
285
- * ***transitionDuration*** - preserves the `transitionDuration` property name for modern browsers;
286
- * ***transitionDurationLegacy*** - for legacy browsers fallback;
287
- * ***transitionDelay*** - preserves the `transitionDelay` property name for modern browsers;
288
- * ***transitionDelayLegacy*** - for legacy browsers fallback;
289
- * ***transitionEndEvent*** - preserves the `transitionend` event name for modern browsers;
290
- * ***transitionEndEventLegacy*** - for legacy browsers fallback;
291
- * ***transitionProperty*** - preserves the `transitionProperty` property name for modern browsers;
292
- * ***transitionPropertyLegacy*** - for legacy browsers fallback;
293
- * ***addEventListener*** - preserves the `addEventListener` method name;
294
- * ***removeEventListener*** - preserves the `removeEventListener` method name;
273
+
274
+ - **_bezierEasings_** - an _Object_ comprised or a set of valid CSS `transition-timing-function` based on Cubic Bezier; EG: `cubic-bezier(0.215,0.61,0.355,1)` for `bezierEasings.easingCubicOut`;
275
+ - **_mouseSwipeEvents_** - preserves the pointer events from mouse actions: start: `mousedown`, end: `mouseup`, move: `mousemove`, cancel: `mouseout`;
276
+ - **_mouseClickEvents_** - preserves the pointer events from mouse actions: down: `mousedown`, up: `mouseup`;
277
+ - **_mouseHoverEvents_** - preserve browser specific mouse hover events: `mouseenter` and `mouseleave` OR `mouseover` and `mouseout`;
278
+ - **_touchEvents_** - preserves the pointer events from touch actions: start: `touchstart`, end: `touchend`, move: `touchmove`, cancel: `touchcancel`;
279
+ - **_animationDuration_** - preserves the `animationDuration` property for modern browsers;
280
+ - **_animationDelay_** - preserves the `animationDelay` property for modern browsers;
281
+ - **_animationEndEvent_** - preserves the `animationEndEvent` event for modern browsers;
282
+ - **_animationName_** - preserves the `animationName` property name for modern browsers;
283
+ - **_transitionDuration_** - preserves the `transitionDuration` property name for modern browsers;
284
+ - **_transitionDelay_** - preserves the `transitionDelay` property name for modern browsers;
285
+ - **_transitionEndEvent_** - preserves the `transitionend` event name for modern browsers;
286
+ - **_transitionProperty_** - preserves the `transitionProperty` property name for modern browsers;
287
+ - **_addEventListener_** - preserves the `addEventListener` method name;
288
+ - **_removeEventListener_** - preserves the `removeEventListener` method name;
295
289
 
296
290
  There are lots more string constants available which include native event names, browser strings, keyboard key codes or ARIA specific attribute names. Be sure to check the `src/strings` folder for a complete list.
297
291
 
298
- ```js
292
+ ```js
299
293
  // EXAMPLES
300
- import {on, off, one, mouseClickEvents, touchEvents, passiveHandler} from '@thednp/shorty';
294
+ import { on, off, one, mouseClickEvents, touchEvents, passiveHandler } from "@thednp/shorty";
301
295
 
302
296
  // attach a passive mousedown eventHandler
303
297
  on(targetElement, mouseClickEvents.down, eventHandler, passiveHandler);
@@ -310,32 +304,34 @@ one(targetElement, touchEvents.start, eventHandler, passiveHandler);
310
304
  ```
311
305
 
312
306
  # Advanced Use
313
- Here's a simple example to showcase the benefit of using ***shorty***.
307
+
308
+ Here's a simple example to showcase the benefit of using **_shorty_**.
314
309
 
315
310
  ```js
316
311
  // This is your typical day to day scripting
317
- const target = document.getElementById('my-element');
312
+ const target = document.getElementById("my-element");
318
313
 
319
- target.addEventListener('click', function(e) {
320
- target.classList.add('my-className');
321
- })
314
+ target.addEventListener("click", function (e) {
315
+ target.classList.add("my-className");
316
+ });
322
317
  ```
323
318
 
324
319
  Now make it all shorty. You might want to import shorties directly from their location, something we like to call "tree shaking".
320
+
325
321
  ```js
326
322
  // Example
327
- import on from '@thednp/shorty/src/event/on';
328
- import addClass from '@thednp/shorty/src/class/addClass';
329
- import getElementById from '@thednp/shorty/src/selectors/getElementById';
330
- import mouseclickEvent from '@thednp/shorty/src/strings/mouseclickEvent';
323
+ import on from "@thednp/shorty/src/event/on";
324
+ import addClass from "@thednp/shorty/src/class/addClass";
325
+ import getElementById from "@thednp/shorty/src/selectors/getElementById";
326
+ import mouseclickEvent from "@thednp/shorty/src/strings/mouseclickEvent";
331
327
 
332
- const target = getElementById('my-element');
328
+ const target = getElementById("my-element");
333
329
 
334
- on(target, mouseclickEvent, function(e) {
335
- addClass(target, 'my-className')
336
- })
330
+ on(target, mouseclickEvent, function (e) {
331
+ addClass(target, "my-className");
332
+ });
337
333
  ```
338
334
 
339
-
340
335
  # License
336
+
341
337
  **shorty** is released under the [MIT License](https://github.com/thednp/shorty/blob/master/LICENSE)