tiny-essentials 1.28.0 → 1.28.2

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 (323) hide show
  1. package/changelog/1/28/1.md +23 -0
  2. package/changelog/1/28/2.md +43 -0
  3. package/dist/_/numbers.d.mts +91 -16
  4. package/dist/v1/TinyAdvancedRaffle.min.js +1 -1
  5. package/dist/v1/TinyAfterScrollWatcher.min.js +1 -1
  6. package/dist/v1/TinyAnalogClock.min.js +1 -1
  7. package/dist/v1/TinyBasicsEs.min.js +1 -1
  8. package/dist/v1/TinyDayNightCycle.min.js +1 -1
  9. package/dist/v1/TinyDragDropDetector.min.js +1 -1
  10. package/dist/v1/TinyDragger.min.js +1 -1
  11. package/dist/v1/TinyElementObserver.min.js +1 -1
  12. package/dist/v1/TinyEssentials.min.js +1 -1
  13. package/dist/v1/TinyGamepad.min.js +1 -1
  14. package/dist/v1/TinyHtml.min.js +1 -1
  15. package/dist/v1/TinyI18.min.js +1 -1
  16. package/dist/v1/TinyIframeEvents.min.js +1 -1
  17. package/dist/v1/TinyLocalStorage.min.js +1 -1
  18. package/dist/v1/TinyMediaPlayer.min.js +1 -1
  19. package/dist/v1/TinyNewWinEvents.min.js +1 -1
  20. package/dist/v1/TinyNotifyCenter.min.js +1 -1
  21. package/dist/v1/TinyRadioFm.min.js +1 -1
  22. package/dist/v1/TinyRateLimiter.min.js +1 -1
  23. package/dist/v1/TinySmartScroller.min.js +1 -1
  24. package/dist/v1/TinyTextDiffer.min.js +1 -1
  25. package/dist/v1/TinyTextarea.min.js +1 -1
  26. package/dist/v1/TinyTimeout.min.js +1 -1
  27. package/dist/v1/TinyToastNotify.min.js +1 -1
  28. package/dist/v1/TinyUploadClicker.min.js +1 -1
  29. package/dist/v1/UltraRandomMsgGen.min.js +1 -1
  30. package/dist/v1/basics/array.cjs +57 -9
  31. package/dist/v1/basics/array.d.mts +28 -12
  32. package/dist/v1/basics/array.mjs +51 -9
  33. package/dist/v1/basics/clock.cjs +94 -42
  34. package/dist/v1/basics/clock.d.mts +22 -22
  35. package/dist/v1/basics/clock.mjs +91 -54
  36. package/dist/v1/basics/collision.d.mts +245 -104
  37. package/dist/v1/basics/deprecated/html.cjs +246 -0
  38. package/dist/v1/basics/deprecated/html.d.mts +63 -0
  39. package/dist/v1/basics/deprecated/html.mjs +190 -0
  40. package/dist/v1/basics/extendObjType/Buffer.d.mts +1 -1
  41. package/dist/v1/basics/fullScreen.d.mts +47 -7
  42. package/dist/v1/basics/html.cjs +149 -130
  43. package/dist/v1/basics/html.d.mts +69 -113
  44. package/dist/v1/basics/html.mjs +113 -105
  45. package/dist/v1/basics/index.cjs +2 -0
  46. package/dist/v1/basics/index.d.mts +11 -65
  47. package/dist/v1/basics/index.mjs +3 -3
  48. package/dist/v1/basics/mediaContent.cjs +116 -32
  49. package/dist/v1/basics/mediaContent.d.mts +143 -159
  50. package/dist/v1/basics/mediaContent.mjs +105 -33
  51. package/dist/v1/basics/objChecker.cjs +7 -5
  52. package/dist/v1/basics/objChecker.d.mts +5 -4
  53. package/dist/v1/basics/objChecker.mjs +6 -6
  54. package/dist/v1/basics/objFilter.cjs +71 -14
  55. package/dist/v1/basics/objFilter.d.mts +16 -19
  56. package/dist/v1/basics/objFilter.mjs +63 -14
  57. package/dist/v1/basics/simpleMath.cjs +81 -25
  58. package/dist/v1/basics/simpleMath.d.mts +22 -22
  59. package/dist/v1/basics/simpleMath.mjs +70 -27
  60. package/dist/v1/basics/text.cjs +76 -31
  61. package/dist/v1/basics/text.d.mts +64 -14
  62. package/dist/v1/basics/text.mjs +62 -31
  63. package/dist/v1/build/ColorSafeStringify.d.mts +1 -1
  64. package/dist/v1/build/TinyAdvancedRaffle.d.mts +1 -1
  65. package/dist/v1/build/TinyAfterScrollWatcher.d.mts +1 -1
  66. package/dist/v1/build/TinyAnalogClock.d.mts +1 -1
  67. package/dist/v1/build/TinyArrayComparator.d.mts +1 -1
  68. package/dist/v1/build/TinyArrayPaginator.d.mts +1 -1
  69. package/dist/v1/build/TinyClassManager.d.mts +1 -1
  70. package/dist/v1/build/TinyClipboard.d.mts +1 -1
  71. package/dist/v1/build/TinyColorConverter.d.mts +1 -1
  72. package/dist/v1/build/TinyColorValidator.d.mts +1 -1
  73. package/dist/v1/build/TinyCookieConsent.d.mts +1 -1
  74. package/dist/v1/build/TinyDayNightCycle.d.mts +1 -1
  75. package/dist/v1/build/TinyDomReadyManager.d.mts +1 -1
  76. package/dist/v1/build/TinyDragDropDetector.d.mts +1 -1
  77. package/dist/v1/build/TinyDragger.d.mts +1 -1
  78. package/dist/v1/build/TinyElementObserver.d.mts +1 -1
  79. package/dist/v1/build/TinyGamepad.d.mts +1 -1
  80. package/dist/v1/build/TinyHtml.d.mts +1 -1
  81. package/dist/v1/build/TinyI18.d.mts +1 -1
  82. package/dist/v1/build/TinyIframeEvents.d.mts +1 -1
  83. package/dist/v1/build/TinyInventory.d.mts +1 -1
  84. package/dist/v1/build/TinyInventoryTrader.d.mts +1 -1
  85. package/dist/v1/build/TinyLevelUp.d.mts +1 -1
  86. package/dist/v1/build/TinyLoadingScreen.d.mts +1 -1
  87. package/dist/v1/build/TinyLocalStorage.d.mts +1 -1
  88. package/dist/v1/build/TinyMediaPlayer.d.mts +1 -1
  89. package/dist/v1/build/TinyNeedBar.d.mts +1 -1
  90. package/dist/v1/build/TinyNewWinEvents.d.mts +1 -1
  91. package/dist/v1/build/TinyNotifications.d.mts +1 -1
  92. package/dist/v1/build/TinyNotifyCenter.d.mts +1 -1
  93. package/dist/v1/build/TinyPromiseQueue.d.mts +1 -1
  94. package/dist/v1/build/TinyRadioFm.d.mts +1 -1
  95. package/dist/v1/build/TinyRateLimiter.d.mts +1 -1
  96. package/dist/v1/build/TinySimpleDice.d.mts +1 -1
  97. package/dist/v1/build/TinySmartScroller.d.mts +1 -1
  98. package/dist/v1/build/TinyTextDiffer.d.mts +1 -1
  99. package/dist/v1/build/TinyTextRangeEditor.d.mts +1 -1
  100. package/dist/v1/build/TinyTextarea.d.mts +1 -1
  101. package/dist/v1/build/TinyTimeout.d.mts +1 -1
  102. package/dist/v1/build/TinyToastNotify.d.mts +1 -1
  103. package/dist/v1/build/TinyUploadClicker.d.mts +1 -1
  104. package/dist/v1/build/UltraRandomMsgGen.d.mts +1 -1
  105. package/dist/v1/fileManager/asyncFuncs.d.mts +13 -13
  106. package/dist/v1/fileManager/index.d.mts +3 -29
  107. package/dist/v1/fileManager/normalFuncs.d.mts +22 -22
  108. package/dist/v1/index.cjs +4 -0
  109. package/dist/v1/index.d.mts +54 -137
  110. package/dist/v1/index.mjs +4 -3
  111. package/dist/v1/libs/ColorSafeStringify.d.mts +3 -12
  112. package/dist/v1/libs/TinyAdvancedRaffle.cjs +64 -50
  113. package/dist/v1/libs/TinyAdvancedRaffle.d.mts +64 -116
  114. package/dist/v1/libs/TinyAdvancedRaffle.mjs +62 -49
  115. package/dist/v1/libs/TinyAfterScrollWatcher.cjs +17 -1
  116. package/dist/v1/libs/TinyAfterScrollWatcher.d.mts +15 -19
  117. package/dist/v1/libs/TinyAfterScrollWatcher.mjs +15 -1
  118. package/dist/v1/libs/TinyAnalogClock.cjs +60 -0
  119. package/dist/v1/libs/TinyAnalogClock.d.mts +12 -9
  120. package/dist/v1/libs/TinyAnalogClock.mjs +57 -0
  121. package/dist/v1/libs/TinyArrayComparator.d.mts +14 -20
  122. package/dist/v1/libs/TinyArrayPaginator.d.mts +22 -26
  123. package/dist/v1/libs/TinyClassManager/TinyPluginInliner.d.mts +8 -8
  124. package/dist/v1/libs/TinyClassManager.cjs +5 -7
  125. package/dist/v1/libs/TinyClassManager.d.mts +16 -16
  126. package/dist/v1/libs/TinyClassManager.mjs +5 -6
  127. package/dist/v1/libs/TinyClipboard.cjs +2 -0
  128. package/dist/v1/libs/TinyClipboard.d.mts +12 -5
  129. package/dist/v1/libs/TinyClipboard.mjs +2 -0
  130. package/dist/v1/libs/TinyColorConverter.cjs +1 -0
  131. package/dist/v1/libs/TinyColorConverter.d.mts +10 -32
  132. package/dist/v1/libs/TinyColorConverter.mjs +1 -0
  133. package/dist/v1/libs/TinyColorValidator.d.mts +145 -184
  134. package/dist/v1/libs/TinyCookieConsent.d.mts +17 -17
  135. package/dist/v1/libs/TinyDayNightCycle.cjs +67 -42
  136. package/dist/v1/libs/TinyDayNightCycle.d.mts +87 -117
  137. package/dist/v1/libs/TinyDayNightCycle.mjs +65 -41
  138. package/dist/v1/libs/TinyDomReadyManager.d.mts +8 -16
  139. package/dist/v1/libs/TinyDragDropDetector.cjs +25 -0
  140. package/dist/v1/libs/TinyDragDropDetector.d.mts +32 -26
  141. package/dist/v1/libs/TinyDragDropDetector.mjs +22 -0
  142. package/dist/v1/libs/TinyDragger.cjs +46 -19
  143. package/dist/v1/libs/TinyDragger.d.mts +82 -81
  144. package/dist/v1/libs/TinyDragger.mjs +45 -18
  145. package/dist/v1/libs/TinyElementObserver.cjs +39 -0
  146. package/dist/v1/libs/TinyElementObserver.d.mts +28 -25
  147. package/dist/v1/libs/TinyElementObserver.mjs +36 -0
  148. package/dist/v1/libs/TinyGamepad.cjs +131 -2
  149. package/dist/v1/libs/TinyGamepad.d.mts +50 -122
  150. package/dist/v1/libs/TinyGamepad.mjs +129 -2
  151. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.cjs +2 -25
  152. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.d.mts +19 -25
  153. package/dist/v1/libs/TinyHtml/TinyHtmlAnchor.mjs +3 -27
  154. package/dist/v1/libs/TinyHtml/TinyHtmlButton.cjs +2 -1
  155. package/dist/v1/libs/TinyHtml/TinyHtmlButton.d.mts +55 -55
  156. package/dist/v1/libs/TinyHtml/TinyHtmlButton.mjs +2 -1
  157. package/dist/v1/libs/TinyHtml/TinyHtmlCanvas.d.mts +6 -6
  158. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.cjs +8 -4
  159. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.d.mts +19 -21
  160. package/dist/v1/libs/TinyHtml/TinyHtmlDatalist.mjs +7 -4
  161. package/dist/v1/libs/TinyHtml/TinyHtmlEmbed.d.mts +8 -8
  162. package/dist/v1/libs/TinyHtml/TinyHtmlForm.d.mts +18 -18
  163. package/dist/v1/libs/TinyHtml/TinyHtmlIcon.d.mts +5 -6
  164. package/dist/v1/libs/TinyHtml/TinyHtmlIframe.d.mts +19 -19
  165. package/dist/v1/libs/TinyHtml/TinyHtmlImage.cjs +0 -28
  166. package/dist/v1/libs/TinyHtml/TinyHtmlImage.d.mts +22 -28
  167. package/dist/v1/libs/TinyHtml/TinyHtmlImage.mjs +1 -27
  168. package/dist/v1/libs/TinyHtml/TinyHtmlInput.d.mts +11 -11
  169. package/dist/v1/libs/TinyHtml/TinyHtmlLink.d.mts +23 -23
  170. package/dist/v1/libs/TinyHtml/TinyHtmlMedia.d.mts +26 -26
  171. package/dist/v1/libs/TinyHtml/TinyHtmlScript.cjs +4 -30
  172. package/dist/v1/libs/TinyHtml/TinyHtmlScript.d.mts +20 -26
  173. package/dist/v1/libs/TinyHtml/TinyHtmlScript.mjs +5 -32
  174. package/dist/v1/libs/TinyHtml/TinyHtmlSelect.d.mts +19 -19
  175. package/dist/v1/libs/TinyHtml/TinyHtmlStyle.d.mts +8 -8
  176. package/dist/v1/libs/TinyHtml/TinyHtmlTemplate.d.mts +26 -28
  177. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.cjs +14 -15
  178. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.d.mts +32 -32
  179. package/dist/v1/libs/TinyHtml/TinyHtmlTextarea.mjs +15 -15
  180. package/dist/v1/libs/TinyHtml/index.d.mts +102 -45
  181. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.cjs +11 -9
  182. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.d.mts +21 -21
  183. package/dist/v1/libs/TinyHtml/input/TinyHtmlColorInput.mjs +11 -9
  184. package/dist/v1/libs/TinyHtml/input/TinyHtmlFileInput.d.mts +11 -11
  185. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.cjs +4 -4
  186. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.d.mts +17 -13
  187. package/dist/v1/libs/TinyHtml/input/TinyHtmlHiddenInput.mjs +4 -4
  188. package/dist/v1/libs/TinyHtml/input/TinyHtmlImageInput.d.mts +21 -21
  189. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.cjs +5 -4
  190. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.d.mts +14 -14
  191. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlButtonInput.mjs +5 -4
  192. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.cjs +4 -3
  193. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.d.mts +10 -10
  194. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlResetInput.mjs +4 -3
  195. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.cjs +4 -3
  196. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.d.mts +19 -19
  197. package/dist/v1/libs/TinyHtml/input/button/TinyHtmlSubmitInput.mjs +4 -3
  198. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.cjs +5 -4
  199. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.d.mts +11 -11
  200. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlCheckboxInput.mjs +5 -4
  201. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.cjs +4 -3
  202. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.d.mts +15 -11
  203. package/dist/v1/libs/TinyHtml/input/check/TinyHtmlRadioInput.mjs +4 -3
  204. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.cjs +49 -21
  205. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.d.mts +34 -20
  206. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateInput.mjs +45 -20
  207. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.cjs +1 -1
  208. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.d.mts +14 -14
  209. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlDateTimeInput.mjs +1 -1
  210. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.cjs +1 -1
  211. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.d.mts +14 -14
  212. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlMonthInput.mjs +1 -1
  213. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.cjs +48 -25
  214. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.d.mts +27 -21
  215. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlTimeInput.mjs +40 -27
  216. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.cjs +1 -1
  217. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.d.mts +14 -14
  218. package/dist/v1/libs/TinyHtml/input/date/TinyHtmlWeekInput.mjs +1 -1
  219. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlNumberInput.d.mts +14 -14
  220. package/dist/v1/libs/TinyHtml/input/number/TinyHtmlRangeInput.d.mts +14 -14
  221. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlEmailInput.d.mts +25 -21
  222. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlPasswordInput.d.mts +18 -18
  223. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlSearchInput.d.mts +33 -29
  224. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTelInput.d.mts +22 -22
  225. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlTextInput.d.mts +18 -18
  226. package/dist/v1/libs/TinyHtml/input/text/TinyHtmlUrlInput.d.mts +31 -27
  227. package/dist/v1/libs/TinyHtml/media/TinyHtmlAudio.d.mts +35 -11
  228. package/dist/v1/libs/TinyHtml/media/TinyHtmlObject.d.mts +10 -10
  229. package/dist/v1/libs/TinyHtml/media/TinyHtmlSource.d.mts +12 -12
  230. package/dist/v1/libs/TinyHtml/media/TinyHtmlVideo.d.mts +35 -27
  231. package/dist/v1/libs/TinyHtml.cjs +4 -5
  232. package/dist/v1/libs/TinyHtml.d.mts +1503 -1731
  233. package/dist/v1/libs/TinyHtml.mjs +5 -6
  234. package/dist/v1/libs/TinyI18.cjs +61 -0
  235. package/dist/v1/libs/TinyI18.d.mts +34 -58
  236. package/dist/v1/libs/TinyI18.mjs +55 -0
  237. package/dist/v1/libs/TinyIframeEvents.cjs +19 -2
  238. package/dist/v1/libs/TinyIframeEvents.d.mts +29 -38
  239. package/dist/v1/libs/TinyIframeEvents.mjs +19 -2
  240. package/dist/v1/libs/TinyInventory.d.mts +78 -141
  241. package/dist/v1/libs/TinyInventoryTrader.d.mts +19 -22
  242. package/dist/v1/libs/TinyLevelUp.d.mts +10 -13
  243. package/dist/v1/libs/TinyLoadingScreen.d.mts +21 -31
  244. package/dist/v1/libs/TinyLocalStorage.cjs +48 -0
  245. package/dist/v1/libs/TinyLocalStorage.d.mts +11 -30
  246. package/dist/v1/libs/TinyLocalStorage.mjs +45 -0
  247. package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +37 -23
  248. package/dist/v1/libs/TinyMediaPlayer.cjs +77 -3
  249. package/dist/v1/libs/TinyMediaPlayer.d.mts +109 -106
  250. package/dist/v1/libs/TinyMediaPlayer.mjs +71 -3
  251. package/dist/v1/libs/TinyNeedBar.d.mts +25 -37
  252. package/dist/v1/libs/TinyNewWinEvents.cjs +29 -0
  253. package/dist/v1/libs/TinyNewWinEvents.d.mts +32 -29
  254. package/dist/v1/libs/TinyNewWinEvents.mjs +26 -0
  255. package/dist/v1/libs/TinyNotifications.d.mts +6 -6
  256. package/dist/v1/libs/TinyNotifyCenter.cjs +36 -0
  257. package/dist/v1/libs/TinyNotifyCenter.d.mts +15 -15
  258. package/dist/v1/libs/TinyNotifyCenter.mjs +32 -0
  259. package/dist/v1/libs/TinyPromiseQueue.d.mts +11 -11
  260. package/dist/v1/libs/TinyRadioFm.cjs +70 -12
  261. package/dist/v1/libs/TinyRadioFm.d.mts +45 -80
  262. package/dist/v1/libs/TinyRadioFm.mjs +64 -12
  263. package/dist/v1/libs/TinyRateLimiter.cjs +52 -0
  264. package/dist/v1/libs/TinyRateLimiter.d.mts +29 -36
  265. package/dist/v1/libs/TinyRateLimiter.mjs +48 -0
  266. package/dist/v1/libs/TinySimpleDice.d.mts +17 -36
  267. package/dist/v1/libs/TinySmartScroller.cjs +52 -3
  268. package/dist/v1/libs/TinySmartScroller.d.mts +62 -70
  269. package/dist/v1/libs/TinySmartScroller.mjs +51 -5
  270. package/dist/v1/libs/TinyTextDiffer.cjs +19 -18
  271. package/dist/v1/libs/TinyTextDiffer.d.mts +11 -13
  272. package/dist/v1/libs/TinyTextDiffer.mjs +16 -17
  273. package/dist/v1/libs/TinyTextRangeEditor.d.mts +8 -8
  274. package/dist/v1/libs/TinyTextarea.cjs +19 -0
  275. package/dist/v1/libs/TinyTextarea.d.mts +34 -28
  276. package/dist/v1/libs/TinyTextarea.mjs +17 -0
  277. package/dist/v1/libs/TinyTimeout.cjs +11 -1
  278. package/dist/v1/libs/TinyTimeout.d.mts +14 -14
  279. package/dist/v1/libs/TinyTimeout.mjs +9 -1
  280. package/dist/v1/libs/TinyToastNotify.cjs +36 -1
  281. package/dist/v1/libs/TinyToastNotify.d.mts +15 -17
  282. package/dist/v1/libs/TinyToastNotify.mjs +32 -1
  283. package/dist/v1/libs/TinyUploadClicker.cjs +19 -0
  284. package/dist/v1/libs/TinyUploadClicker.d.mts +38 -8
  285. package/dist/v1/libs/TinyUploadClicker.mjs +17 -0
  286. package/dist/v1/libs/UltraRandomMsgGen.cjs +148 -35
  287. package/dist/v1/libs/UltraRandomMsgGen.d.mts +52 -78
  288. package/dist/v1/libs/UltraRandomMsgGen.mjs +133 -34
  289. package/dist/v1/libs/utils.cjs +21 -0
  290. package/dist/v1/libs/utils.d.mts +6 -0
  291. package/dist/v1/libs/utils.mjs +16 -0
  292. package/docs/v1/README.md +1 -0
  293. package/docs/v1/basics/array.md +2 -2
  294. package/docs/v1/basics/deprecated/html.md +17 -0
  295. package/docs/v1/basics/fullScreen.md +1 -1
  296. package/docs/v1/basics/html.md +12 -26
  297. package/docs/v1/basics/mediaContent.md +1 -1
  298. package/docs/v1/basics/objChecker.md +1 -1
  299. package/docs/v1/basics/text.md +2 -2
  300. package/docs/v1/fileManager/main.md +1 -1
  301. package/docs/v1/libs/ColorSafeStringify.md +1 -1
  302. package/docs/v1/libs/TinyAfterScrollWatcher.md +1 -1
  303. package/docs/v1/libs/TinyAnalogClock.md +1 -1
  304. package/docs/v1/libs/TinyArrayComparator.md +1 -1
  305. package/docs/v1/libs/TinyArrayPaginator.md +1 -1
  306. package/docs/v1/libs/TinyClassManager/TinyPluginInliner.md +2 -2
  307. package/docs/v1/libs/TinyClassManager.md +1 -1
  308. package/docs/v1/libs/TinyClipboard.md +1 -1
  309. package/docs/v1/libs/TinyCookieConsent.md +1 -1
  310. package/docs/v1/libs/TinyDomReadyManager.md +1 -1
  311. package/docs/v1/libs/TinyDragDropDetector.md +1 -1
  312. package/docs/v1/libs/TinyDragger.md +1 -1
  313. package/docs/v1/libs/TinyElementObserver.md +1 -1
  314. package/docs/v1/libs/TinyHtml.md +1 -1
  315. package/docs/v1/libs/TinyIframeEvents.md +2 -2
  316. package/docs/v1/libs/TinyLevelUp.md +1 -1
  317. package/docs/v1/libs/TinyLoadingScreen.md +1 -1
  318. package/docs/v1/libs/TinyNewWinEvents.md +2 -2
  319. package/docs/v1/libs/TinyNotifications.md +1 -1
  320. package/docs/v1/libs/TinyPromiseQueue.md +2 -2
  321. package/docs/v1/libs/TinyTextDiffer.md +1 -1
  322. package/docs/v1/libs/TinyTextarea.md +1 -1
  323. package/package.json +11 -2
@@ -1,21 +1,20 @@
1
- export default TinyDragDropDetector;
2
1
  export type DragAndDropOptions = {
3
2
  /**
4
3
  * - CSS class applied to the target element while files are being dragged over it.
5
4
  */
6
- hoverClass?: string | undefined;
5
+ hoverClass?: string;
7
6
  /**
8
7
  * - Callback function executed when files are dropped onto the target.
9
8
  */
10
- onDrop?: ((files: FileList, event: DragEvent) => void) | undefined;
9
+ onDrop?: (files: FileList, event: DragEvent) => void;
11
10
  /**
12
11
  * - Optional callback triggered when dragging enters the target area.
13
12
  */
14
- onEnter?: ((event: DragEvent) => void) | undefined;
13
+ onEnter?: (event: DragEvent) => void;
15
14
  /**
16
15
  * - Optional callback triggered when dragging leaves the target area.
17
16
  */
18
- onLeave?: ((event: DragEvent) => void) | undefined;
17
+ onLeave?: (event: DragEvent) => void;
19
18
  };
20
19
  /**
21
20
  * @typedef {Object} DragAndDropOptions
@@ -34,6 +33,13 @@ export type DragAndDropOptions = {
34
33
  * @template {HTMLElement} HTMLTarget
35
34
  */
36
35
  declare class TinyDragDropDetector<HTMLTarget extends HTMLElement> {
36
+ #private;
37
+ /**
38
+ * Gets the current destruction status of the instance.
39
+ *
40
+ * @returns {boolean} True if the instance is destroyed, false otherwise.
41
+ */
42
+ get destroyed(): boolean;
37
43
  /**
38
44
  * Creates a new instance of TinyDragDropDetector to handle drag-and-drop file detection.
39
45
  *
@@ -46,6 +52,26 @@ declare class TinyDragDropDetector<HTMLTarget extends HTMLElement> {
46
52
  * @throws {TypeError} If `onLeave` is defined but not a function.
47
53
  */
48
54
  constructor(target: HTMLTarget, options: DragAndDropOptions);
55
+ /**
56
+ * Returns the current target DOM element where the listeners are attached.
57
+ * @returns {HTMLTarget}
58
+ */
59
+ getTarget(): HTMLTarget;
60
+ /**
61
+ * Returns the CSS class applied during drag hover.
62
+ * @returns {string}
63
+ */
64
+ getHoverClass(): string;
65
+ /**
66
+ * Returns whether a drag operation is currently active over the target.
67
+ * @returns {boolean}
68
+ */
69
+ isDragging(): boolean;
70
+ /**
71
+ * Returns whether the event listeners are currently bound to the target.
72
+ * @returns {boolean}
73
+ */
74
+ bound(): boolean;
49
75
  /**
50
76
  * Handles the `dragenter` event.
51
77
  * Adds the hover CSS class and triggers the `onEnter` callback if provided.
@@ -78,32 +104,12 @@ declare class TinyDragDropDetector<HTMLTarget extends HTMLElement> {
78
104
  * @returns {void}
79
105
  */
80
106
  private _handleDrop;
81
- /**
82
- * Returns the current target DOM element where the listeners are attached.
83
- * @returns {HTMLTarget}
84
- */
85
- getTarget(): HTMLTarget;
86
- /**
87
- * Returns the CSS class applied during drag hover.
88
- * @returns {string}
89
- */
90
- getHoverClass(): string;
91
- /**
92
- * Returns whether a drag operation is currently active over the target.
93
- * @returns {boolean}
94
- */
95
- isDragging(): boolean;
96
- /**
97
- * Returns whether the event listeners are currently bound to the target.
98
- * @returns {boolean}
99
- */
100
- bound(): boolean;
101
107
  /**
102
108
  * Destroys the detector instance, unbinding all event listeners and cleaning up.
103
109
  * Should be called when the detector is no longer needed to avoid memory leaks.
104
110
  * @returns {void}
105
111
  */
106
112
  destroy(): void;
107
- #private;
108
113
  }
114
+ export default TinyDragDropDetector;
109
115
  //# sourceMappingURL=TinyDragDropDetector.d.mts.map
@@ -1,3 +1,5 @@
1
+ import { createCheckDestroyed } from './utils.mjs';
2
+ const checkDestroy = createCheckDestroyed('TinyDragDropDetector');
1
3
  /**
2
4
  * @typedef {Object} DragAndDropOptions
3
5
  * @property {string} [hoverClass="dnd-hover"] - CSS class applied to the target element while files are being dragged over it.
@@ -29,6 +31,19 @@ class TinyDragDropDetector {
29
31
  #isDragging;
30
32
  /** @type {boolean} */
31
33
  #bound;
34
+ /**
35
+ * Tracks whether the instance has been destroyed.
36
+ * @type {boolean}
37
+ */
38
+ #destroyed = false;
39
+ /**
40
+ * Gets the current destruction status of the instance.
41
+ *
42
+ * @returns {boolean} True if the instance is destroyed, false otherwise.
43
+ */
44
+ get destroyed() {
45
+ return this.#destroyed;
46
+ }
32
47
  /**
33
48
  * Creates a new instance of TinyDragDropDetector to handle drag-and-drop file detection.
34
49
  *
@@ -77,6 +92,7 @@ class TinyDragDropDetector {
77
92
  * @returns {HTMLTarget}
78
93
  */
79
94
  getTarget() {
95
+ checkDestroy(this.#destroyed);
80
96
  return this.#target;
81
97
  }
82
98
  /**
@@ -84,6 +100,7 @@ class TinyDragDropDetector {
84
100
  * @returns {string}
85
101
  */
86
102
  getHoverClass() {
103
+ checkDestroy(this.#destroyed);
87
104
  return this.#hoverClass;
88
105
  }
89
106
  /**
@@ -91,6 +108,7 @@ class TinyDragDropDetector {
91
108
  * @returns {boolean}
92
109
  */
93
110
  isDragging() {
111
+ checkDestroy(this.#destroyed);
94
112
  return this.#isDragging;
95
113
  }
96
114
  /**
@@ -98,6 +116,7 @@ class TinyDragDropDetector {
98
116
  * @returns {boolean}
99
117
  */
100
118
  bound() {
119
+ checkDestroy(this.#destroyed);
101
120
  return this.#bound;
102
121
  }
103
122
  /**
@@ -205,9 +224,12 @@ class TinyDragDropDetector {
205
224
  * @returns {void}
206
225
  */
207
226
  destroy() {
227
+ if (this.#destroyed)
228
+ return;
208
229
  this.#unbindEvents();
209
230
  const target = this.getTarget();
210
231
  target.classList.remove(this.#hoverClass);
232
+ this.#destroyed = true;
211
233
  }
212
234
  }
213
235
  export default TinyDragDropDetector;
@@ -3,6 +3,9 @@
3
3
  var TinyHtml = require('./TinyHtml.cjs');
4
4
  var collision = require('../basics/collision.cjs');
5
5
  var objChecker = require('../basics/objChecker.cjs');
6
+ var utils = require('./utils.cjs');
7
+
8
+ const checkDestroy = utils.createCheckDestroyed('TinyDragger');
6
9
 
7
10
  /**
8
11
  * @typedef {Object} VibrationPatterns
@@ -196,7 +199,7 @@ class TinyDragger {
196
199
  * Enables the drag functionality.
197
200
  */
198
201
  enable() {
199
- this.#checkDestroy();
202
+ checkDestroy(this.#destroyed);
200
203
  if (this.#jail) this.#jail.classList.add(this.#classJailDragDisabled);
201
204
  this.#enabled = true;
202
205
  }
@@ -205,6 +208,7 @@ class TinyDragger {
205
208
  * Disables the drag functionality.
206
209
  */
207
210
  disable() {
211
+ checkDestroy(this.#destroyed);
208
212
  if (this.#jail) this.#jail.classList.remove(this.#classJailDragDisabled);
209
213
  this.#enabled = false;
210
214
  }
@@ -215,7 +219,7 @@ class TinyDragger {
215
219
  * @throws {Error} If the element is not a valid HTMLElement.
216
220
  */
217
221
  addCollidable(element) {
218
- this.#checkDestroy();
222
+ checkDestroy(this.#destroyed);
219
223
  if (!(element instanceof HTMLElement))
220
224
  throw new Error('addCollidable expects an HTMLElement as argument.');
221
225
  if (!this.#collidables.includes(element)) this.#collidables.push(element);
@@ -227,7 +231,7 @@ class TinyDragger {
227
231
  * @throws {Error} If the element is not a valid HTMLElement.
228
232
  */
229
233
  removeCollidable(element) {
230
- this.#checkDestroy();
234
+ checkDestroy(this.#destroyed);
231
235
  if (!(element instanceof HTMLElement))
232
236
  throw new Error('removeCollidable expects an HTMLElement as argument.');
233
237
  this.#collidables = this.#collidables.filter((el) => el !== element);
@@ -248,7 +252,7 @@ class TinyDragger {
248
252
  collidePattern = false,
249
253
  movePattern = false,
250
254
  } = {}) {
251
- this.#checkDestroy();
255
+ checkDestroy(this.#destroyed);
252
256
 
253
257
  /** @param {any} value */
254
258
  const isValidPattern = (value) =>
@@ -275,7 +279,7 @@ class TinyDragger {
275
279
  * Disables all vibration feedback.
276
280
  */
277
281
  disableVibration() {
278
- this.#checkDestroy();
282
+ checkDestroy(this.#destroyed);
279
283
  this.#vibration = { start: false, end: false, collide: false, move: false };
280
284
  }
281
285
 
@@ -286,7 +290,7 @@ class TinyDragger {
286
290
  * @throws {Error} If event is not a MouseEvent or Touch with clientX/clientY.
287
291
  */
288
292
  getOffset(event) {
289
- this.#checkDestroy();
293
+ checkDestroy(this.#destroyed);
290
294
  if (
291
295
  (!(event instanceof MouseEvent) && !(event instanceof Touch)) ||
292
296
  typeof event.clientX !== 'number' ||
@@ -392,6 +396,7 @@ class TinyDragger {
392
396
  * @param {MouseEvent|Touch} event - The drag event.
393
397
  */
394
398
  checkDragCollision(event) {
399
+ checkDestroy(this.#destroyed);
395
400
  const { collidedElements } = this.execCollision(event);
396
401
  const first = collidedElements[0] || null;
397
402
 
@@ -468,6 +473,7 @@ class TinyDragger {
468
473
  * @returns {{ inJail: boolean; collidedElements: (HTMLElement | null)[] }}
469
474
  */
470
475
  execCollision(event) {
476
+ checkDestroy(this.#destroyed);
471
477
  if (this.#destroyed || !this.#dragProxy) return { inJail: false, collidedElements: [] };
472
478
 
473
479
  let collidedElements = [];
@@ -596,7 +602,7 @@ class TinyDragger {
596
602
  * @throws {Error} If the input is not a valid DOMRect with numeric bounds.
597
603
  */
598
604
  getAllCollidedElementsByRect(rect) {
599
- this.#checkDestroy();
605
+ checkDestroy(this.#destroyed);
600
606
  if (
601
607
  !(rect instanceof DOMRect) ||
602
608
  typeof rect.left !== 'number' ||
@@ -615,7 +621,7 @@ class TinyDragger {
615
621
  * @throws {Error} If rect is not a DOMRect with valid numeric properties.
616
622
  */
617
623
  getCollidedElementByRect(rect) {
618
- this.#checkDestroy();
624
+ checkDestroy(this.#destroyed);
619
625
  if (
620
626
  !(rect instanceof DOMRect) ||
621
627
  typeof rect.left !== 'number' ||
@@ -646,7 +652,7 @@ class TinyDragger {
646
652
  * @returns {HTMLElement[]} The collided element or null.
647
653
  */
648
654
  getAllCollidedElements(x, y) {
649
- this.#checkDestroy();
655
+ checkDestroy(this.#destroyed);
650
656
  if (typeof x !== 'number' || typeof y !== 'number')
651
657
  throw new Error('getCollidedElement expects numeric x and y coordinates.');
652
658
  return this.#collidables.filter((el) => this.#getCollidedElement(el, x, y));
@@ -659,7 +665,7 @@ class TinyDragger {
659
665
  * @returns {HTMLElement|null} The collided element or null.
660
666
  */
661
667
  getCollidedElement(x, y) {
662
- this.#checkDestroy();
668
+ checkDestroy(this.#destroyed);
663
669
  if (typeof x !== 'number' || typeof y !== 'number')
664
670
  throw new Error('getCollidedElement expects numeric x and y coordinates.');
665
671
  return this.#collidables.find((el) => this.#getCollidedElement(el, x, y)) || null;
@@ -679,6 +685,7 @@ class TinyDragger {
679
685
  * @returns {boolean}
680
686
  */
681
687
  getDragging() {
688
+ checkDestroy(this.#destroyed);
682
689
  return this.#dragging;
683
690
  }
684
691
 
@@ -687,6 +694,7 @@ class TinyDragger {
687
694
  * @returns {boolean}
688
695
  */
689
696
  getLockInsideJail() {
697
+ checkDestroy(this.#destroyed);
690
698
  return this.#lockInsideJail;
691
699
  }
692
700
 
@@ -695,6 +703,7 @@ class TinyDragger {
695
703
  * @param {boolean} value
696
704
  */
697
705
  setLockInsideJail(value) {
706
+ checkDestroy(this.#destroyed);
698
707
  if (typeof value !== 'boolean') throw new Error('lockInsideJail must be a boolean.');
699
708
  this.#lockInsideJail = value;
700
709
  }
@@ -704,6 +713,7 @@ class TinyDragger {
704
713
  * @returns {boolean}
705
714
  */
706
715
  getRevertOnDrop() {
716
+ checkDestroy(this.#destroyed);
707
717
  return this.#revertOnDrop;
708
718
  }
709
719
 
@@ -712,6 +722,7 @@ class TinyDragger {
712
722
  * @param {boolean} value
713
723
  */
714
724
  setRevertOnDrop(value) {
725
+ checkDestroy(this.#destroyed);
715
726
  if (typeof value !== 'boolean') throw new Error('revertOnDrop must be a boolean.');
716
727
  this.#revertOnDrop = value;
717
728
  }
@@ -721,6 +732,7 @@ class TinyDragger {
721
732
  * @returns {boolean}
722
733
  */
723
734
  getCollisionByMouse() {
735
+ checkDestroy(this.#destroyed);
724
736
  return this.#collisionByMouse;
725
737
  }
726
738
 
@@ -729,6 +741,7 @@ class TinyDragger {
729
741
  * @param {boolean} value
730
742
  */
731
743
  setCollisionByMouse(value) {
744
+ checkDestroy(this.#destroyed);
732
745
  if (typeof value !== 'boolean') throw new Error('collisionByMouse must be a boolean.');
733
746
  this.#collisionByMouse = value;
734
747
  }
@@ -738,6 +751,7 @@ class TinyDragger {
738
751
  * @returns {boolean}
739
752
  */
740
753
  getDropInJailOnly() {
754
+ checkDestroy(this.#destroyed);
741
755
  return this.#dropInJailOnly;
742
756
  }
743
757
 
@@ -746,6 +760,7 @@ class TinyDragger {
746
760
  * @param {boolean} value
747
761
  */
748
762
  setDropInJailOnly(value) {
763
+ checkDestroy(this.#destroyed);
749
764
  if (typeof value !== 'boolean') throw new Error('dropInJailOnly must be a boolean.');
750
765
  this.#dropInJailOnly = value;
751
766
  }
@@ -755,6 +770,7 @@ class TinyDragger {
755
770
  * @returns {number}
756
771
  */
757
772
  getDefaultZIndex() {
773
+ checkDestroy(this.#destroyed);
758
774
  return this.#defaultZIndex;
759
775
  }
760
776
 
@@ -763,6 +779,7 @@ class TinyDragger {
763
779
  * @param {number} newZIndex
764
780
  */
765
781
  setDefaultZIndex(newZIndex) {
782
+ checkDestroy(this.#destroyed);
766
783
  if (typeof newZIndex !== 'number' || !Number.isFinite(newZIndex))
767
784
  throw new TypeError('Z-index must be a finite number.');
768
785
  this.#defaultZIndex = newZIndex;
@@ -773,6 +790,7 @@ class TinyDragger {
773
790
  * @returns {boolean}
774
791
  */
775
792
  isMirrorEnabled() {
793
+ checkDestroy(this.#destroyed);
776
794
  return this.#mirrorElem;
777
795
  }
778
796
 
@@ -781,6 +799,7 @@ class TinyDragger {
781
799
  * @param {boolean} useMirror
782
800
  */
783
801
  setMirrorEnabled(useMirror) {
802
+ checkDestroy(this.#destroyed);
784
803
  if (typeof useMirror !== 'boolean') throw new TypeError('Mirror setting must be a boolean.');
785
804
 
786
805
  this.#mirrorElem = useMirror;
@@ -791,6 +810,7 @@ class TinyDragger {
791
810
  * @returns {HTMLElement}
792
811
  */
793
812
  getTarget() {
813
+ checkDestroy(this.#destroyed);
794
814
  return this.#target;
795
815
  }
796
816
 
@@ -799,6 +819,7 @@ class TinyDragger {
799
819
  * @returns {HTMLElement|null}
800
820
  */
801
821
  getJail() {
822
+ checkDestroy(this.#destroyed);
802
823
  return this.#jail;
803
824
  }
804
825
 
@@ -807,6 +828,7 @@ class TinyDragger {
807
828
  * @returns {HTMLElement|null}
808
829
  */
809
830
  getDragProxy() {
831
+ checkDestroy(this.#destroyed);
810
832
  return this.#dragProxy;
811
833
  }
812
834
 
@@ -815,6 +837,7 @@ class TinyDragger {
815
837
  * @returns {HTMLElement|null}
816
838
  */
817
839
  getLastCollision() {
840
+ checkDestroy(this.#destroyed);
818
841
  return this.#lastCollision;
819
842
  }
820
843
 
@@ -823,6 +846,7 @@ class TinyDragger {
823
846
  * @returns {HTMLElement[]}
824
847
  */
825
848
  getCollidables() {
849
+ checkDestroy(this.#destroyed);
826
850
  return [...this.#collidables];
827
851
  }
828
852
 
@@ -831,6 +855,7 @@ class TinyDragger {
831
855
  * @returns {string}
832
856
  */
833
857
  getDragHiddenClass() {
858
+ checkDestroy(this.#destroyed);
834
859
  return this.#dragHiddenClass;
835
860
  }
836
861
 
@@ -839,6 +864,7 @@ class TinyDragger {
839
864
  * @returns {string}
840
865
  */
841
866
  getClassDragging() {
867
+ checkDestroy(this.#destroyed);
842
868
  return this.#classDragging;
843
869
  }
844
870
 
@@ -847,6 +873,7 @@ class TinyDragger {
847
873
  * @returns {string}
848
874
  */
849
875
  getClassBodyDragging() {
876
+ checkDestroy(this.#destroyed);
850
877
  return this.#classBodyDragging;
851
878
  }
852
879
 
@@ -855,6 +882,7 @@ class TinyDragger {
855
882
  * @returns {string}
856
883
  */
857
884
  getClassJailDragging() {
885
+ checkDestroy(this.#destroyed);
858
886
  return this.#classJailDragging;
859
887
  }
860
888
 
@@ -863,6 +891,7 @@ class TinyDragger {
863
891
  * @returns {string}
864
892
  */
865
893
  getClassJailDragDisabled() {
894
+ checkDestroy(this.#destroyed);
866
895
  return this.#classJailDragDisabled;
867
896
  }
868
897
 
@@ -871,6 +900,7 @@ class TinyDragger {
871
900
  * @returns {string}
872
901
  */
873
902
  getClassDragCollision() {
903
+ checkDestroy(this.#destroyed);
874
904
  return this.#classDragCollision;
875
905
  }
876
906
 
@@ -879,6 +909,7 @@ class TinyDragger {
879
909
  * @returns {VibrationPatterns}
880
910
  */
881
911
  getVibrations() {
912
+ checkDestroy(this.#destroyed);
882
913
  return { ...this.#vibration };
883
914
  }
884
915
 
@@ -887,6 +918,7 @@ class TinyDragger {
887
918
  * @returns {number[]|boolean}
888
919
  */
889
920
  getStartVibration() {
921
+ checkDestroy(this.#destroyed);
890
922
  return this.#vibration.start;
891
923
  }
892
924
 
@@ -895,6 +927,7 @@ class TinyDragger {
895
927
  * @returns {number[]|boolean}
896
928
  */
897
929
  getEndVibration() {
930
+ checkDestroy(this.#destroyed);
898
931
  return this.#vibration.end;
899
932
  }
900
933
 
@@ -903,6 +936,7 @@ class TinyDragger {
903
936
  * @returns {number[]|boolean}
904
937
  */
905
938
  getCollideVibration() {
939
+ checkDestroy(this.#destroyed);
906
940
  return this.#vibration.collide;
907
941
  }
908
942
 
@@ -911,6 +945,7 @@ class TinyDragger {
911
945
  * @returns {number[]|boolean}
912
946
  */
913
947
  getMoveVibration() {
948
+ checkDestroy(this.#destroyed);
914
949
  return this.#vibration.move;
915
950
  }
916
951
 
@@ -919,18 +954,10 @@ class TinyDragger {
919
954
  * @returns {boolean}
920
955
  */
921
956
  isEnabled() {
957
+ checkDestroy(this.#destroyed);
922
958
  return this.#enabled;
923
959
  }
924
960
 
925
- /**
926
- * Internal method to verify if the instance has been destroyed.
927
- * Throws an error if any operation is attempted after destruction.
928
- */
929
- #checkDestroy() {
930
- if (this.#destroyed)
931
- throw new Error('This TinyDragger instance has been destroyed and can no longer be used.');
932
- }
933
-
934
961
  /**
935
962
  * Completely disables drag-and-drop and cleans up all event listeners.
936
963
  * Does NOT remove the original HTML element.