@thednp/shorty 2.0.0-alpha2 → 2.0.0-alpha21

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 (903) hide show
  1. package/.eslintrc.cjs +224 -0
  2. package/.lgtm.yml +8 -0
  3. package/.prettierrc.json +15 -0
  4. package/README.md +9 -3
  5. package/cypress/e2e/att.cy.ts +46 -0
  6. package/cypress/e2e/boolean.cy.ts +44 -0
  7. package/cypress/e2e/class.cy.ts +28 -0
  8. package/cypress/e2e/event.cy.ts +51 -0
  9. package/cypress/e2e/get.cy.ts +168 -0
  10. package/cypress/e2e/is.cy.ts +233 -0
  11. package/cypress/e2e/misc.cy.ts +354 -0
  12. package/cypress/e2e/selectors.cy.ts +85 -0
  13. package/cypress/fixtures/custom-elem.js +18 -0
  14. package/cypress/plugins/esbuild-istanbul.ts +50 -0
  15. package/cypress/plugins/tsCompile.ts +34 -0
  16. package/cypress/support/commands.ts +37 -0
  17. package/cypress/support/e2e.ts +21 -0
  18. package/cypress/support/index.js +22 -0
  19. package/cypress/test.html +63 -0
  20. package/cypress.config.ts +30 -0
  21. package/dist/shorty.cjs +2 -0
  22. package/dist/shorty.cjs.map +1 -0
  23. package/dist/shorty.d.ts +1700 -0
  24. package/dist/shorty.js +1 -1566
  25. package/dist/shorty.js.map +1 -7
  26. package/dist/shorty.mjs +669 -0
  27. package/dist/shorty.mjs.map +1 -0
  28. package/dts.config.ts +22 -0
  29. package/package.json +72 -68
  30. package/src/attr/getAttribute.ts +1 -0
  31. package/src/attr/getAttributeNS.ts +1 -0
  32. package/src/attr/hasAttribute.ts +1 -0
  33. package/src/attr/hasAttributeNS.ts +1 -0
  34. package/src/attr/removeAttribute.ts +1 -0
  35. package/src/attr/removeAttributeNS.ts +1 -0
  36. package/src/attr/setAttribute.ts +1 -0
  37. package/src/attr/setAttributeNS.ts +1 -0
  38. package/src/boolean/isApple.ts +3 -3
  39. package/src/boolean/isFirefox.ts +2 -2
  40. package/src/boolean/isMobile.ts +3 -3
  41. package/src/boolean/support3DTransform.ts +2 -4
  42. package/src/boolean/supportAnimation.ts +2 -2
  43. package/src/boolean/supportPassive.ts +6 -5
  44. package/src/boolean/supportTouch.ts +1 -1
  45. package/src/boolean/supportTransform.ts +2 -2
  46. package/src/boolean/supportTransition.ts +2 -2
  47. package/src/event/off.ts +9 -7
  48. package/src/event/on.ts +9 -7
  49. package/src/event/one.ts +8 -7
  50. package/src/get/getBoundingClientRect.ts +4 -3
  51. package/src/get/getDocument.ts +8 -7
  52. package/src/get/getDocumentBody.ts +1 -1
  53. package/src/get/getDocumentElement.ts +1 -1
  54. package/src/get/getDocumentHead.ts +2 -2
  55. package/src/get/getElementAnimationDelay.ts +5 -5
  56. package/src/get/getElementAnimationDuration.ts +5 -5
  57. package/src/get/getElementStyle.ts +8 -7
  58. package/src/get/getElementTransitionDelay.ts +7 -5
  59. package/src/get/getElementTransitionDuration.ts +7 -5
  60. package/src/get/getParentNode.ts +2 -1
  61. package/src/get/getRectRelativeToOffsetParent.ts +3 -2
  62. package/src/get/getUID.ts +3 -3
  63. package/src/get/getWindow.ts +5 -4
  64. package/src/index.ts +37 -5
  65. package/src/interface/{boundingClientRect.ts → boundingClientRect.d.ts} +10 -10
  66. package/src/interface/css4Declaration.d.ts +4 -0
  67. package/src/interface/{customElement.ts → customElement.d.ts} +8 -8
  68. package/src/interface/event.d.ts +247 -0
  69. package/src/interface/{navigatorUA.ts → navigatorUA.d.ts} +15 -15
  70. package/src/interface/{offsetRect.ts → offsetRect.d.ts} +6 -6
  71. package/src/interface/originalEvent.d.ts +4 -0
  72. package/src/is/isArray.ts +1 -1
  73. package/src/is/isCanvas.ts +4 -2
  74. package/src/is/isCustomElement.ts +4 -3
  75. package/src/is/isDocument.ts +4 -1
  76. package/src/is/isElement.ts +8 -3
  77. package/src/is/isElementInScrollRange.ts +3 -3
  78. package/src/is/isElementInViewport.ts +3 -3
  79. package/src/is/isElementsArray.ts +3 -3
  80. package/src/is/isFunction.ts +2 -2
  81. package/src/is/isHTMLCollection.ts +4 -2
  82. package/src/is/isHTMLElement.ts +5 -2
  83. package/src/is/isHTMLImageElement.ts +5 -2
  84. package/src/is/isJSON.ts +20 -0
  85. package/src/is/isMap.ts +11 -8
  86. package/src/is/isMedia.ts +6 -4
  87. package/src/is/isNode.ts +9 -3
  88. package/src/is/isNodeList.ts +4 -2
  89. package/src/is/isNumber.ts +1 -1
  90. package/src/is/isObject.ts +2 -1
  91. package/src/is/isRTL.ts +3 -2
  92. package/src/is/isSVGElement.ts +4 -2
  93. package/src/is/isScaledElement.ts +7 -4
  94. package/src/is/isShadowRoot.ts +4 -2
  95. package/src/is/isString.ts +1 -1
  96. package/src/is/isTableElement.ts +4 -2
  97. package/src/is/isWeakMap.ts +11 -9
  98. package/src/is/isWindow.ts +4 -1
  99. package/src/misc/Float32ArrayFrom.ts +1 -0
  100. package/src/misc/Float64ArrayFrom.ts +1 -0
  101. package/src/misc/ObjectAssign.ts +35 -3
  102. package/src/misc/ObjectEntries.ts +4 -1
  103. package/src/misc/ObjectFromEntries.ts +11 -0
  104. package/src/misc/ObjectHasOwn.ts +17 -0
  105. package/src/misc/ObjectKeys.ts +3 -1
  106. package/src/misc/ObjectValues.ts +4 -1
  107. package/src/misc/{OriginalEvent.ts → createCustomEvent.ts} +10 -6
  108. package/src/misc/createElement.ts +9 -14
  109. package/src/misc/createElementNS.ts +15 -19
  110. package/src/misc/data.ts +21 -19
  111. package/src/misc/distinct.ts +1 -0
  112. package/src/misc/emulateAnimationEnd.ts +4 -4
  113. package/src/misc/emulateTransitionEnd.ts +4 -4
  114. package/src/misc/getInstance.ts +9 -0
  115. package/src/misc/noop.ts +3 -1
  116. package/src/misc/normalizeOptions.ts +6 -6
  117. package/src/misc/normalizeValue.ts +8 -8
  118. package/src/misc/setElementStyle.ts +7 -5
  119. package/src/misc/timer.ts +16 -13
  120. package/src/selectors/getCustomElements.ts +2 -1
  121. package/src/selectors/getElementsByClassName.ts +2 -2
  122. package/src/selectors/getElementsByTagName.ts +3 -3
  123. package/src/selectors/querySelector.ts +5 -4
  124. package/src/strings/DOMContentLoadedEvent.ts +1 -1
  125. package/src/strings/DOMMouseScrollEvent.ts +1 -1
  126. package/src/strings/abortEvent.ts +1 -1
  127. package/src/strings/addEventListener.ts +1 -1
  128. package/src/strings/animationDelay.ts +1 -1
  129. package/src/strings/animationDuration.ts +1 -1
  130. package/src/strings/animationEndEvent.ts +1 -1
  131. package/src/strings/animationName.ts +1 -1
  132. package/src/strings/ariaChecked.ts +1 -1
  133. package/src/strings/ariaDescribedBy.ts +1 -1
  134. package/src/strings/ariaDescription.ts +1 -1
  135. package/src/strings/ariaExpanded.ts +1 -1
  136. package/src/strings/ariaHasPopup.ts +1 -1
  137. package/src/strings/ariaHidden.ts +1 -1
  138. package/src/strings/ariaLabel.ts +1 -1
  139. package/src/strings/ariaLabelledBy.ts +1 -1
  140. package/src/strings/ariaModal.ts +1 -1
  141. package/src/strings/ariaPressed.ts +1 -1
  142. package/src/strings/ariaSelected.ts +1 -1
  143. package/src/strings/ariaValueMax.ts +1 -1
  144. package/src/strings/ariaValueMin.ts +1 -1
  145. package/src/strings/ariaValueNow.ts +1 -1
  146. package/src/strings/ariaValueText.ts +1 -1
  147. package/src/strings/beforeunloadEvent.ts +1 -1
  148. package/src/strings/bezierEasings.ts +25 -25
  149. package/src/strings/blurEvent.ts +1 -1
  150. package/src/strings/changeEvent.ts +1 -1
  151. package/src/strings/contextmenuEvent.ts +1 -1
  152. package/src/strings/dragEvent.ts +5 -0
  153. package/src/strings/dragendEvent.ts +5 -0
  154. package/src/strings/dragenterEvent.ts +5 -0
  155. package/src/strings/dragleaveEvent.ts +5 -0
  156. package/src/strings/dragoverEvent.ts +5 -0
  157. package/src/strings/dragstartEvent.ts +5 -0
  158. package/src/strings/errorEvent.ts +1 -1
  159. package/src/strings/focusEvent.ts +1 -1
  160. package/src/strings/focusEvents.ts +1 -1
  161. package/src/strings/focusinEvent.ts +1 -1
  162. package/src/strings/focusoutEvent.ts +1 -1
  163. package/src/strings/gesturechangeEvent.ts +1 -1
  164. package/src/strings/gestureendEvent.ts +1 -1
  165. package/src/strings/gesturestartEvent.ts +1 -1
  166. package/src/strings/keyAlt.ts +1 -1
  167. package/src/strings/keyArrowDown.ts +1 -1
  168. package/src/strings/keyArrowLeft.ts +1 -1
  169. package/src/strings/keyArrowRight.ts +1 -1
  170. package/src/strings/keyArrowUp.ts +1 -1
  171. package/src/strings/keyBackspace.ts +1 -1
  172. package/src/strings/keyCapsLock.ts +1 -1
  173. package/src/strings/keyControl.ts +1 -1
  174. package/src/strings/keyDelete.ts +1 -1
  175. package/src/strings/keyEnter.ts +1 -1
  176. package/src/strings/keyEscape.ts +1 -1
  177. package/src/strings/keyInsert.ts +1 -1
  178. package/src/strings/keyMeta.ts +1 -1
  179. package/src/strings/keyNumpadEnter.ts +7 -0
  180. package/src/strings/keyPause.ts +1 -1
  181. package/src/strings/keyScrollLock.ts +1 -1
  182. package/src/strings/keyShift.ts +1 -1
  183. package/src/strings/keySpace.ts +1 -1
  184. package/src/strings/keyTab.ts +1 -1
  185. package/src/strings/keyboardEventKeys.ts +19 -19
  186. package/src/strings/keydownEvent.ts +1 -1
  187. package/src/strings/keypressEvent.ts +1 -1
  188. package/src/strings/keyupEvent.ts +1 -1
  189. package/src/strings/loadEvent.ts +1 -1
  190. package/src/strings/loadstartEvent.ts +1 -1
  191. package/src/strings/mouseClickEvents.ts +1 -1
  192. package/src/strings/mouseHoverEvents.ts +3 -3
  193. package/src/strings/mouseSwipeEvents.ts +4 -4
  194. package/src/strings/mouseclickEvent.ts +1 -1
  195. package/src/strings/mousedblclickEvent.ts +1 -1
  196. package/src/strings/mousedownEvent.ts +1 -1
  197. package/src/strings/mouseenterEvent.ts +1 -1
  198. package/src/strings/mousehoverEvent.ts +1 -1
  199. package/src/strings/mouseinEvent.ts +1 -1
  200. package/src/strings/mouseleaveEvent.ts +1 -1
  201. package/src/strings/mousemoveEvent.ts +1 -1
  202. package/src/strings/mouseoutEvent.ts +1 -1
  203. package/src/strings/mouseoverEvent.ts +1 -1
  204. package/src/strings/mouseupEvent.ts +1 -1
  205. package/src/strings/mousewheelEvent.ts +1 -1
  206. package/src/strings/moveEvent.ts +1 -1
  207. package/src/strings/offsetHeight.ts +1 -1
  208. package/src/strings/offsetWidth.ts +1 -1
  209. package/src/strings/orientationchangeEvent.ts +1 -1
  210. package/src/strings/pointercancelEvent.ts +1 -1
  211. package/src/strings/pointerdownEvent.ts +1 -1
  212. package/src/strings/pointerleaveEvent.ts +1 -1
  213. package/src/strings/pointermoveEvent.ts +1 -1
  214. package/src/strings/pointerupEvent.ts +1 -1
  215. package/src/strings/readystatechangeEvent.ts +1 -1
  216. package/src/strings/removeEventListener.ts +1 -1
  217. package/src/strings/resetEvent.ts +1 -1
  218. package/src/strings/resizeEvent.ts +1 -1
  219. package/src/strings/scrollEvent.ts +1 -1
  220. package/src/strings/scrollHeight.ts +1 -1
  221. package/src/strings/scrollWidth.ts +1 -1
  222. package/src/strings/selectEvent.ts +1 -1
  223. package/src/strings/selectendEvent.ts +1 -1
  224. package/src/strings/selectstartEvent.ts +1 -1
  225. package/src/strings/submitEvent.ts +1 -1
  226. package/src/strings/tabindex.ts +1 -1
  227. package/src/strings/touchEvents.ts +4 -4
  228. package/src/strings/touchcancelEvent.ts +1 -1
  229. package/src/strings/touchendEvent.ts +1 -1
  230. package/src/strings/touchmoveEvent.ts +1 -1
  231. package/src/strings/touchstartEvent.ts +1 -1
  232. package/src/strings/transitionDelay.ts +1 -1
  233. package/src/strings/transitionDuration.ts +1 -1
  234. package/src/strings/transitionEndEvent.ts +1 -1
  235. package/src/strings/transitionProperty.ts +1 -1
  236. package/src/strings/unloadEvent.ts +1 -1
  237. package/src/strings/userAgentData.ts +2 -2
  238. package/tsconfig.json +30 -0
  239. package/vite.config.ts +30 -0
  240. package/dist/shorty.cjs.js +0 -1592
  241. package/dist/shorty.cjs.js.map +0 -7
  242. package/dist/shorty.cjs.min.js +0 -3
  243. package/dist/shorty.cjs.min.js.map +0 -7
  244. package/dist/shorty.es5.js +0 -1593
  245. package/dist/shorty.es5.js.map +0 -7
  246. package/dist/shorty.es5.min.js +0 -4
  247. package/dist/shorty.es5.min.js.map +0 -7
  248. package/dist/shorty.min.js +0 -3
  249. package/dist/shorty.min.js.map +0 -7
  250. package/src/attr/getAttribute.js +0 -2
  251. package/src/attr/getAttribute.js.map +0 -1
  252. package/src/attr/getAttributeNS.js +0 -2
  253. package/src/attr/getAttributeNS.js.map +0 -1
  254. package/src/attr/hasAttribute.js +0 -2
  255. package/src/attr/hasAttribute.js.map +0 -1
  256. package/src/attr/hasAttributeNS.js +0 -2
  257. package/src/attr/hasAttributeNS.js.map +0 -1
  258. package/src/attr/removeAttribute.js +0 -2
  259. package/src/attr/removeAttribute.js.map +0 -1
  260. package/src/attr/removeAttributeNS.js +0 -2
  261. package/src/attr/removeAttributeNS.js.map +0 -1
  262. package/src/attr/setAttribute.js +0 -2
  263. package/src/attr/setAttribute.js.map +0 -1
  264. package/src/attr/setAttributeNS.js +0 -2
  265. package/src/attr/setAttributeNS.js.map +0 -1
  266. package/src/blocks/documentBody.js +0 -2
  267. package/src/blocks/documentBody.js.map +0 -1
  268. package/src/blocks/documentElement.js +0 -2
  269. package/src/blocks/documentElement.js.map +0 -1
  270. package/src/blocks/documentHead.js +0 -2
  271. package/src/blocks/documentHead.js.map +0 -1
  272. package/src/boolean/isApple.js +0 -7
  273. package/src/boolean/isApple.js.map +0 -1
  274. package/src/boolean/isFirefox.js +0 -3
  275. package/src/boolean/isFirefox.js.map +0 -1
  276. package/src/boolean/isMobile.js +0 -12
  277. package/src/boolean/isMobile.js.map +0 -1
  278. package/src/boolean/support3DTransform.js +0 -3
  279. package/src/boolean/support3DTransform.js.map +0 -1
  280. package/src/boolean/supportAnimation.js +0 -3
  281. package/src/boolean/supportAnimation.js.map +0 -1
  282. package/src/boolean/supportPassive.js +0 -18
  283. package/src/boolean/supportPassive.js.map +0 -1
  284. package/src/boolean/supportTouch.js +0 -2
  285. package/src/boolean/supportTouch.js.map +0 -1
  286. package/src/boolean/supportTransform.js +0 -3
  287. package/src/boolean/supportTransform.js.map +0 -1
  288. package/src/boolean/supportTransition.js +0 -3
  289. package/src/boolean/supportTransition.js.map +0 -1
  290. package/src/class/addClass.js +0 -4
  291. package/src/class/addClass.js.map +0 -1
  292. package/src/class/hasClass.js +0 -4
  293. package/src/class/hasClass.js.map +0 -1
  294. package/src/class/removeClass.js +0 -4
  295. package/src/class/removeClass.js.map +0 -1
  296. package/src/event/off.js +0 -4
  297. package/src/event/off.js.map +0 -1
  298. package/src/event/on.js +0 -4
  299. package/src/event/on.js.map +0 -1
  300. package/src/event/one.js +0 -12
  301. package/src/event/one.js.map +0 -1
  302. package/src/get/getBoundingClientRect.js +0 -22
  303. package/src/get/getBoundingClientRect.js.map +0 -1
  304. package/src/get/getDocument.js +0 -13
  305. package/src/get/getDocument.js.map +0 -1
  306. package/src/get/getDocumentBody.js +0 -5
  307. package/src/get/getDocumentBody.js.map +0 -1
  308. package/src/get/getDocumentElement.js +0 -5
  309. package/src/get/getDocumentElement.js.map +0 -1
  310. package/src/get/getDocumentHead.js +0 -5
  311. package/src/get/getDocumentHead.js.map +0 -1
  312. package/src/get/getElementAnimationDelay.js +0 -11
  313. package/src/get/getElementAnimationDelay.js.map +0 -1
  314. package/src/get/getElementAnimationDuration.js +0 -11
  315. package/src/get/getElementAnimationDuration.js.map +0 -1
  316. package/src/get/getElementStyle.js +0 -7
  317. package/src/get/getElementStyle.js.map +0 -1
  318. package/src/get/getElementTransitionDelay.js +0 -11
  319. package/src/get/getElementTransitionDelay.js.map +0 -1
  320. package/src/get/getElementTransitionDuration.js +0 -11
  321. package/src/get/getElementTransitionDuration.js.map +0 -1
  322. package/src/get/getNodeScroll.js +0 -8
  323. package/src/get/getNodeScroll.js.map +0 -1
  324. package/src/get/getParentNode.js +0 -14
  325. package/src/get/getParentNode.js.map +0 -1
  326. package/src/get/getRectRelativeToOffsetParent.js +0 -20
  327. package/src/get/getRectRelativeToOffsetParent.js.map +0 -1
  328. package/src/get/getUID.js +0 -31
  329. package/src/get/getUID.js.map +0 -1
  330. package/src/get/getWindow.js +0 -12
  331. package/src/get/getWindow.js.map +0 -1
  332. package/src/index.js +0 -416
  333. package/src/index.js.map +0 -1
  334. package/src/interface/boundingClientRect.js +0 -1
  335. package/src/interface/boundingClientRect.js.map +0 -1
  336. package/src/interface/css4Declaration.js +0 -1
  337. package/src/interface/css4Declaration.js.map +0 -1
  338. package/src/interface/css4Declaration.ts +0 -3
  339. package/src/interface/customElement.js +0 -1
  340. package/src/interface/customElement.js.map +0 -1
  341. package/src/interface/navigatorUA.js +0 -1
  342. package/src/interface/navigatorUA.js.map +0 -1
  343. package/src/interface/offsetRect.js +0 -1
  344. package/src/interface/offsetRect.js.map +0 -1
  345. package/src/interface/originalEvent.js +0 -1
  346. package/src/interface/originalEvent.js.map +0 -1
  347. package/src/interface/originalEvent.ts +0 -3
  348. package/src/is/isArray.js +0 -2
  349. package/src/is/isArray.js.map +0 -1
  350. package/src/is/isCanvas.js +0 -2
  351. package/src/is/isCanvas.js.map +0 -1
  352. package/src/is/isCustomElement.js +0 -2
  353. package/src/is/isCustomElement.js.map +0 -1
  354. package/src/is/isDocument.js +0 -2
  355. package/src/is/isDocument.js.map +0 -1
  356. package/src/is/isElement.js +0 -2
  357. package/src/is/isElement.js.map +0 -1
  358. package/src/is/isElementInScrollRange.js +0 -11
  359. package/src/is/isElementInScrollRange.js.map +0 -1
  360. package/src/is/isElementInViewport.js +0 -11
  361. package/src/is/isElementInViewport.js.map +0 -1
  362. package/src/is/isElementsArray.js +0 -4
  363. package/src/is/isElementsArray.js.map +0 -1
  364. package/src/is/isFunction.js +0 -2
  365. package/src/is/isFunction.js.map +0 -1
  366. package/src/is/isHTMLCollection.js +0 -2
  367. package/src/is/isHTMLCollection.js.map +0 -1
  368. package/src/is/isHTMLElement.js +0 -2
  369. package/src/is/isHTMLElement.js.map +0 -1
  370. package/src/is/isHTMLImageElement.js +0 -2
  371. package/src/is/isHTMLImageElement.js.map +0 -1
  372. package/src/is/isMap.js +0 -2
  373. package/src/is/isMap.js.map +0 -1
  374. package/src/is/isMedia.js +0 -5
  375. package/src/is/isMedia.js.map +0 -1
  376. package/src/is/isNode.js +0 -2
  377. package/src/is/isNode.js.map +0 -1
  378. package/src/is/isNodeList.js +0 -2
  379. package/src/is/isNodeList.js.map +0 -1
  380. package/src/is/isNumber.js +0 -2
  381. package/src/is/isNumber.js.map +0 -1
  382. package/src/is/isObject.js +0 -2
  383. package/src/is/isObject.js.map +0 -1
  384. package/src/is/isRTL.js +0 -3
  385. package/src/is/isRTL.js.map +0 -1
  386. package/src/is/isSVGElement.js +0 -2
  387. package/src/is/isSVGElement.js.map +0 -1
  388. package/src/is/isScaledElement.js +0 -9
  389. package/src/is/isScaledElement.js.map +0 -1
  390. package/src/is/isShadowRoot.js +0 -2
  391. package/src/is/isShadowRoot.js.map +0 -1
  392. package/src/is/isString.js +0 -2
  393. package/src/is/isString.js.map +0 -1
  394. package/src/is/isTableElement.js +0 -2
  395. package/src/is/isTableElement.js.map +0 -1
  396. package/src/is/isWeakMap.js +0 -2
  397. package/src/is/isWeakMap.js.map +0 -1
  398. package/src/is/isWindow.js +0 -2
  399. package/src/is/isWindow.js.map +0 -1
  400. package/src/misc/ArrayFrom.js +0 -2
  401. package/src/misc/ArrayFrom.js.map +0 -1
  402. package/src/misc/Float32ArrayFrom.js +0 -2
  403. package/src/misc/Float32ArrayFrom.js.map +0 -1
  404. package/src/misc/Float64ArrayFrom.js +0 -2
  405. package/src/misc/Float64ArrayFrom.js.map +0 -1
  406. package/src/misc/ObjectAssign.js +0 -2
  407. package/src/misc/ObjectAssign.js.map +0 -1
  408. package/src/misc/ObjectEntries.js +0 -2
  409. package/src/misc/ObjectEntries.js.map +0 -1
  410. package/src/misc/ObjectKeys.js +0 -2
  411. package/src/misc/ObjectKeys.js.map +0 -1
  412. package/src/misc/ObjectValues.js +0 -2
  413. package/src/misc/ObjectValues.js.map +0 -1
  414. package/src/misc/OriginalEvent.js +0 -13
  415. package/src/misc/OriginalEvent.js.map +0 -1
  416. package/src/misc/createElement.js +0 -24
  417. package/src/misc/createElement.js.map +0 -1
  418. package/src/misc/createElementNS.js +0 -24
  419. package/src/misc/createElementNS.js.map +0 -1
  420. package/src/misc/data.js +0 -35
  421. package/src/misc/data.js.map +0 -1
  422. package/src/misc/dispatchEvent.js +0 -2
  423. package/src/misc/dispatchEvent.js.map +0 -1
  424. package/src/misc/distinct.js +0 -2
  425. package/src/misc/distinct.js.map +0 -1
  426. package/src/misc/emulateAnimationEnd.js +0 -28
  427. package/src/misc/emulateAnimationEnd.js.map +0 -1
  428. package/src/misc/emulateTransitionEnd.js +0 -28
  429. package/src/misc/emulateTransitionEnd.js.map +0 -1
  430. package/src/misc/focus.js +0 -2
  431. package/src/misc/focus.js.map +0 -1
  432. package/src/misc/noop.js +0 -2
  433. package/src/misc/noop.js.map +0 -1
  434. package/src/misc/normalizeOptions.js +0 -33
  435. package/src/misc/normalizeOptions.js.map +0 -1
  436. package/src/misc/normalizeValue.js +0 -16
  437. package/src/misc/normalizeValue.js.map +0 -1
  438. package/src/misc/passiveHandler.js +0 -2
  439. package/src/misc/passiveHandler.js.map +0 -1
  440. package/src/misc/reflow.js +0 -2
  441. package/src/misc/reflow.js.map +0 -1
  442. package/src/misc/setElementStyle.js +0 -15
  443. package/src/misc/setElementStyle.js.map +0 -1
  444. package/src/misc/timer.js +0 -50
  445. package/src/misc/timer.js.map +0 -1
  446. package/src/misc/toLowerCase.js +0 -2
  447. package/src/misc/toLowerCase.js.map +0 -1
  448. package/src/misc/toUpperCase.js +0 -2
  449. package/src/misc/toUpperCase.js.map +0 -1
  450. package/src/selectors/closest.js +0 -7
  451. package/src/selectors/closest.js.map +0 -1
  452. package/src/selectors/getCustomElements.js +0 -7
  453. package/src/selectors/getCustomElements.js.map +0 -1
  454. package/src/selectors/getElementById.js +0 -5
  455. package/src/selectors/getElementById.js.map +0 -1
  456. package/src/selectors/getElementsByClassName.js +0 -7
  457. package/src/selectors/getElementsByClassName.js.map +0 -1
  458. package/src/selectors/getElementsByTagName.js +0 -7
  459. package/src/selectors/getElementsByTagName.js.map +0 -1
  460. package/src/selectors/matches.js +0 -2
  461. package/src/selectors/matches.js.map +0 -1
  462. package/src/selectors/querySelector.js +0 -10
  463. package/src/selectors/querySelector.js.map +0 -1
  464. package/src/selectors/querySelectorAll.js +0 -7
  465. package/src/selectors/querySelectorAll.js.map +0 -1
  466. package/src/strings/DOMContentLoadedEvent.js +0 -2
  467. package/src/strings/DOMContentLoadedEvent.js.map +0 -1
  468. package/src/strings/DOMMouseScrollEvent.js +0 -2
  469. package/src/strings/DOMMouseScrollEvent.js.map +0 -1
  470. package/src/strings/abortEvent.js +0 -2
  471. package/src/strings/abortEvent.js.map +0 -1
  472. package/src/strings/addEventListener.js +0 -2
  473. package/src/strings/addEventListener.js.map +0 -1
  474. package/src/strings/animationDelay.js +0 -2
  475. package/src/strings/animationDelay.js.map +0 -1
  476. package/src/strings/animationDuration.js +0 -2
  477. package/src/strings/animationDuration.js.map +0 -1
  478. package/src/strings/animationEndEvent.js +0 -2
  479. package/src/strings/animationEndEvent.js.map +0 -1
  480. package/src/strings/animationName.js +0 -2
  481. package/src/strings/animationName.js.map +0 -1
  482. package/src/strings/ariaChecked.js +0 -2
  483. package/src/strings/ariaChecked.js.map +0 -1
  484. package/src/strings/ariaDescribedBy.js +0 -2
  485. package/src/strings/ariaDescribedBy.js.map +0 -1
  486. package/src/strings/ariaDescription.js +0 -2
  487. package/src/strings/ariaDescription.js.map +0 -1
  488. package/src/strings/ariaExpanded.js +0 -2
  489. package/src/strings/ariaExpanded.js.map +0 -1
  490. package/src/strings/ariaHasPopup.js +0 -2
  491. package/src/strings/ariaHasPopup.js.map +0 -1
  492. package/src/strings/ariaHidden.js +0 -2
  493. package/src/strings/ariaHidden.js.map +0 -1
  494. package/src/strings/ariaLabel.js +0 -2
  495. package/src/strings/ariaLabel.js.map +0 -1
  496. package/src/strings/ariaLabelledBy.js +0 -2
  497. package/src/strings/ariaLabelledBy.js.map +0 -1
  498. package/src/strings/ariaModal.js +0 -2
  499. package/src/strings/ariaModal.js.map +0 -1
  500. package/src/strings/ariaPressed.js +0 -2
  501. package/src/strings/ariaPressed.js.map +0 -1
  502. package/src/strings/ariaSelected.js +0 -2
  503. package/src/strings/ariaSelected.js.map +0 -1
  504. package/src/strings/ariaValueMax.js +0 -2
  505. package/src/strings/ariaValueMax.js.map +0 -1
  506. package/src/strings/ariaValueMin.js +0 -2
  507. package/src/strings/ariaValueMin.js.map +0 -1
  508. package/src/strings/ariaValueNow.js +0 -2
  509. package/src/strings/ariaValueNow.js.map +0 -1
  510. package/src/strings/ariaValueText.js +0 -2
  511. package/src/strings/ariaValueText.js.map +0 -1
  512. package/src/strings/beforeunloadEvent.js +0 -2
  513. package/src/strings/beforeunloadEvent.js.map +0 -1
  514. package/src/strings/bezierEasings.js +0 -28
  515. package/src/strings/bezierEasings.js.map +0 -1
  516. package/src/strings/blurEvent.js +0 -2
  517. package/src/strings/blurEvent.js.map +0 -1
  518. package/src/strings/changeEvent.js +0 -2
  519. package/src/strings/changeEvent.js.map +0 -1
  520. package/src/strings/contextmenuEvent.js +0 -2
  521. package/src/strings/contextmenuEvent.js.map +0 -1
  522. package/src/strings/errorEvent.js +0 -2
  523. package/src/strings/errorEvent.js.map +0 -1
  524. package/src/strings/focusEvent.js +0 -2
  525. package/src/strings/focusEvent.js.map +0 -1
  526. package/src/strings/focusEvents.js +0 -2
  527. package/src/strings/focusEvents.js.map +0 -1
  528. package/src/strings/focusinEvent.js +0 -2
  529. package/src/strings/focusinEvent.js.map +0 -1
  530. package/src/strings/focusoutEvent.js +0 -2
  531. package/src/strings/focusoutEvent.js.map +0 -1
  532. package/src/strings/gesturechangeEvent.js +0 -2
  533. package/src/strings/gesturechangeEvent.js.map +0 -1
  534. package/src/strings/gestureendEvent.js +0 -2
  535. package/src/strings/gestureendEvent.js.map +0 -1
  536. package/src/strings/gesturestartEvent.js +0 -2
  537. package/src/strings/gesturestartEvent.js.map +0 -1
  538. package/src/strings/keyAlt.js +0 -2
  539. package/src/strings/keyAlt.js.map +0 -1
  540. package/src/strings/keyArrowDown.js +0 -2
  541. package/src/strings/keyArrowDown.js.map +0 -1
  542. package/src/strings/keyArrowLeft.js +0 -2
  543. package/src/strings/keyArrowLeft.js.map +0 -1
  544. package/src/strings/keyArrowRight.js +0 -2
  545. package/src/strings/keyArrowRight.js.map +0 -1
  546. package/src/strings/keyArrowUp.js +0 -2
  547. package/src/strings/keyArrowUp.js.map +0 -1
  548. package/src/strings/keyBackspace.js +0 -2
  549. package/src/strings/keyBackspace.js.map +0 -1
  550. package/src/strings/keyCapsLock.js +0 -2
  551. package/src/strings/keyCapsLock.js.map +0 -1
  552. package/src/strings/keyControl.js +0 -2
  553. package/src/strings/keyControl.js.map +0 -1
  554. package/src/strings/keyDelete.js +0 -2
  555. package/src/strings/keyDelete.js.map +0 -1
  556. package/src/strings/keyEnter.js +0 -2
  557. package/src/strings/keyEnter.js.map +0 -1
  558. package/src/strings/keyEscape.js +0 -2
  559. package/src/strings/keyEscape.js.map +0 -1
  560. package/src/strings/keyInsert.js +0 -2
  561. package/src/strings/keyInsert.js.map +0 -1
  562. package/src/strings/keyMeta.js +0 -2
  563. package/src/strings/keyMeta.js.map +0 -1
  564. package/src/strings/keyPause.js +0 -2
  565. package/src/strings/keyPause.js.map +0 -1
  566. package/src/strings/keyScrollLock.js +0 -2
  567. package/src/strings/keyScrollLock.js.map +0 -1
  568. package/src/strings/keyShift.js +0 -2
  569. package/src/strings/keyShift.js.map +0 -1
  570. package/src/strings/keySpace.js +0 -2
  571. package/src/strings/keySpace.js.map +0 -1
  572. package/src/strings/keyTab.js +0 -2
  573. package/src/strings/keyTab.js.map +0 -1
  574. package/src/strings/keyboardEventKeys.js +0 -22
  575. package/src/strings/keyboardEventKeys.js.map +0 -1
  576. package/src/strings/keydownEvent.js +0 -2
  577. package/src/strings/keydownEvent.js.map +0 -1
  578. package/src/strings/keypressEvent.js +0 -2
  579. package/src/strings/keypressEvent.js.map +0 -1
  580. package/src/strings/keyupEvent.js +0 -2
  581. package/src/strings/keyupEvent.js.map +0 -1
  582. package/src/strings/loadEvent.js +0 -2
  583. package/src/strings/loadEvent.js.map +0 -1
  584. package/src/strings/loadstartEvent.js +0 -2
  585. package/src/strings/loadstartEvent.js.map +0 -1
  586. package/src/strings/mouseClickEvents.js +0 -2
  587. package/src/strings/mouseClickEvents.js.map +0 -1
  588. package/src/strings/mouseHoverEvents.js +0 -4
  589. package/src/strings/mouseHoverEvents.js.map +0 -1
  590. package/src/strings/mouseSwipeEvents.js +0 -7
  591. package/src/strings/mouseSwipeEvents.js.map +0 -1
  592. package/src/strings/mouseclickEvent.js +0 -2
  593. package/src/strings/mouseclickEvent.js.map +0 -1
  594. package/src/strings/mousedblclickEvent.js +0 -2
  595. package/src/strings/mousedblclickEvent.js.map +0 -1
  596. package/src/strings/mousedownEvent.js +0 -2
  597. package/src/strings/mousedownEvent.js.map +0 -1
  598. package/src/strings/mouseenterEvent.js +0 -2
  599. package/src/strings/mouseenterEvent.js.map +0 -1
  600. package/src/strings/mousehoverEvent.js +0 -2
  601. package/src/strings/mousehoverEvent.js.map +0 -1
  602. package/src/strings/mouseinEvent.js +0 -2
  603. package/src/strings/mouseinEvent.js.map +0 -1
  604. package/src/strings/mouseleaveEvent.js +0 -2
  605. package/src/strings/mouseleaveEvent.js.map +0 -1
  606. package/src/strings/mousemoveEvent.js +0 -2
  607. package/src/strings/mousemoveEvent.js.map +0 -1
  608. package/src/strings/mouseoutEvent.js +0 -2
  609. package/src/strings/mouseoutEvent.js.map +0 -1
  610. package/src/strings/mouseoverEvent.js +0 -2
  611. package/src/strings/mouseoverEvent.js.map +0 -1
  612. package/src/strings/mouseupEvent.js +0 -2
  613. package/src/strings/mouseupEvent.js.map +0 -1
  614. package/src/strings/mousewheelEvent.js +0 -2
  615. package/src/strings/mousewheelEvent.js.map +0 -1
  616. package/src/strings/moveEvent.js +0 -2
  617. package/src/strings/moveEvent.js.map +0 -1
  618. package/src/strings/nativeEvents.js +0 -103
  619. package/src/strings/nativeEvents.js.map +0 -1
  620. package/src/strings/offsetHeight.js +0 -2
  621. package/src/strings/offsetHeight.js.map +0 -1
  622. package/src/strings/offsetWidth.js +0 -2
  623. package/src/strings/offsetWidth.js.map +0 -1
  624. package/src/strings/orientationchangeEvent.js +0 -2
  625. package/src/strings/orientationchangeEvent.js.map +0 -1
  626. package/src/strings/pointercancelEvent.js +0 -2
  627. package/src/strings/pointercancelEvent.js.map +0 -1
  628. package/src/strings/pointerdownEvent.js +0 -2
  629. package/src/strings/pointerdownEvent.js.map +0 -1
  630. package/src/strings/pointerleaveEvent.js +0 -2
  631. package/src/strings/pointerleaveEvent.js.map +0 -1
  632. package/src/strings/pointermoveEvent.js +0 -2
  633. package/src/strings/pointermoveEvent.js.map +0 -1
  634. package/src/strings/pointerupEvent.js +0 -2
  635. package/src/strings/pointerupEvent.js.map +0 -1
  636. package/src/strings/readystatechangeEvent.js +0 -2
  637. package/src/strings/readystatechangeEvent.js.map +0 -1
  638. package/src/strings/removeEventListener.js +0 -2
  639. package/src/strings/removeEventListener.js.map +0 -1
  640. package/src/strings/resetEvent.js +0 -2
  641. package/src/strings/resetEvent.js.map +0 -1
  642. package/src/strings/resizeEvent.js +0 -2
  643. package/src/strings/resizeEvent.js.map +0 -1
  644. package/src/strings/scrollEvent.js +0 -2
  645. package/src/strings/scrollEvent.js.map +0 -1
  646. package/src/strings/scrollHeight.js +0 -2
  647. package/src/strings/scrollHeight.js.map +0 -1
  648. package/src/strings/scrollWidth.js +0 -2
  649. package/src/strings/scrollWidth.js.map +0 -1
  650. package/src/strings/selectEvent.js +0 -2
  651. package/src/strings/selectEvent.js.map +0 -1
  652. package/src/strings/selectendEvent.js +0 -2
  653. package/src/strings/selectendEvent.js.map +0 -1
  654. package/src/strings/selectstartEvent.js +0 -2
  655. package/src/strings/selectstartEvent.js.map +0 -1
  656. package/src/strings/submitEvent.js +0 -2
  657. package/src/strings/submitEvent.js.map +0 -1
  658. package/src/strings/tabindex.js +0 -2
  659. package/src/strings/tabindex.js.map +0 -1
  660. package/src/strings/touchEvents.js +0 -7
  661. package/src/strings/touchEvents.js.map +0 -1
  662. package/src/strings/touchcancelEvent.js +0 -2
  663. package/src/strings/touchcancelEvent.js.map +0 -1
  664. package/src/strings/touchendEvent.js +0 -2
  665. package/src/strings/touchendEvent.js.map +0 -1
  666. package/src/strings/touchmoveEvent.js +0 -2
  667. package/src/strings/touchmoveEvent.js.map +0 -1
  668. package/src/strings/touchstartEvent.js +0 -2
  669. package/src/strings/touchstartEvent.js.map +0 -1
  670. package/src/strings/transitionDelay.js +0 -2
  671. package/src/strings/transitionDelay.js.map +0 -1
  672. package/src/strings/transitionDuration.js +0 -2
  673. package/src/strings/transitionDuration.js.map +0 -1
  674. package/src/strings/transitionEndEvent.js +0 -2
  675. package/src/strings/transitionEndEvent.js.map +0 -1
  676. package/src/strings/transitionProperty.js +0 -2
  677. package/src/strings/transitionProperty.js.map +0 -1
  678. package/src/strings/unloadEvent.js +0 -2
  679. package/src/strings/unloadEvent.js.map +0 -1
  680. package/src/strings/userAgent.js +0 -3
  681. package/src/strings/userAgent.js.map +0 -1
  682. package/src/strings/userAgentData.js +0 -3
  683. package/src/strings/userAgentData.js.map +0 -1
  684. package/src/types.js +0 -1
  685. package/src/types.js.map +0 -1
  686. package/src/types.ts +0 -1
  687. package/types/attr/getAttribute.d.ts +0 -2
  688. package/types/attr/getAttributeNS.d.ts +0 -2
  689. package/types/attr/hasAttribute.d.ts +0 -2
  690. package/types/attr/hasAttributeNS.d.ts +0 -2
  691. package/types/attr/removeAttribute.d.ts +0 -2
  692. package/types/attr/removeAttributeNS.d.ts +0 -2
  693. package/types/attr/setAttribute.d.ts +0 -2
  694. package/types/attr/setAttributeNS.d.ts +0 -2
  695. package/types/blocks/documentBody.d.ts +0 -2
  696. package/types/blocks/documentElement.d.ts +0 -2
  697. package/types/blocks/documentHead.d.ts +0 -2
  698. package/types/boolean/isApple.d.ts +0 -2
  699. package/types/boolean/isFirefox.d.ts +0 -2
  700. package/types/boolean/isMobile.d.ts +0 -2
  701. package/types/boolean/support3DTransform.d.ts +0 -2
  702. package/types/boolean/supportAnimation.d.ts +0 -2
  703. package/types/boolean/supportPassive.d.ts +0 -2
  704. package/types/boolean/supportTouch.d.ts +0 -2
  705. package/types/boolean/supportTransform.d.ts +0 -2
  706. package/types/boolean/supportTransition.d.ts +0 -2
  707. package/types/class/addClass.d.ts +0 -2
  708. package/types/class/hasClass.d.ts +0 -2
  709. package/types/class/removeClass.d.ts +0 -2
  710. package/types/event/off.d.ts +0 -1
  711. package/types/event/on.d.ts +0 -1
  712. package/types/event/one.d.ts +0 -2
  713. package/types/get/getBoundingClientRect.d.ts +0 -3
  714. package/types/get/getDocument.d.ts +0 -2
  715. package/types/get/getDocumentBody.d.ts +0 -2
  716. package/types/get/getDocumentElement.d.ts +0 -2
  717. package/types/get/getDocumentHead.d.ts +0 -2
  718. package/types/get/getElementAnimationDelay.d.ts +0 -2
  719. package/types/get/getElementAnimationDuration.d.ts +0 -2
  720. package/types/get/getElementStyle.d.ts +0 -2
  721. package/types/get/getElementTransitionDelay.d.ts +0 -2
  722. package/types/get/getElementTransitionDuration.d.ts +0 -2
  723. package/types/get/getNodeScroll.d.ts +0 -5
  724. package/types/get/getParentNode.d.ts +0 -2
  725. package/types/get/getRectRelativeToOffsetParent.d.ts +0 -6
  726. package/types/get/getUID.d.ts +0 -2
  727. package/types/get/getWindow.d.ts +0 -2
  728. package/types/index.d.ts +0 -351
  729. package/types/interface/boundingClientRect.d.ts +0 -10
  730. package/types/interface/css4Declaration.d.ts +0 -3
  731. package/types/interface/customElement.d.ts +0 -8
  732. package/types/interface/navigatorUA.d.ts +0 -12
  733. package/types/interface/offsetRect.d.ts +0 -6
  734. package/types/interface/originalEvent.d.ts +0 -3
  735. package/types/is/isArray.d.ts +0 -2
  736. package/types/is/isCanvas.d.ts +0 -2
  737. package/types/is/isCustomElement.d.ts +0 -3
  738. package/types/is/isDocument.d.ts +0 -2
  739. package/types/is/isElement.d.ts +0 -2
  740. package/types/is/isElementInScrollRange.d.ts +0 -2
  741. package/types/is/isElementInViewport.d.ts +0 -2
  742. package/types/is/isElementsArray.d.ts +0 -2
  743. package/types/is/isFunction.d.ts +0 -2
  744. package/types/is/isHTMLCollection.d.ts +0 -2
  745. package/types/is/isHTMLElement.d.ts +0 -2
  746. package/types/is/isHTMLImageElement.d.ts +0 -2
  747. package/types/is/isMap.d.ts +0 -2
  748. package/types/is/isMedia.d.ts +0 -2
  749. package/types/is/isNode.d.ts +0 -2
  750. package/types/is/isNodeList.d.ts +0 -2
  751. package/types/is/isNumber.d.ts +0 -2
  752. package/types/is/isObject.d.ts +0 -2
  753. package/types/is/isRTL.d.ts +0 -2
  754. package/types/is/isSVGElement.d.ts +0 -2
  755. package/types/is/isScaledElement.d.ts +0 -1
  756. package/types/is/isShadowRoot.d.ts +0 -2
  757. package/types/is/isString.d.ts +0 -2
  758. package/types/is/isTableElement.d.ts +0 -2
  759. package/types/is/isWeakMap.d.ts +0 -2
  760. package/types/is/isWindow.d.ts +0 -2
  761. package/types/misc/ArrayFrom.d.ts +0 -2
  762. package/types/misc/Float32ArrayFrom.d.ts +0 -2
  763. package/types/misc/Float64ArrayFrom.d.ts +0 -2
  764. package/types/misc/ObjectAssign.d.ts +0 -2
  765. package/types/misc/ObjectEntries.d.ts +0 -2
  766. package/types/misc/ObjectKeys.d.ts +0 -2
  767. package/types/misc/ObjectValues.d.ts +0 -2
  768. package/types/misc/OriginalEvent.d.ts +0 -3
  769. package/types/misc/createElement.d.ts +0 -2
  770. package/types/misc/createElementNS.d.ts +0 -2
  771. package/types/misc/data.d.ts +0 -10
  772. package/types/misc/dispatchEvent.d.ts +0 -2
  773. package/types/misc/distinct.d.ts +0 -2
  774. package/types/misc/emulateAnimationEnd.d.ts +0 -2
  775. package/types/misc/emulateTransitionEnd.d.ts +0 -2
  776. package/types/misc/focus.d.ts +0 -2
  777. package/types/misc/noop.d.ts +0 -2
  778. package/types/misc/normalizeOptions.d.ts +0 -5
  779. package/types/misc/normalizeValue.d.ts +0 -3
  780. package/types/misc/passiveHandler.d.ts +0 -2
  781. package/types/misc/reflow.d.ts +0 -2
  782. package/types/misc/setElementStyle.d.ts +0 -3
  783. package/types/misc/timer.d.ts +0 -6
  784. package/types/misc/toLowerCase.d.ts +0 -2
  785. package/types/misc/toUpperCase.d.ts +0 -2
  786. package/types/selectors/closest.d.ts +0 -2
  787. package/types/selectors/getCustomElements.d.ts +0 -3
  788. package/types/selectors/getElementById.d.ts +0 -2
  789. package/types/selectors/getElementsByClassName.d.ts +0 -2
  790. package/types/selectors/getElementsByTagName.d.ts +0 -2
  791. package/types/selectors/matches.d.ts +0 -2
  792. package/types/selectors/querySelector.d.ts +0 -2
  793. package/types/selectors/querySelectorAll.d.ts +0 -2
  794. package/types/strings/DOMContentLoadedEvent.d.ts +0 -2
  795. package/types/strings/DOMMouseScrollEvent.d.ts +0 -2
  796. package/types/strings/abortEvent.d.ts +0 -2
  797. package/types/strings/addEventListener.d.ts +0 -2
  798. package/types/strings/animationDelay.d.ts +0 -2
  799. package/types/strings/animationDuration.d.ts +0 -2
  800. package/types/strings/animationEndEvent.d.ts +0 -2
  801. package/types/strings/animationName.d.ts +0 -2
  802. package/types/strings/ariaChecked.d.ts +0 -2
  803. package/types/strings/ariaDescribedBy.d.ts +0 -2
  804. package/types/strings/ariaDescription.d.ts +0 -2
  805. package/types/strings/ariaExpanded.d.ts +0 -2
  806. package/types/strings/ariaHasPopup.d.ts +0 -2
  807. package/types/strings/ariaHidden.d.ts +0 -2
  808. package/types/strings/ariaLabel.d.ts +0 -2
  809. package/types/strings/ariaLabelledBy.d.ts +0 -2
  810. package/types/strings/ariaModal.d.ts +0 -2
  811. package/types/strings/ariaPressed.d.ts +0 -2
  812. package/types/strings/ariaSelected.d.ts +0 -2
  813. package/types/strings/ariaValueMax.d.ts +0 -2
  814. package/types/strings/ariaValueMin.d.ts +0 -2
  815. package/types/strings/ariaValueNow.d.ts +0 -2
  816. package/types/strings/ariaValueText.d.ts +0 -2
  817. package/types/strings/beforeunloadEvent.d.ts +0 -2
  818. package/types/strings/bezierEasings.d.ts +0 -28
  819. package/types/strings/blurEvent.d.ts +0 -2
  820. package/types/strings/changeEvent.d.ts +0 -2
  821. package/types/strings/contextmenuEvent.d.ts +0 -2
  822. package/types/strings/errorEvent.d.ts +0 -2
  823. package/types/strings/focusEvent.d.ts +0 -2
  824. package/types/strings/focusEvents.d.ts +0 -5
  825. package/types/strings/focusinEvent.d.ts +0 -2
  826. package/types/strings/focusoutEvent.d.ts +0 -2
  827. package/types/strings/gesturechangeEvent.d.ts +0 -2
  828. package/types/strings/gestureendEvent.d.ts +0 -2
  829. package/types/strings/gesturestartEvent.d.ts +0 -2
  830. package/types/strings/keyAlt.d.ts +0 -2
  831. package/types/strings/keyArrowDown.d.ts +0 -2
  832. package/types/strings/keyArrowLeft.d.ts +0 -2
  833. package/types/strings/keyArrowRight.d.ts +0 -2
  834. package/types/strings/keyArrowUp.d.ts +0 -2
  835. package/types/strings/keyBackspace.d.ts +0 -2
  836. package/types/strings/keyCapsLock.d.ts +0 -2
  837. package/types/strings/keyControl.d.ts +0 -2
  838. package/types/strings/keyDelete.d.ts +0 -2
  839. package/types/strings/keyEnter.d.ts +0 -2
  840. package/types/strings/keyEscape.d.ts +0 -2
  841. package/types/strings/keyInsert.d.ts +0 -2
  842. package/types/strings/keyMeta.d.ts +0 -2
  843. package/types/strings/keyPause.d.ts +0 -2
  844. package/types/strings/keyScrollLock.d.ts +0 -2
  845. package/types/strings/keyShift.d.ts +0 -2
  846. package/types/strings/keySpace.d.ts +0 -2
  847. package/types/strings/keyTab.d.ts +0 -2
  848. package/types/strings/keyboardEventKeys.d.ts +0 -22
  849. package/types/strings/keydownEvent.d.ts +0 -2
  850. package/types/strings/keypressEvent.d.ts +0 -2
  851. package/types/strings/keyupEvent.d.ts +0 -2
  852. package/types/strings/loadEvent.d.ts +0 -2
  853. package/types/strings/loadstartEvent.d.ts +0 -2
  854. package/types/strings/mouseClickEvents.d.ts +0 -5
  855. package/types/strings/mouseHoverEvents.d.ts +0 -2
  856. package/types/strings/mouseSwipeEvents.d.ts +0 -7
  857. package/types/strings/mouseclickEvent.d.ts +0 -2
  858. package/types/strings/mousedblclickEvent.d.ts +0 -2
  859. package/types/strings/mousedownEvent.d.ts +0 -2
  860. package/types/strings/mouseenterEvent.d.ts +0 -2
  861. package/types/strings/mousehoverEvent.d.ts +0 -2
  862. package/types/strings/mouseinEvent.d.ts +0 -2
  863. package/types/strings/mouseleaveEvent.d.ts +0 -2
  864. package/types/strings/mousemoveEvent.d.ts +0 -2
  865. package/types/strings/mouseoutEvent.d.ts +0 -2
  866. package/types/strings/mouseoverEvent.d.ts +0 -2
  867. package/types/strings/mouseupEvent.d.ts +0 -2
  868. package/types/strings/mousewheelEvent.d.ts +0 -2
  869. package/types/strings/moveEvent.d.ts +0 -2
  870. package/types/strings/nativeEvents.d.ts +0 -53
  871. package/types/strings/offsetHeight.d.ts +0 -2
  872. package/types/strings/offsetWidth.d.ts +0 -2
  873. package/types/strings/orientationchangeEvent.d.ts +0 -2
  874. package/types/strings/pointercancelEvent.d.ts +0 -2
  875. package/types/strings/pointerdownEvent.d.ts +0 -2
  876. package/types/strings/pointerleaveEvent.d.ts +0 -2
  877. package/types/strings/pointermoveEvent.d.ts +0 -2
  878. package/types/strings/pointerupEvent.d.ts +0 -2
  879. package/types/strings/readystatechangeEvent.d.ts +0 -2
  880. package/types/strings/removeEventListener.d.ts +0 -2
  881. package/types/strings/resetEvent.d.ts +0 -2
  882. package/types/strings/resizeEvent.d.ts +0 -2
  883. package/types/strings/scrollEvent.d.ts +0 -2
  884. package/types/strings/scrollHeight.d.ts +0 -2
  885. package/types/strings/scrollWidth.d.ts +0 -2
  886. package/types/strings/selectEvent.d.ts +0 -2
  887. package/types/strings/selectendEvent.d.ts +0 -2
  888. package/types/strings/selectstartEvent.d.ts +0 -2
  889. package/types/strings/submitEvent.d.ts +0 -2
  890. package/types/strings/tabindex.d.ts +0 -2
  891. package/types/strings/touchEvents.d.ts +0 -7
  892. package/types/strings/touchcancelEvent.d.ts +0 -2
  893. package/types/strings/touchendEvent.d.ts +0 -2
  894. package/types/strings/touchmoveEvent.d.ts +0 -2
  895. package/types/strings/touchstartEvent.d.ts +0 -2
  896. package/types/strings/transitionDelay.d.ts +0 -2
  897. package/types/strings/transitionDuration.d.ts +0 -2
  898. package/types/strings/transitionEndEvent.d.ts +0 -2
  899. package/types/strings/transitionProperty.d.ts +0 -2
  900. package/types/strings/unloadEvent.d.ts +0 -2
  901. package/types/strings/userAgent.d.ts +0 -2
  902. package/types/strings/userAgentData.d.ts +0 -3
  903. package/types/types.d.ts +0 -1
@@ -0,0 +1,1700 @@
1
+ /**
2
+ * A global namespace for aria-checked.
3
+ */
4
+ export declare const ariaChecked = "aria-checked";
5
+ /**
6
+ * A global namespace for aria-description.
7
+ */
8
+ export declare const ariaDescription = "aria-description";
9
+ /**
10
+ * A global namespace for aria-describedby.
11
+ */
12
+ export declare const ariaDescribedBy = "aria-describedby";
13
+ /**
14
+ * A global namespace for aria-expanded.
15
+ */
16
+ export declare const ariaExpanded = "aria-expanded";
17
+ /**
18
+ * A global namespace for aria-haspopup.
19
+ */
20
+ export declare const ariaHasPopup = "aria-haspopup";
21
+ /**
22
+ * A global namespace for aria-hidden.
23
+ */
24
+ export declare const ariaHidden = "aria-hidden";
25
+ /**
26
+ * A global namespace for aria-label.
27
+ */
28
+ export declare const ariaLabel = "aria-label";
29
+ /**
30
+ * A global namespace for aria-labelledby.
31
+ */
32
+ export declare const ariaLabelledBy = "aria-labelledby";
33
+ /**
34
+ * A global namespace for aria-modal.
35
+ */
36
+ export declare const ariaModal = "aria-modal";
37
+ /**
38
+ * A global namespace for aria-pressed.
39
+ */
40
+ export declare const ariaPressed = "aria-pressed";
41
+ /**
42
+ * A global namespace for aria-selected.
43
+ */
44
+ export declare const ariaSelected = "aria-selected";
45
+ /**
46
+ * A global namespace for aria-valuemin.
47
+ */
48
+ export declare const ariaValueMin = "aria-valuemin";
49
+ /**
50
+ * A global namespace for aria-valuemax.
51
+ */
52
+ export declare const ariaValueMax = "aria-valuemax";
53
+ /**
54
+ * A global namespace for aria-valuenow.
55
+ */
56
+ export declare const ariaValueNow = "aria-valuenow";
57
+ /**
58
+ * A global namespace for aria-valuetext.
59
+ */
60
+ export declare const ariaValueText = "aria-valuetext";
61
+ /**
62
+ * A global namespace for all browser native events.
63
+ */
64
+ export declare const nativeEvents: {
65
+ DOMContentLoaded: string;
66
+ DOMMouseScroll: string;
67
+ abort: string;
68
+ beforeunload: string;
69
+ blur: string;
70
+ change: string;
71
+ click: string;
72
+ contextmenu: string;
73
+ dblclick: string;
74
+ error: string;
75
+ focus: string;
76
+ focusin: string;
77
+ focusout: string;
78
+ gesturechange: string;
79
+ gestureend: string;
80
+ gesturestart: string;
81
+ hover: string;
82
+ keydown: string;
83
+ keypress: string;
84
+ keyup: string;
85
+ load: string;
86
+ mousedown: string;
87
+ mousemove: string;
88
+ mousein: string;
89
+ mouseout: string;
90
+ mouseenter: string;
91
+ mouseleave: string;
92
+ mouseover: string;
93
+ mouseup: string;
94
+ mousewheel: string;
95
+ move: string;
96
+ orientationchange: string;
97
+ pointercancel: string;
98
+ pointerdown: string;
99
+ pointerleave: string;
100
+ pointermove: string;
101
+ pointerup: string;
102
+ readystatechange: string;
103
+ reset: string;
104
+ resize: string;
105
+ scroll: string;
106
+ select: string;
107
+ selectend: string;
108
+ selectstart: string;
109
+ submit: string;
110
+ touchcancel: string;
111
+ touchend: string;
112
+ touchmove: string;
113
+ touchstart: string;
114
+ unload: string;
115
+ };
116
+ /**
117
+ * A global namespace for `abort` event.
118
+ */
119
+ export declare const abortEvent = "abort";
120
+ /**
121
+ * A global namespace for `blur` event.
122
+ */
123
+ export declare const blurEvent = "blur";
124
+ /**
125
+ * A global namespace for `move` event.
126
+ */
127
+ export declare const moveEvent = "move";
128
+ /**
129
+ * A global namespace for `change` event.
130
+ */
131
+ export declare const changeEvent = "change";
132
+ /**
133
+ * A global namespace for `drag` event.
134
+ */
135
+ export declare const dragEvent = "drag";
136
+ /**
137
+ * A global namespace for `dragstart` event.
138
+ */
139
+ export declare const dragstartEvent = "dragstart";
140
+ /**
141
+ * A global namespace for `dragenter` event.
142
+ */
143
+ export declare const dragenterEvent = "dragenter";
144
+ /**
145
+ * A global namespace for `dragleave` event.
146
+ */
147
+ export declare const dragleaveEvent = "dragleave";
148
+ /**
149
+ * A global namespace for `dragover` event.
150
+ */
151
+ export declare const dragoverEvent = "dragover";
152
+ /**
153
+ * A global namespace for `dragend` event.
154
+ */
155
+ export declare const dragendEvent = "dragend";
156
+ /**
157
+ * A global namespace for `error` event.
158
+ */
159
+ export declare const errorEvent = "error";
160
+ /**
161
+ * A global namespace for `reset` event.
162
+ */
163
+ export declare const resetEvent = "reset";
164
+ /**
165
+ * A global namespace for `resize` event.
166
+ */
167
+ export declare const resizeEvent = "resize";
168
+ /**
169
+ * A global namespace for `scroll` event.
170
+ */
171
+ export declare const scrollEvent = "scroll";
172
+ /**
173
+ * A global namespace for `submit` event.
174
+ */
175
+ export declare const submitEvent = "submit";
176
+ /**
177
+ * A global namespace for `load` event.
178
+ */
179
+ export declare const loadEvent = "load";
180
+ /**
181
+ * A global namespace for `loadstart` event.
182
+ */
183
+ export declare const loadstartEvent = "loadstart";
184
+ /**
185
+ * A global namespace for `unload` event.
186
+ */
187
+ export declare const unloadEvent = "unload";
188
+ /**
189
+ * A global namespace for `readystatechange` event.
190
+ */
191
+ export declare const readystatechangeEvent = "readystatechange";
192
+ /**
193
+ * A global namespace for `beforeunload` event.
194
+ */
195
+ export declare const beforeunloadEvent = "beforeunload";
196
+ /**
197
+ * A global namespace for `orientationchange` event.
198
+ */
199
+ export declare const orientationchangeEvent = "orientationchange";
200
+ /**
201
+ * A global namespace for `contextmenu` event.
202
+ */
203
+ export declare const contextmenuEvent = "contextmenu";
204
+ /**
205
+ * A global namespace for `DOMContentLoaded` event.
206
+ */
207
+ export declare const DOMContentLoadedEvent = "DOMContentLoaded";
208
+ /**
209
+ * A global namespace for `DOMMouseScroll` event.
210
+ */
211
+ export declare const DOMMouseScrollEvent = "DOMMouseScroll";
212
+ /**
213
+ * A global namespace for `select` event.
214
+ */
215
+ export declare const selectEvent = "select";
216
+ /**
217
+ * A global namespace for the `selectend` event.
218
+ */
219
+ export declare const selectendEvent = "selectend";
220
+ /**
221
+ * A global namespace for the `selectstart` event.
222
+ */
223
+ export declare const selectstartEvent = "selectstart";
224
+ /**
225
+ * A global namespace for mouse events equivalent to touch events.
226
+ */
227
+ export declare const mouseSwipeEvents: {
228
+ start: string;
229
+ end: string;
230
+ move: string;
231
+ cancel: string;
232
+ };
233
+ /**
234
+ * A global namespace for mouse click events.
235
+ */
236
+ export declare const mouseClickEvents: {
237
+ down: string;
238
+ up: string;
239
+ };
240
+ /**
241
+ * A global namespace for `click` event.
242
+ */
243
+ export declare const mouseclickEvent = "click";
244
+ /**
245
+ * A global namespace for `dblclick` event.
246
+ */
247
+ export declare const mousedblclickEvent = "dblclick";
248
+ /**
249
+ * A global namespace for `mousedown` event.
250
+ */
251
+ export declare const mousedownEvent = "mousedown";
252
+ /**
253
+ * A global namespace for `mouseup` event.
254
+ */
255
+ export declare const mouseupEvent = "mouseup";
256
+ /**
257
+ * A global namespace for `hover` event.
258
+ */
259
+ export declare const mousehoverEvent = "hover";
260
+ /**
261
+ * A global namespace for mouse hover events.
262
+ */
263
+ export declare const mouseHoverEvents: string[];
264
+ /**
265
+ * A global namespace for `mouseenter` event.
266
+ */
267
+ export declare const mouseenterEvent = "mouseenter";
268
+ /**
269
+ * A global namespace for `mouseleave` event.
270
+ */
271
+ export declare const mouseleaveEvent = "mouseleave";
272
+ /**
273
+ * A global namespace for `mousein` event.
274
+ */
275
+ export declare const mouseinEvent = "mousein";
276
+ /**
277
+ * A global namespace for `mouseout` event.
278
+ */
279
+ export declare const mouseoutEvent = "mouseout";
280
+ /**
281
+ * A global namespace for `mouseover` event.
282
+ */
283
+ export declare const mouseoverEvent = "mouseover";
284
+ /**
285
+ * A global namespace for `mousemove` event.
286
+ */
287
+ export declare const mousemoveEvent = "mousemove";
288
+ /**
289
+ * A global namespace for `mousewheel` event.
290
+ */
291
+ export declare const mousewheelEvent = "mousewheel";
292
+ /**
293
+ * A global namespace for touch events.
294
+ */
295
+ export declare const touchEvents: {
296
+ start: string;
297
+ end: string;
298
+ move: string;
299
+ cancel: string;
300
+ };
301
+ /**
302
+ * A global namespace for `touchstart` event.
303
+ */
304
+ export declare const touchstartEvent = "touchstart";
305
+ /**
306
+ * A global namespace for `touchmove` event.
307
+ */
308
+ export declare const touchmoveEvent = "touchmove";
309
+ /**
310
+ * A global namespace for `touchcancel` event.
311
+ */
312
+ export declare const touchcancelEvent = "touchcancel";
313
+ /**
314
+ * A global namespace for `touchend` event.
315
+ */
316
+ export declare const touchendEvent = "touchend";
317
+ /**
318
+ * A global namespace for `pointercancel` event.
319
+ */
320
+ export declare const pointercancelEvent = "pointercancel";
321
+ /**
322
+ * A global namespace for `pointerdown` event.
323
+ */
324
+ export declare const pointerdownEvent = "pointerdown";
325
+ /**
326
+ * A global namespace for `pointerleave` event.
327
+ */
328
+ export declare const pointerleaveEvent = "pointerleave";
329
+ /**
330
+ * A global namespace for `pointermove` event.
331
+ */
332
+ export declare const pointermoveEvent = "pointermove";
333
+ /**
334
+ * A global namespace for `pointerup` event.
335
+ */
336
+ export declare const pointerupEvent = "pointerup";
337
+ /**
338
+ * A global namespace for focus event names.
339
+ */
340
+ export declare const focusEvents: {
341
+ in: string;
342
+ out: string;
343
+ };
344
+ /**
345
+ * A global namespace for `focus` event.
346
+ */
347
+ export declare const focusEvent = "focus";
348
+ /**
349
+ * A global namespace for `focusin` event.
350
+ */
351
+ export declare const focusinEvent = "focusin";
352
+ /**
353
+ * A global namespace for `focusout` event.
354
+ */
355
+ export declare const focusoutEvent = "focusout";
356
+ /**
357
+ * A global namespace for `gesturechange` event.
358
+ */
359
+ export declare const gesturechangeEvent = "gesturechange";
360
+ /**
361
+ * A global namespace for `gestureend` event.
362
+ */
363
+ export declare const gestureendEvent = "gestureend";
364
+ /**
365
+ * A global namespace for `gesturestart` event.
366
+ */
367
+ export declare const gesturestartEvent = "gesturestart";
368
+ /**
369
+ * A global namespace for keyboard event keys.
370
+ */
371
+ export declare const keyboardEventKeys: {
372
+ Backspace: string;
373
+ Tab: string;
374
+ Enter: string;
375
+ Shift: string;
376
+ Control: string;
377
+ Alt: string;
378
+ Pause: string;
379
+ CapsLock: string;
380
+ Escape: string;
381
+ Scape: string;
382
+ ArrowLeft: string;
383
+ ArrowUp: string;
384
+ ArrowRight: string;
385
+ ArrowDown: string;
386
+ Insert: string;
387
+ Delete: string;
388
+ Meta: string;
389
+ ContextMenu: string;
390
+ ScrollLock: string;
391
+ };
392
+ /**
393
+ * A global namespace for `keydown` event.
394
+ */
395
+ export declare const keydownEvent = "keydown";
396
+ /**
397
+ * A global namespace for `keyup` event.
398
+ */
399
+ export declare const keyupEvent = "keyup";
400
+ /**
401
+ * A global namespace for `keypress` event.
402
+ */
403
+ export declare const keypressEvent = "keypress";
404
+ /**
405
+ * A global namespace for `Alt` key.
406
+ * e.which = 18
407
+ */
408
+ export declare const keyAlt = "Alt";
409
+ /**
410
+ * A global namespace for `ArrowDown` key.
411
+ * e.which = 40 equivalent
412
+ */
413
+ export declare const keyArrowDown = "ArrowDown";
414
+ /**
415
+ * A global namespace for `ArrowUp` key.
416
+ * e.which = 38 equivalent
417
+ */
418
+ export declare const keyArrowUp = "ArrowUp";
419
+ /**
420
+ * A global namespace for `ArrowLeft` key.
421
+ * e.which = 37 equivalent
422
+ */
423
+ export declare const keyArrowLeft = "ArrowLeft";
424
+ /**
425
+ * A global namespace for `ArrowRight` key.
426
+ * e.which = 39 equivalent
427
+ */
428
+ export declare const keyArrowRight = "ArrowRight";
429
+ /**
430
+ * A global namespace for `Backspace` key.
431
+ * e.which === 8 equivalent
432
+ */
433
+ export declare const keyBackspace = "Backspace";
434
+ /**
435
+ * A global namespace for `CapsLock` key.
436
+ * e.which = 20 equivalent
437
+ */
438
+ export declare const keyCapsLock = "CapsLock";
439
+ /**
440
+ * A global namespace for `Control` key.
441
+ * e.which = 17
442
+ */
443
+ export declare const keyControl = "Control";
444
+ /**
445
+ * A global namespace for `Delete` key.
446
+ * e.which = 46 equivalent
447
+ */
448
+ export declare const keyDelete = "Delete";
449
+ /**
450
+ * A global namespace for `Enter` key.
451
+ * e.which = 13 equivalent
452
+ */
453
+ export declare const keyEnter = "Enter";
454
+ /**
455
+ * A global namespace for `Enter` key.
456
+ * e.which = 13 equivalent
457
+ */
458
+ export declare const keyNumpadEnter = "NumpadEnter";
459
+ /**
460
+ * A global namespace for `Escape` key.
461
+ * e.which = 27 equivalent
462
+ */
463
+ export declare const keyEscape = "Escape";
464
+ /**
465
+ * A global namespace for `Insert` key.
466
+ * e.which = 45 equivalent
467
+ */
468
+ export declare const keyInsert = "Insert";
469
+ /**
470
+ * A global namespace for `Meta` key.
471
+ * e.which = 93 equivalent
472
+ */
473
+ export declare const keyMeta = "Meta";
474
+ /**
475
+ * A global namespace for `Pause` key.
476
+ * e.which = 19
477
+ */
478
+ export declare const keyPause = "Pause";
479
+ /**
480
+ * A global namespace for `ScrollLock` key.
481
+ * e.which = 145 equivalent
482
+ */
483
+ export declare const keyScrollLock = "ScrollLock";
484
+ /**
485
+ * A global namespace for `Shift` key.
486
+ * e.which = 16
487
+ */
488
+ export declare const keyShift = "Shift";
489
+ /**
490
+ * A global namespace for `Space` key.
491
+ * e.which = 32 equivalent
492
+ */
493
+ export declare const keySpace = "Space";
494
+ /**
495
+ * A global namespace for `Tab` key.
496
+ * e.which = 9 equivalent
497
+ */
498
+ export declare const keyTab = "Tab";
499
+ /**
500
+ * A global namespace for 'animationDuration' string.
501
+ */
502
+ export declare const animationDuration = "animationDuration";
503
+ /**
504
+ * A global namespace for 'animationDelay' string.
505
+ */
506
+ export declare const animationDelay = "animationDelay";
507
+ /**
508
+ * A global namespace for 'animationName' string.
509
+ */
510
+ export declare const animationName = "animationName";
511
+ /**
512
+ * A global namespace for 'animationend' string.
513
+ */
514
+ export declare const animationEndEvent = "animationend";
515
+ /**
516
+ * A global namespace for 'transitionDuration' string.
517
+ */
518
+ export declare const transitionDuration = "transitionDuration";
519
+ /**
520
+ * A global namespace for 'transitionDelay' string.
521
+ */
522
+ export declare const transitionDelay = "transitionDelay";
523
+ /**
524
+ * A global namespace for 'transitionend' string.
525
+ */
526
+ export declare const transitionEndEvent = "transitionend";
527
+ /**
528
+ * A global namespace for `transitionProperty` string for modern browsers.
529
+ */
530
+ export declare const transitionProperty = "transitionProperty";
531
+ /**
532
+ * A global namespace for 'addEventListener' string.
533
+ */
534
+ export declare const addEventListener = "addEventListener";
535
+ /**
536
+ * A global namespace for 'removeEventListener' string.
537
+ */
538
+ export declare const removeEventListener = "removeEventListener";
539
+ /**
540
+ * A global namespace for predefined
541
+ * CSS3 'cubic-bezier()' easing functions.
542
+ */
543
+ export declare const bezierEasings: {
544
+ linear: string;
545
+ easingSinusoidalIn: string;
546
+ easingSinusoidalOut: string;
547
+ easingSinusoidalInOut: string;
548
+ easingQuadraticIn: string;
549
+ easingQuadraticOut: string;
550
+ easingQuadraticInOut: string;
551
+ easingCubicIn: string;
552
+ easingCubicOut: string;
553
+ easingCubicInOut: string;
554
+ easingQuarticIn: string;
555
+ easingQuarticOut: string;
556
+ easingQuarticInOut: string;
557
+ easingQuinticIn: string;
558
+ easingQuinticOut: string;
559
+ easingQuinticInOut: string;
560
+ easingExponentialIn: string;
561
+ easingExponentialOut: string;
562
+ easingExponentialInOut: string;
563
+ easingCircularIn: string;
564
+ easingCircularOut: string;
565
+ easingCircularInOut: string;
566
+ easingBackIn: string;
567
+ easingBackOut: string;
568
+ easingBackInOut: string;
569
+ };
570
+ /**
571
+ * A global namespace for `offsetHeight` property.
572
+ */
573
+ export declare const offsetHeight = "offsetHeight";
574
+ /**
575
+ * A global namespace for `offsetWidth` property.
576
+ */
577
+ export declare const offsetWidth = "offsetWidth";
578
+ /**
579
+ * A global namespace for `scrollHeight` property.
580
+ */
581
+ export declare const scrollHeight = "scrollHeight";
582
+ /**
583
+ * A global namespace for `scrollWidth` property.
584
+ */
585
+ export declare const scrollWidth = "scrollWidth";
586
+ /**
587
+ * A global namespace for `touchcancel` event.
588
+ */
589
+ export declare const tabindex = "tabindex";
590
+ // https://github.com/lukewarlow/user-agent-data-types/blob/master/index.d.ts
591
+ export declare interface NavigatorUABrand {
592
+ readonly brand: string;
593
+ readonly version: string;
594
+ }
595
+ export declare interface NavigatorUAData {
596
+ readonly brands: NavigatorUABrand[];
597
+ readonly mobile: boolean;
598
+ readonly platform: string;
599
+ }
600
+ export declare interface NavigatorUA extends Navigator {
601
+ readonly userAgentData: NavigatorUAData;
602
+ }
603
+ /**
604
+ * A global namespace for `userAgentData` object.
605
+ */
606
+ export declare const userAgentData: NavigatorUA["userAgentData"];
607
+ /**
608
+ * A global namespace for `navigator.userAgent` string.
609
+ */
610
+ export declare const userAgent: string;
611
+ /**
612
+ * A global `boolean` for mobile detection.
613
+ */
614
+ export declare const isMobile: boolean;
615
+ /**
616
+ * A global `boolean` for Apple browsers.
617
+ */
618
+ export declare const isApple: boolean;
619
+ /**
620
+ * A global boolean for Gecko browsers. When writing this file,
621
+ * Gecko was not supporting `userAgentData`.
622
+ */
623
+ export declare const isFirefox: boolean;
624
+ /**
625
+ * A global `boolean` for CSS3 3D transform support.
626
+ */
627
+ export declare const support3DTransform: boolean;
628
+ /**
629
+ * A global `boolean` for passive events support,
630
+ * in general event options are not suited for scroll prevention.
631
+ *
632
+ * @see https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
633
+ */
634
+ export declare const supportPassive: boolean;
635
+ /**
636
+ * A global `boolean` for CSS3 transform support.
637
+ */
638
+ export declare const supportTransform: boolean;
639
+ /**
640
+ * A global `boolean` for touch events support.
641
+ */
642
+ export declare const supportTouch: boolean;
643
+ /**
644
+ * A global `boolean` for CSS3 animation support.
645
+ */
646
+ export declare const supportAnimation: boolean;
647
+ /**
648
+ * A global `boolean` for CSS3 transition support.
649
+ */
650
+ export declare const supportTransition: boolean;
651
+ /**
652
+ * Shortcut for `HTMLElement.getAttribute()` method.
653
+ *
654
+ * @param element target element
655
+ * @param att attribute name
656
+ * @returns attribute value
657
+ */
658
+ export declare const getAttribute: (element: HTMLElement, att: string) => string | null;
659
+ /**
660
+ * Shortcut for `HTMLElement.getAttributeNS()` method.
661
+ *
662
+ * @param ns attribute namespace
663
+ * @param element target element
664
+ * @param att attribute name
665
+ * @returns attribute value
666
+ */
667
+ export declare const getAttributeNS: (ns: string, element: HTMLElement, att: string) => string | null;
668
+ /**
669
+ * Shortcut for `HTMLElement.hasAttribute()` method.
670
+ *
671
+ * @param element target element
672
+ * @param att attribute name
673
+ * @returns the query result
674
+ */
675
+ export declare const hasAttribute: (element: HTMLElement, att: string) => boolean;
676
+ /**
677
+ * Shortcut for `HTMLElement.hasAttributeNS()` method.
678
+ *
679
+ * @param ns attribute namespace
680
+ * @param element target element
681
+ * @param att attribute name
682
+ * @returns the query result
683
+ */
684
+ export declare const hasAttributeNS: (ns: string, element: HTMLElement, att: string) => boolean;
685
+ /**
686
+ * Shortcut for `HTMLElement.setAttribute()` method.
687
+ *
688
+ * @param element target element
689
+ * @param att attribute name
690
+ * @param value attribute value
691
+ */
692
+ export declare const setAttribute: (element: HTMLElement, att: string, value: string) => void;
693
+ /**
694
+ * Shortcut for `SVGElement.setAttributeNS()` method.
695
+ *
696
+ * @param ns attribute namespace
697
+ * @param element target element
698
+ * @param att attribute name
699
+ * @param value attribute value
700
+ */
701
+ export declare const setAttributeNS: (ns: string, element: HTMLElement, att: string, value: string) => void;
702
+ /**
703
+ * Shortcut for `HTMLElement.removeAttribute()` method.
704
+ *
705
+ * @param element target element
706
+ * @param att attribute name
707
+ */
708
+ export declare const removeAttribute: (element: HTMLElement, att: string) => void;
709
+ /**
710
+ * Shortcut for `HTMLElement.removeAttributeNS()` method.
711
+ *
712
+ * @param ns attribute namespace
713
+ * @param element target element
714
+ * @param att attribute name
715
+ */
716
+ export declare const removeAttributeNS: (ns: string, element: HTMLElement, att: string) => void;
717
+ /**
718
+ * Add one or more CSS classes to `HTMLElement.classList`.
719
+ *
720
+ * @param element target
721
+ * @param classNAME to add
722
+ */
723
+ export declare const addClass: (element: HTMLElement, ...classNAME: string[]) => void;
724
+ /**
725
+ * Remove one or more classes from `HTMLElement.classList`.
726
+ *
727
+ * @param element target
728
+ * @param classNAME to remove
729
+ */
730
+ export declare const removeClass: (element: HTMLElement, ...classNAME: string[]) => void;
731
+ /**
732
+ * Check class in `HTMLElement.classList`.
733
+ *
734
+ * @param element target
735
+ * @param classNAME to check
736
+ */
737
+ export declare const hasClass: (element: HTMLElement, classNAME: string) => boolean;
738
+ /**
739
+ * Add eventListener to an `EventTarget` object.
740
+ */
741
+ export declare const on: <T extends EventTarget, L = EventListener>(element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void;
742
+ /**
743
+ * Remove eventListener from an `EventTarget` object.
744
+ */
745
+ export declare const off: <T extends EventTarget, L = EventListener>(element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void;
746
+ /**
747
+ * Add an `eventListener` to an `EventTarget`
748
+ * element and remove it once callback is called.
749
+ */
750
+ export declare const one: <T extends EventTarget, L = EventListener>(element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void;
751
+ /**
752
+ * A global namespace for `document.body`.
753
+ */
754
+ export declare const documentBody: HTMLElement;
755
+ /**
756
+ * A global namespace for `document.documentElement` or the `<HTML>`.
757
+ */
758
+ export declare const documentElement: HTMLElement;
759
+ /**
760
+ * A global namespace for `document.head`.
761
+ */
762
+ export declare const documentHead: HTMLHeadElement;
763
+ /**
764
+ * Shortie for `Array.from()` static method.
765
+ * The utility should also work with any typed arrays
766
+ * like Float64Array or Int32Array.
767
+ *
768
+ * @param arr array-like iterable object
769
+ * @returns a new array from iterable object
770
+ */
771
+ export declare const ArrayFrom: <T>(arr: ArrayLike<T> | Iterable<T>) => T[];
772
+ /**
773
+ * An interface for web components background data.
774
+ *
775
+ * @see https://github.com/thednp/bootstrap.native/blob/master/src/components/base-component.js
776
+ */
777
+ export declare const Data: {
778
+ data: Map<string, Map<HTMLElement, any>>;
779
+ /**
780
+ * Sets web components data.
781
+ *
782
+ * @param element target element
783
+ * @param component the component's name or a unique key
784
+ * @param instance the component instance
785
+ */
786
+ set: <T>(element: HTMLElement, component: string, instance: T) => void;
787
+ /**
788
+ * Returns all instances for specified component.
789
+ *
790
+ * @param component the component's name or a unique key
791
+ * @returns all the component instances
792
+ */
793
+ getAllFor: <T_1>(component: string) => Map<HTMLElement, T_1> | null;
794
+ /**
795
+ * Returns the instance associated with the target.
796
+ *
797
+ * @param element target element
798
+ * @param component the component's name or a unique key
799
+ * @returns the instance
800
+ */
801
+ get: <T_2>(element: HTMLElement, component: string) => T_2 | null;
802
+ /**
803
+ * Removes web components data.
804
+ *
805
+ * @param element target element
806
+ * @param component the component's name or a unique key
807
+ */
808
+ remove: <T_3>(element: HTMLElement, component: string) => void;
809
+ };
810
+ /**
811
+ * An alias for `Data.get()`.
812
+ */
813
+ export declare const getInstance: <T>(target: HTMLElement, component: string) => T | null;
814
+ /**
815
+ * Shortie for `document.createElement` method
816
+ * which allows you to create a new `HTMLElement` for a given `tagName`
817
+ * or based on an object with specific non-readonly attributes with string values:
818
+ * `id`, `className`, `textContent`, `style`, etc.
819
+ *
820
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement
821
+ *
822
+ * @param param `tagName` or object
823
+ * @return a new `HTMLElement`
824
+ */
825
+ export declare const createElement: <T extends HTMLElement>(param?: string | Partial<T> | undefined) => T | undefined;
826
+ /**
827
+ * Shortie for `document.createElementNS` method
828
+ * which allows you to create a new `HTMLElement` for a given `tagName`
829
+ * or based on an object with specific non-readonly attributes with string values:
830
+ * `id`, `className`, `textContent`, `style`, etc.
831
+ * Note: some elements resulted from this function call may not be compatible with
832
+ * some attributes.
833
+ *
834
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS
835
+ *
836
+ * @param ns `namespaceURI` to associate with the new `HTMLElement`
837
+ * @param param `tagName` or object
838
+ * @return a new `HTMLElement`
839
+ */
840
+ export declare const createElementNS: <T extends HTMLElement>(ns: string, param?: string | Partial<T> | undefined) => T | undefined;
841
+ /**
842
+ * Shortcut for the `Element.dispatchEvent(Event)` method.
843
+ *
844
+ * @param element is the target
845
+ * @param event is the `Event` object
846
+ */
847
+ export declare const dispatchEvent: (element: EventTarget, event: Event) => boolean;
848
+ /**
849
+ * JavaScript `Array` distinct.
850
+ *
851
+ * @see https://codeburst.io/javascript-array-distinct-5edc93501dc4
852
+ *
853
+ * @example
854
+ * ```
855
+ * [0,1,1,2].filter(distinct)
856
+ * // => [0,1,2]
857
+ * ```
858
+ * @param value array item value
859
+ * @param index array item index
860
+ * @param arr a clone of the target array
861
+ * @returns the query result
862
+ */
863
+ export declare const distinct: <T>(value: T, index: number, arr: T[]) => boolean;
864
+ /**
865
+ * Utility to make sure callbacks are consistently
866
+ * called when animation ends.
867
+ *
868
+ * @param element target
869
+ * @param handler `animationend` callback
870
+ */
871
+ export declare const emulateAnimationEnd: (element: HTMLElement, handler: EventListener) => void;
872
+ /**
873
+ * Utility to make sure callbacks are consistently
874
+ * called when transition ends.
875
+ *
876
+ * @param element event target
877
+ * @param handler `transitionend` callback
878
+ */
879
+ export declare const emulateTransitionEnd: (element: HTMLElement, handler: EventListener) => void;
880
+ /**
881
+ * Shortcut for `Float32Array.from()` static method.
882
+ *
883
+ * @param arr array-like iterable object
884
+ * @returns a new Float32Array
885
+ */
886
+ export declare const Float32ArrayFrom: (arr: ArrayLike<number> | Iterable<number>) => Float32Array;
887
+ /**
888
+ * Shortcut for `Float64Array.from()` static method.
889
+ *
890
+ * @param arr array-like iterable object
891
+ * @returns a new Float64Array
892
+ */
893
+ export declare const Float64ArrayFrom: (arr: ArrayLike<number> | Iterable<number>) => Float64Array;
894
+ /**
895
+ * Shortie for `HTMLElement.focus()` method.
896
+ *
897
+ * @param element is the target
898
+ * @param options allows to pass additional options such as `preventScroll: boolean`
899
+ */
900
+ export declare const focus: (element: HTMLOrSVGElement, options?: FocusOptions) => void;
901
+ /** A generic function with empty body. */
902
+ export declare const noop: () => void;
903
+ /**
904
+ * Utility to normalize component options.
905
+ *
906
+ * @param element target
907
+ * @param defaultOps component default options
908
+ * @param inputOps component instance options
909
+ * @param ns component namespace
910
+ * @return normalized component options object
911
+ */
912
+ export declare const normalizeOptions: <T extends {
913
+ [key: string]: any;
914
+ }>(element: HTMLElement, defaultOps: T, inputOps: Partial<T>, ns?: string) => T;
915
+ export type NormalValue = boolean | number | string | ((...args: any[]) => any) | null;
916
+ /**
917
+ * Utility to normalize component options
918
+ *
919
+ * @param value the input value
920
+ * @return the normalized value
921
+ */
922
+ export declare const normalizeValue: (value?: boolean | number | string) => NormalValue;
923
+ declare function ObjectAssignTyped<T, U>(target: T, source: U): T & U;
924
+ declare function ObjectAssignTyped<T, U, V>(target: T, source1: U, source2: V): T & U & V;
925
+ declare function ObjectAssignTyped<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
926
+ declare function ObjectAssignTyped<T, U, V, W, Q>(target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q;
927
+ declare function ObjectAssignTyped<T, U, V, W, Q, R>(target: T, source1: U, source2: V, source3: W, source4: Q, source5: R): T & U & V & W & Q & R;
928
+ declare function ObjectAssignTyped(target: any, ...sources: any[]): any;
929
+ /**
930
+ * Shortcut for `Object.assign()` static method.
931
+ *
932
+ * @param obj a target object
933
+ * @param source source object(s)
934
+ * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
935
+ */
936
+ export declare const ObjectAssign: typeof ObjectAssignTyped;
937
+ /**
938
+ * Shortcut for `Object.entries()` static method.
939
+ *
940
+ * @param obj a target object
941
+ * @returns the entries of an object in an array format [key, value][]
942
+ * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
943
+ */
944
+ export declare const ObjectEntries: <O extends Record<string, any>>(obj: O) => [
945
+ keyof O,
946
+ O[keyof O]
947
+ ][];
948
+ /**
949
+ * A shortcut to `Object.hasOwn()` static method to work
950
+ * with regular `Object` elements.
951
+ *
952
+ * @see https://fettblog.eu/typescript-hasownproperty/
953
+ * @param obj the target object
954
+ * @param prop the property to check
955
+ * @returns the query result
956
+ */
957
+ export declare const ObjectHasOwn: <T extends object, K extends PropertyKey>(obj: T, prop: K) => obj is T & Record<K, unknown>;
958
+ /**
959
+ * Shortcut for `Object.keys()` static method.
960
+ *
961
+ * @param obj a target object
962
+ * @returns an array with object keys
963
+ * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
964
+ */
965
+ export declare const ObjectKeys: <O extends Record<string, any>>(obj: O) => (keyof O)[];
966
+ /**
967
+ * Shortcut for `Object.values()` static method.
968
+ *
969
+ * @param obj a target object
970
+ * @returns an array with the object values
971
+ * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
972
+ */
973
+ export declare const ObjectValues: <O extends Record<string, unknown>>(obj: O) => O[keyof O][];
974
+ /**
975
+ * Shortcut for `Object.fromEntries()` static method.
976
+ *
977
+ * @param entries a target entries object
978
+ * @returns a new Object created from the specified entries in array format [key, value][]
979
+ * @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
980
+ */
981
+ export declare const ObjectFromEntries: <K extends string, V>(entries: [
982
+ K,
983
+ V
984
+ ][]) => Record<K, V>;
985
+ export declare interface OriginalEvent extends CustomEvent<any> {
986
+ readonly type: string;
987
+ relatedTarget?: EventTarget;
988
+ }
989
+ /**
990
+ * Returns a namespaced `CustomEvent` specific to each component.
991
+ *
992
+ * @param eventType Event.type
993
+ * @param config Event.options | Event.properties
994
+ * @returns a new namespaced event
995
+ */
996
+ export declare const createCustomEvent: <T extends OriginalEvent>(eventType: string, config?: CustomEventInit<any>) => T;
997
+ /**
998
+ * A global namespace for most scroll event listeners.
999
+ */
1000
+ export declare const passiveHandler: Partial<AddEventListenerOptions>;
1001
+ /**
1002
+ * Utility to force re-paint of an `HTMLElement` target.
1003
+ *
1004
+ * @param element is the target
1005
+ * @return the `Element.offsetHeight` value
1006
+ */
1007
+ export declare const reflow: (element: HTMLElement) => number;
1008
+ export declare interface CSS4Declaration extends Exclude<() => string | symbol, CSSStyleDeclaration> {
1009
+ [key: string]: string;
1010
+ }
1011
+ /**
1012
+ * Shortcut for multiple uses of `HTMLElement.style.propertyName` method.
1013
+ *
1014
+ * @param element target element
1015
+ * @param styles attribute value
1016
+ */
1017
+ export declare const setElementStyle: (element: HTMLElement, styles: Partial<CSS4Declaration>) => void;
1018
+ /**
1019
+ * An interface for one or more `TimerHandler`s per `Element`.
1020
+ *
1021
+ * @see https://github.com/thednp/navbar/
1022
+ */
1023
+ export declare const Timer: {
1024
+ /**
1025
+ * Sets a new timeout timer for an element, or element -> key association.
1026
+ *
1027
+ * @param element target element
1028
+ * @param callback the callback
1029
+ * @param delay the execution delay
1030
+ * @param key a unique key
1031
+ */
1032
+ set: (element: HTMLElement, callback: TimerHandler, delay: number, key?: string) => void;
1033
+ /**
1034
+ * Returns the timer associated with the target.
1035
+ *
1036
+ * @param element target element
1037
+ * @param key a unique
1038
+ * @returns the timer
1039
+ */
1040
+ get: (element: HTMLElement, key?: string) => number | null;
1041
+ /**
1042
+ * Clears the element's timer.
1043
+ *
1044
+ * @param element target element
1045
+ * @param key a unique key
1046
+ */
1047
+ clear: (element: HTMLElement, key?: string) => void;
1048
+ };
1049
+ /**
1050
+ * Shortcut for `String.toLowerCase()`.
1051
+ *
1052
+ * @param source input string
1053
+ * @returns lowercase output string
1054
+ */
1055
+ export declare const toLowerCase: (source: string) => string;
1056
+ /**
1057
+ * Shortcut for `String.toUpperCase()`.
1058
+ *
1059
+ * @param source input string
1060
+ * @returns uppercase output string
1061
+ */
1062
+ export declare const toUpperCase: (source: string) => string;
1063
+ export declare interface BoundingClientRect {
1064
+ width: number;
1065
+ height: number;
1066
+ top: number;
1067
+ left: number;
1068
+ right: number;
1069
+ bottom: number;
1070
+ x: number;
1071
+ y: number;
1072
+ }
1073
+ /**
1074
+ * Returns the bounding client rect of a target `HTMLElement`.
1075
+ *
1076
+ * @see https://github.com/floating-ui/floating-ui
1077
+ *
1078
+ * @param element event.target
1079
+ * @param includeScale when *true*, the target scale is also computed
1080
+ * @returns the bounding client rect object
1081
+ */
1082
+ export declare const getBoundingClientRect: (element: HTMLElement, includeScale?: boolean) => BoundingClientRect;
1083
+ /**
1084
+ * Returns the `document` or the `#document` element.
1085
+ *
1086
+ * @see https://github.com/floating-ui/floating-ui
1087
+ *
1088
+ * @param node the reference node
1089
+ * @returns the parent document of the given node
1090
+ */
1091
+ export declare const getDocument: (node?: Node | Document | Window) => Document;
1092
+ /**
1093
+ * Returns the `document.body` or the `<body>` element.
1094
+ *
1095
+ * @param node the reference node
1096
+ * @returns the parent `<body>` of the specified node
1097
+ */
1098
+ export declare const getDocumentBody: (node?: Node | Document | Window) => HTMLElement;
1099
+ /**
1100
+ * Returns the `document.documentElement` or the `<HTML>` element.
1101
+ *
1102
+ * @param node the reference node
1103
+ * @returns the parent `<HTML>` of the node's parent document
1104
+ */
1105
+ export declare const getDocumentElement: (node?: Node | Document | Window) => HTMLElement;
1106
+ /**
1107
+ * Returns the `document.head` or the `<head>` element.
1108
+ *
1109
+ * @param node the reference node
1110
+ * @returns the `<head>` of the node's parent document
1111
+ */
1112
+ export declare const getDocumentHead: (node?: Node | Document | Window) => HTMLElement & HTMLHeadElement;
1113
+ /**
1114
+ * Utility to get the computed `animationDuration`
1115
+ * from `HTMLElement` in miliseconds.
1116
+ *
1117
+ * @param element target
1118
+ * @return the `animationDuration` value in miliseconds
1119
+ */
1120
+ export declare const getElementAnimationDuration: (element: HTMLElement) => number;
1121
+ /**
1122
+ * Utility to get the computed `animationDelay`
1123
+ * from Element in miliseconds.
1124
+ *
1125
+ * @param element target
1126
+ * @return the `animationDelay` value in miliseconds
1127
+ */
1128
+ export declare const getElementAnimationDelay: (element: HTMLElement) => number;
1129
+ /**
1130
+ * Shortcut for `window.getComputedStyle(element).propertyName`
1131
+ * static method.
1132
+ *
1133
+ * * If `element` parameter is not an `HTMLElement`, `getComputedStyle`
1134
+ * throws a `ReferenceError`.
1135
+ *
1136
+ * @param element target
1137
+ * @param property the css property
1138
+ * @return the css property value
1139
+ */
1140
+ export declare const getElementStyle: (element: HTMLElement, property: string) => string;
1141
+ /**
1142
+ * Utility to get the computed `transitionDuration`
1143
+ * from Element in miliseconds.
1144
+ *
1145
+ * @param element target
1146
+ * @return the `transitionDuration` value in miliseconds
1147
+ */
1148
+ export declare const getElementTransitionDuration: (element: HTMLElement) => number;
1149
+ /**
1150
+ * Utility to get the computed `transitionDelay`
1151
+ * from Element in miliseconds.
1152
+ *
1153
+ * @param element target
1154
+ * @return the `transitionDelay` value in miliseconds
1155
+ */
1156
+ export declare const getElementTransitionDelay: (element: HTMLElement) => number;
1157
+ /**
1158
+ * Returns an `{x,y}` object with the target
1159
+ * `HTMLElement` / `Node` scroll position.
1160
+ *
1161
+ * @see https://github.com/floating-ui/floating-ui
1162
+ *
1163
+ * @param element target node / element
1164
+ * @returns the scroll tuple
1165
+ */
1166
+ export declare const getNodeScroll: (element: HTMLElement | Window) => {
1167
+ x: number;
1168
+ y: number;
1169
+ };
1170
+ /**
1171
+ * Returns the `parentNode` also going through `ShadowRoot`.
1172
+ *
1173
+ * @see https://github.com/floating-ui/floating-ui
1174
+ *
1175
+ * @param {Node} node the target node
1176
+ * @returns {Node} the apropriate parent node
1177
+ */
1178
+ export declare const getParentNode: (node: Node) => Node | ParentNode;
1179
+ export declare interface OffsetRect {
1180
+ width: number;
1181
+ height: number;
1182
+ x: number;
1183
+ y: number;
1184
+ }
1185
+ /**
1186
+ * Returns the rect relative to a given offset parent and its scroll position.
1187
+ *
1188
+ * @see https://github.com/floating-ui/floating-ui
1189
+ *
1190
+ * @param element target
1191
+ * @param offsetParent the container / offset parent
1192
+ * @param scroll the offsetParent scroll position
1193
+ * @returns a DOMRect like object
1194
+ */
1195
+ export declare const getRectRelativeToOffsetParent: (element: HTMLElement, offsetParent: HTMLElement, scroll: {
1196
+ x: number;
1197
+ y: number;
1198
+ }) => OffsetRect;
1199
+ /**
1200
+ * Returns a unique identifier for popover, tooltip, scrollspy.
1201
+ *
1202
+ * @param element target element
1203
+ * @param key optional identifier key
1204
+ * @returns an existing or new unique ID
1205
+ */
1206
+ export declare const getUID: (element: HTMLElement, key?: string) => number;
1207
+ /**
1208
+ * Returns the `Window` object of a target node.
1209
+ *
1210
+ * @see https://github.com/floating-ui/floating-ui
1211
+ *
1212
+ * @param node target node
1213
+ * @returns the `Window` object
1214
+ */
1215
+ export declare const getWindow: (node?: Node) => Window;
1216
+ /**
1217
+ * Shortie for the `Array.isArray()` static method.
1218
+ *
1219
+ * @param obj array-like iterable object
1220
+ * @returns the query result
1221
+ */
1222
+ export declare const isArray: (obj?: unknown) => obj is any[];
1223
+ /**
1224
+ * Checks if an element is an `HTMLCanvasElement` or `<canvas>`.
1225
+ *
1226
+ * @param element the target element
1227
+ * @returns the query result
1228
+ */
1229
+ export declare const isCanvas: (element?: unknown) => element is HTMLCanvasElement;
1230
+ /**
1231
+ * Checks if an object is a `Document`.
1232
+ *
1233
+ * @see https://dom.spec.whatwg.org/#node
1234
+ *
1235
+ * @param obj the target object
1236
+ * @returns the query result
1237
+ */
1238
+ export declare const isDocument: (obj?: unknown) => obj is Document;
1239
+ export declare interface CustomElement extends HTMLElement {
1240
+ shadowRoot: ShadowRoot;
1241
+ connectedCallback?: () => void;
1242
+ disconnectedCallback?: () => void;
1243
+ adoptedCallback?: () => void;
1244
+ attributeChangedCallback?: () => void;
1245
+ }
1246
+ /**
1247
+ * Checks if an object is a `CustomElement`.
1248
+ *
1249
+ * @param element the target object
1250
+ * @returns the query result
1251
+ */
1252
+ export declare const isCustomElement: <T extends CustomElement>(element?: unknown) => element is T;
1253
+ /**
1254
+ * Checks if an object is an `Element`.
1255
+ *
1256
+ * @see https://dom.spec.whatwg.org/#node
1257
+ *
1258
+ * ```
1259
+ * ELEMENT_NODE = 1;
1260
+ * ATTRIBUTE_NODE = 2;
1261
+ * TEXT_NODE = 3;
1262
+ * CDATA_SECTION_NODE = 4;
1263
+ * ENTITY_REFERENCE_NODE = 5; // legacy
1264
+ * ENTITY_NODE = 6; // legacy
1265
+ * PROCESSING_INSTRUCTION_NODE = 7;
1266
+ * COMMENT_NODE = 8;
1267
+ * DOCUMENT_NODE = 9;
1268
+ * DOCUMENT_TYPE_NODE = 10;
1269
+ * DOCUMENT_FRAGMENT_NODE = 11;
1270
+ * ```
1271
+ * @param element the target object
1272
+ * @returns the query result
1273
+ */
1274
+ export declare const isElement: (element?: unknown) => element is Element;
1275
+ /**
1276
+ * Utility to determine if an `HTMLElement`
1277
+ * is partially visible in viewport.
1278
+ *
1279
+ * @param element target
1280
+ * @return the query result
1281
+ */
1282
+ export declare const isElementInScrollRange: (element?: HTMLElement) => boolean;
1283
+ /**
1284
+ * Utility to determine if an `HTMLElement`
1285
+ * is fully visible in the viewport.
1286
+ *
1287
+ * @param element target
1288
+ * @return the query result
1289
+ */
1290
+ export declare const isElementInViewport: (element?: HTMLElement) => boolean;
1291
+ /**
1292
+ * Checks if an object is an `Array` in which all items are `Element`.
1293
+ *
1294
+ * @param obj the target object
1295
+ * @returns the query result
1296
+ */
1297
+ export declare const isElementsArray: (obj?: unknown) => obj is HTMLElement[];
1298
+ /**
1299
+ * Checks if an object is a `Function`.
1300
+ *
1301
+ * @param fn the target object
1302
+ * @returns the query result
1303
+ */
1304
+ export declare const isFunction: (fn?: unknown) => fn is (...arg0: any[]) => any;
1305
+ /**
1306
+ * Checks if a value is an `Object`.
1307
+ *
1308
+ * @param obj the target object
1309
+ * @returns the query result
1310
+ */
1311
+ export declare const isObject: (obj?: unknown) => obj is object;
1312
+ /**
1313
+ * Checks if an object is an `HTMLCollection`.
1314
+ *
1315
+ * @param obj the target object
1316
+ * @returns the query result
1317
+ */
1318
+ export declare const isHTMLCollection: (obj?: unknown) => obj is HTMLCollection;
1319
+ /**
1320
+ * Checks if an element is an `HTMLElement`.
1321
+ *
1322
+ * @see https://dom.spec.whatwg.org/#node
1323
+ *
1324
+ * @param element the target object
1325
+ * @returns the query result
1326
+ */
1327
+ export declare const isHTMLElement: (element?: unknown) => element is HTMLElement;
1328
+ /**
1329
+ * Check if a target element is an `<img>`.
1330
+ *
1331
+ * @param element the target element
1332
+ * @returns the query result
1333
+ */
1334
+ export declare const isHTMLImageElement: (element?: unknown) => element is HTMLImageElement;
1335
+ /**
1336
+ * Checks if a string is a `JSON` string.
1337
+ *
1338
+ * @param str the target string
1339
+ * @returns the query result
1340
+ */
1341
+ export declare const isJSON: (str?: string) => boolean;
1342
+ /**
1343
+ * Checks if an element is a `Map`.
1344
+ *
1345
+ * @param obj the target object
1346
+ * @returns the query result
1347
+ */
1348
+ export declare const isMap: (obj?: unknown) => obj is Map<any, any>;
1349
+ /**
1350
+ * Checks if an element is a `WeakMap`.
1351
+ *
1352
+ * @param obj the target object
1353
+ * @returns the query result
1354
+ */
1355
+ export declare const isWeakMap: (obj?: unknown) => obj is WeakMap<any, any>;
1356
+ /**
1357
+ * Checks if an element is an `<svg>` (or any type of SVG element),
1358
+ * `<img>`, `<video>` or `<canvas>`.
1359
+ *
1360
+ * *Tooltip* / *Popover* works different with media elements.
1361
+ *
1362
+ * @param element the target element
1363
+ * @returns the query result
1364
+ */
1365
+ export declare const isMedia: (element?: unknown) => element is HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | SVGElement;
1366
+ /**
1367
+ * Checks if an object is a `Node`.
1368
+ *
1369
+ * @param node the target object
1370
+ * @returns the query result
1371
+ */
1372
+ export declare const isNode: (node?: unknown) => node is Node;
1373
+ /**
1374
+ * Checks if an object is a `NodeList`.
1375
+ * => equivalent to `object instanceof NodeList`
1376
+ *
1377
+ * @param obj the target object
1378
+ * @returns the query result
1379
+ */
1380
+ export declare const isNodeList: (obj?: unknown) => obj is NodeList;
1381
+ /**
1382
+ * Shortie for `typeof SOMETHING === "number"`.
1383
+ *
1384
+ * @param num input value
1385
+ * @returns the query result
1386
+ */
1387
+ export declare const isNumber: (num?: unknown) => num is number;
1388
+ /**
1389
+ * Checks if a page is Right To Left.
1390
+ *
1391
+ * @param node the target
1392
+ * @returns the query result
1393
+ */
1394
+ export declare const isRTL: (node?: Node) => boolean;
1395
+ /**
1396
+ * Checks if a target `HTMLElement` is affected by scale.
1397
+ *
1398
+ * @see https://github.com/floating-ui/floating-ui
1399
+ *
1400
+ * @param element target
1401
+ * @returns the query result
1402
+ */
1403
+ export declare const isScaledElement: (element?: HTMLElement) => boolean;
1404
+ /**
1405
+ * Check if target is a `ShadowRoot`.
1406
+ *
1407
+ * @param element target
1408
+ * @returns the query result
1409
+ */
1410
+ export declare const isShadowRoot: (element?: unknown) => element is ShadowRoot;
1411
+ /**
1412
+ * Shortie for `typeof SOMETHING === "string"`.
1413
+ *
1414
+ * @param str input value
1415
+ * @returns the query result
1416
+ */
1417
+ export declare const isString: (str?: unknown) => str is string;
1418
+ /**
1419
+ * Check if an element is an `<svg>` or any other SVG element,
1420
+ * an equivalent to `SOMETHING instanceof SVGElement`.
1421
+ *
1422
+ * @param element the target element
1423
+ * @returns the query result
1424
+ */
1425
+ export declare const isSVGElement: (element?: unknown) => element is SVGElement;
1426
+ /**
1427
+ * Check if a target element is a `<table>`, `<td>` or `<th>`.
1428
+ * This specific check is important for determining
1429
+ * the `offsetParent` of a given element.
1430
+ *
1431
+ * @param element the target element
1432
+ * @returns the query result
1433
+ */
1434
+ export declare const isTableElement: (element?: unknown) => element is HTMLTableElement | HTMLTableCellElement;
1435
+ /**
1436
+ * Check if a target object is `Window`.
1437
+ * => equivalent to `object instanceof Window`
1438
+ *
1439
+ * @param obj the target object
1440
+ * @returns the query result
1441
+ */
1442
+ export declare const isWindow: (obj?: unknown) => obj is Window;
1443
+ /**
1444
+ * Shortcut for `HTMLElement.closest` method which also works
1445
+ * with children of `ShadowRoot`. The order of the parameters
1446
+ * is intentional since they're both required.
1447
+ *
1448
+ * @see https://stackoverflow.com/q/54520554/803358
1449
+ *
1450
+ * @param element Element to look into
1451
+ * @param selector the selector name
1452
+ * @return the query result
1453
+ */
1454
+ export declare const closest: (element: HTMLElement, selector: string) => HTMLElement | null;
1455
+ /**
1456
+ * Utility to check if target is typeof `HTMLElement`, `Element`, `Node`
1457
+ * or find one that matches a selector.
1458
+ *
1459
+ * @param selector the input selector or target element
1460
+ * @param parent optional node to look into
1461
+ * @return the `HTMLElement` or `querySelector` result
1462
+ */
1463
+ export declare const querySelector: (selector: HTMLElement | string, parent?: ParentNode) => HTMLElement | null;
1464
+ /**
1465
+ * Returns an `Array` of `Node` elements that are registered as
1466
+ * `CustomElement`.
1467
+ *
1468
+ * @see https://stackoverflow.com/questions/27334365/how-to-get-list-of-registered-custom-elements
1469
+ *
1470
+ * @param parent parent to look into
1471
+ * @returns the query result
1472
+ */
1473
+ export declare const getCustomElements: (parent?: ParentNode) => CustomElement[];
1474
+ /**
1475
+ * Returns an `HTMLElement` that matches the id in the document.
1476
+ * Within multiple <iframe> elements, a `parent` parameter
1477
+ * would decisively locate the correct element.
1478
+ *
1479
+ * @param id the ID selector
1480
+ * @param context an element in it's document or document
1481
+ * @returns the requested element
1482
+ */
1483
+ export declare const getElementById: (id: string, context?: Node) => HTMLElement | null;
1484
+ /**
1485
+ * A shortcut for `(document|Element).querySelectorAll`.
1486
+ *
1487
+ * @param selector the input selector
1488
+ * @param parent optional node to look into
1489
+ * @return the query result
1490
+ */
1491
+ export declare const querySelectorAll: (selector: string, parent?: ParentNode) => NodeListOf<HTMLElement>;
1492
+ /**
1493
+ * Shortcut for `HTMLElement.getElementsByTagName` method. Some `Node` elements
1494
+ * like `ShadowRoot` do not support `getElementsByTagName`.
1495
+ *
1496
+ * @param selector the tag name
1497
+ * @param parent optional Element to look into
1498
+ * @return the 'HTMLCollection'
1499
+ */
1500
+ export declare const getElementsByTagName: (selector: string, parent?: ParentNode) => HTMLCollectionOf<HTMLElement>;
1501
+ /**
1502
+ * Shortcut for `HTMLElement.getElementsByClassName` method. Some `Node` elements
1503
+ * like `ShadowRoot` do not support `getElementsByClassName`.
1504
+ *
1505
+ * @param selector the class name
1506
+ * @param parent optional Element to look into
1507
+ * @return the 'HTMLCollection'
1508
+ */
1509
+ export declare const getElementsByClassName: (selector: string, parent?: ParentNode) => HTMLCollectionOf<HTMLElement>;
1510
+ /**
1511
+ * Check if element matches a CSS selector.
1512
+ *
1513
+ * @param target the target element
1514
+ * @param selector the selector to match
1515
+ * @returns the query result
1516
+ */
1517
+ export declare const matches: (target: Element, selector: string) => boolean;
1518
+ /**
1519
+ * Type definitions addapted from React 18.2
1520
+ * Project: https://react.dev/
1521
+ */
1522
+ export type NativeAnimationEvent = AnimationEvent;
1523
+ export type NativeClipboardEvent = ClipboardEvent;
1524
+ export type NativeCompositionEvent = CompositionEvent;
1525
+ export type NativeDragEvent = DragEvent;
1526
+ export type NativeFocusEvent = FocusEvent;
1527
+ export type NativeKeyboardEvent = KeyboardEvent;
1528
+ export type NativeMouseEvent = MouseEvent;
1529
+ export type NativeTouchEvent = TouchEvent;
1530
+ export type NativePointerEvent = PointerEvent;
1531
+ export type NativeTransitionEvent = TransitionEvent;
1532
+ export type NativeUIEvent = UIEvent;
1533
+ export type NativeWheelEvent = WheelEvent;
1534
+ export interface AbstractView {
1535
+ styleMedia: StyleMedia;
1536
+ document: Document;
1537
+ }
1538
+ //
1539
+ // Event System
1540
+ // ----------------------------------------------------------------------
1541
+ // E = EventObject, C = e.currentTarget, T = e.target
1542
+ export interface BaseEvent<E = Event, C = unknown, T = unknown> {
1543
+ nativeEvent: E;
1544
+ currentTarget: C | null;
1545
+ target: T & EventTarget;
1546
+ bubbles: boolean;
1547
+ cancelable: boolean;
1548
+ defaultPrevented: boolean;
1549
+ eventPhase: number;
1550
+ isTrusted: boolean;
1551
+ preventDefault(): void;
1552
+ isDefaultPrevented(): boolean;
1553
+ stopPropagation(): void;
1554
+ isPropagationStopped(): boolean;
1555
+ persist(): void;
1556
+ timeStamp: number;
1557
+ type: string;
1558
+ }
1559
+ /**
1560
+ * currentTarget - a reference to the element on which the event listener is registered.
1561
+ *
1562
+ * target - a reference to the element from which the event was originally dispatched.
1563
+ * This might be a child element to the element on which the event listener is registered.
1564
+ * If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
1565
+ */
1566
+ export type NativeEvent<T = Element, E = Event> = BaseEvent<E, T, T>;
1567
+ export interface ClipboardEvent<T = Element> extends NativeEvent<T, NativeClipboardEvent> {
1568
+ clipboardData: DataTransfer;
1569
+ }
1570
+ export interface CompositionEvent<T = Element> extends NativeEvent<T, NativeCompositionEvent> {
1571
+ data: string;
1572
+ }
1573
+ export interface DragEvent<T = Element> extends MouseEvent<T, NativeDragEvent> {
1574
+ dataTransfer: DataTransfer;
1575
+ }
1576
+ export interface PointerEvent<T = Element> extends MouseEvent<T, NativePointerEvent> {
1577
+ pointerId: number;
1578
+ pressure: number;
1579
+ tangentialPressure: number;
1580
+ tiltX: number;
1581
+ tiltY: number;
1582
+ twist: number;
1583
+ width: number;
1584
+ height: number;
1585
+ pointerType: "mouse" | "pen" | "touch";
1586
+ isPrimary: boolean;
1587
+ }
1588
+ export interface FocusEvent<T = Element, R = Element> extends NativeEvent<T, NativeFocusEvent> {
1589
+ relatedTarget: (EventTarget & R) | null;
1590
+ target: EventTarget & T;
1591
+ }
1592
+ export type FormControl = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
1593
+ export type FormEvent<T = FormControl> = NativeEvent<T>;
1594
+ export interface ChangeEvent<T = FormControl> extends FormEvent<T> {
1595
+ target: EventTarget & T;
1596
+ }
1597
+ export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
1598
+ export interface KeyboardEvent<T = Element> extends UIEvent<T, NativeKeyboardEvent> {
1599
+ altKey: boolean;
1600
+ /** @deprecated */
1601
+ charCode: number;
1602
+ ctrlKey: boolean;
1603
+ code: string;
1604
+ /**
1605
+ * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
1606
+ */
1607
+ getModifierState(key: ModifierKey): boolean;
1608
+ /**
1609
+ * See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
1610
+ */
1611
+ key: string;
1612
+ /** @deprecated */
1613
+ keyCode: number;
1614
+ locale: string;
1615
+ location: number;
1616
+ metaKey: boolean;
1617
+ repeat: boolean;
1618
+ shiftKey: boolean;
1619
+ /** @deprecated */
1620
+ which: number;
1621
+ }
1622
+ export interface MouseEvent<T = Element, E = NativeMouseEvent> extends UIEvent<T, E> {
1623
+ altKey: boolean;
1624
+ button: number;
1625
+ buttons: number;
1626
+ clientX: number;
1627
+ clientY: number;
1628
+ ctrlKey: boolean;
1629
+ /**
1630
+ * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
1631
+ */
1632
+ getModifierState(key: ModifierKey): boolean;
1633
+ metaKey: boolean;
1634
+ movementX: number;
1635
+ movementY: number;
1636
+ pageX: number;
1637
+ pageY: number;
1638
+ relatedTarget: EventTarget | null;
1639
+ screenX: number;
1640
+ screenY: number;
1641
+ shiftKey: boolean;
1642
+ }
1643
+ export interface TouchEvent<T = Element> extends UIEvent<T, NativeTouchEvent> {
1644
+ altKey: boolean;
1645
+ changedTouches: TouchList;
1646
+ ctrlKey: boolean;
1647
+ /**
1648
+ * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
1649
+ */
1650
+ getModifierState(key: ModifierKey): boolean;
1651
+ metaKey: boolean;
1652
+ shiftKey: boolean;
1653
+ targetTouches: TouchList;
1654
+ touches: TouchList;
1655
+ }
1656
+ export interface UIEvent<T = Element, E = NativeUIEvent> extends NativeEvent<T, E> {
1657
+ detail: number;
1658
+ view: AbstractView;
1659
+ }
1660
+ export interface WheelEvent<T = Element> extends MouseEvent<T, NativeWheelEvent> {
1661
+ deltaMode: number;
1662
+ deltaX: number;
1663
+ deltaY: number;
1664
+ deltaZ: number;
1665
+ }
1666
+ export interface AnimationEvent<T = Element> extends NativeEvent<T, NativeAnimationEvent> {
1667
+ animationName: string;
1668
+ elapsedTime: number;
1669
+ pseudoElement: string;
1670
+ }
1671
+ export interface TransitionEvent<T = Element> extends NativeEvent<T, NativeTransitionEvent> {
1672
+ elapsedTime: number;
1673
+ propertyName: string;
1674
+ pseudoElement: string;
1675
+ }
1676
+ //
1677
+ // Event Handler Types
1678
+ // ----------------------------------------------------------------------
1679
+ // (this: unknown & EventTarget, event: E): void;
1680
+ export type EventHandler<T = Element, E = Event | NativeEvent<T>> = (event: E) => void;
1681
+ export type NativeEventHandler<T = Element> = EventHandler<T, NativeEvent<T>>;
1682
+ export type ClipboardEventHandler<T = Element> = EventHandler<T, ClipboardEvent<T>>;
1683
+ export type CompositionEventHandler<T = Element> = EventHandler<T, CompositionEvent<T>>;
1684
+ export type DragEventHandler<T = Element> = EventHandler<T, DragEvent<T>>;
1685
+ export type FocusEventHandler<T = Element> = EventHandler<T, FocusEvent<T>>;
1686
+ export type FormEventHandler<T = Element> = EventHandler<T, FormEvent<T>>;
1687
+ export type ChangeEventHandler<T = Element> = EventHandler<T, ChangeEvent<T>>;
1688
+ export type KeyboardEventHandler<T = Element> = EventHandler<T, KeyboardEvent<T>>;
1689
+ export type MouseEventHandler<T = Element> = EventHandler<T, MouseEvent<T>>;
1690
+ export type TouchEventHandler<T = Element> = EventHandler<T, TouchEvent<T>>;
1691
+ export type PointerEventHandler<T = Element> = EventHandler<T, PointerEvent<T>>;
1692
+ export type UIEventHandler<T = Element> = EventHandler<T, UIEvent<T>>;
1693
+ export type WheelEventHandler<T = Element> = EventHandler<T, WheelEvent<T>>;
1694
+ export type AnimationEventHandler<T = Element> = EventHandler<T, AnimationEvent<T>>;
1695
+ export type TransitionEventHandler<T = Element> = EventHandler<T, TransitionEvent<T>>;
1696
+ export type PossibleEventTarget = EventTarget & (Element | Document | Window);
1697
+
1698
+ export as namespace SHORTY;
1699
+
1700
+ export {};