vevet 1.4.27 → 2.0.1-dev.3

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 (360) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +7 -71
  3. package/build/cdn/index.js +12 -0
  4. package/build/cdn/index.js.LICENSE.txt +14 -0
  5. package/build/cjs/app/Application.js +297 -0
  6. package/build/cjs/app/events/PageLoad.js +74 -0
  7. package/build/cjs/app/events/Viewport.js +303 -0
  8. package/build/cjs/base/Callbacks.js +232 -0
  9. package/build/cjs/base/Component.js +56 -0
  10. package/build/cjs/base/Module.js +262 -0
  11. package/build/cjs/base/MutableProp.js +165 -0
  12. package/build/cjs/base/Plugin.js +56 -0
  13. package/build/cjs/components/animation-frame/AnimationFrame.js +183 -0
  14. package/build/cjs/components/canvas/Ctx2D.js +200 -0
  15. package/build/cjs/components/canvas/Ctx2DPrerender.js +72 -0
  16. package/build/cjs/components/cursor/CustomCursor.js +344 -0
  17. package/build/cjs/components/dragger/Dragger.js +229 -0
  18. package/build/cjs/components/dragger/DraggerDirection.js +77 -0
  19. package/build/cjs/components/dragger/DraggerMove.js +84 -0
  20. package/build/cjs/components/loading/Preloader.js +229 -0
  21. package/build/cjs/components/loading/ProgressPreloader.js +377 -0
  22. package/build/cjs/components/page/Page.js +353 -0
  23. package/build/cjs/components/scroll/custom-scroll/CustomScroll.js +517 -0
  24. package/build/cjs/components/scroll/plugins/SmoothScrollDragPlugin.js +178 -0
  25. package/build/cjs/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +138 -0
  26. package/build/cjs/components/scroll/scrollable/ScrollEventsBase.js +133 -0
  27. package/build/cjs/components/scroll/scrollable/ScrollView.js +315 -0
  28. package/build/cjs/components/scroll/scrollbar/Bar.js +315 -0
  29. package/build/cjs/components/scroll/scrollbar/ScrollBar.js +206 -0
  30. package/build/cjs/components/scroll/smooth-scroll/SmoothScroll.js +625 -0
  31. package/build/cjs/components/scroll/types.js +2 -0
  32. package/build/cjs/components/split-text/SplitText.js +233 -0
  33. package/build/cjs/components/text/SplitText.js +329 -0
  34. package/build/cjs/components/timeline/StaticTimeline.js +137 -0
  35. package/build/cjs/components/timeline/Timeline.js +190 -0
  36. package/build/cjs/index.js +87 -0
  37. package/build/cjs/utils/common/index.js +12 -0
  38. package/build/cjs/utils/common/mergeWithoutArrays.js +19 -0
  39. package/build/cjs/utils/common/randID.js +11 -0
  40. package/build/cjs/utils/common/timeoutCallback.js +17 -0
  41. package/build/cjs/utils/errors.js +8 -0
  42. package/build/cjs/utils/listeners/index.js +10 -0
  43. package/build/cjs/utils/listeners/intersectionObserverSupported.js +11 -0
  44. package/build/cjs/utils/listeners/onScroll.js +47 -0
  45. package/build/cjs/utils/math/boundVal.js +16 -0
  46. package/build/cjs/utils/math/index.js +12 -0
  47. package/build/cjs/utils/math/lerp.js +15 -0
  48. package/build/cjs/utils/math/scopeProgress.js +25 -0
  49. package/build/cjs/utils/types/general.js +2 -0
  50. package/build/cjs/utils/types/utility.js +2 -0
  51. package/build/es/app/Application.js +210 -0
  52. package/build/es/app/events/PageLoad.js +47 -0
  53. package/build/es/app/events/Viewport.js +232 -0
  54. package/build/es/base/Callbacks.js +205 -0
  55. package/build/es/base/Component.js +32 -0
  56. package/build/es/base/Module.js +225 -0
  57. package/build/es/base/MutableProp.js +152 -0
  58. package/build/es/base/Plugin.js +31 -0
  59. package/build/es/components/animation-frame/AnimationFrame.js +145 -0
  60. package/build/es/components/canvas/Ctx2D.js +133 -0
  61. package/build/es/components/canvas/Ctx2DPrerender.js +37 -0
  62. package/build/es/components/cursor/CustomCursor.js +274 -0
  63. package/build/es/components/dragger/Dragger.js +175 -0
  64. package/build/es/components/dragger/DraggerDirection.js +42 -0
  65. package/build/es/components/dragger/DraggerMove.js +56 -0
  66. package/build/es/components/loading/Preloader.js +164 -0
  67. package/build/es/components/loading/ProgressPreloader.js +304 -0
  68. package/build/es/components/page/Page.js +283 -0
  69. package/build/es/components/scroll/custom-scroll/CustomScroll.js +486 -0
  70. package/build/es/components/scroll/plugins/SmoothScrollDragPlugin.js +140 -0
  71. package/build/es/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +109 -0
  72. package/build/es/components/scroll/scrollable/ScrollEventsBase.js +79 -0
  73. package/build/es/components/scroll/scrollable/ScrollView.js +264 -0
  74. package/build/es/components/scroll/scrollbar/Bar.js +262 -0
  75. package/build/es/components/scroll/scrollbar/ScrollBar.js +152 -0
  76. package/build/es/components/scroll/smooth-scroll/SmoothScroll.js +519 -0
  77. package/build/es/components/scroll/types.js +1 -0
  78. package/build/es/components/split-text/SplitText.js +199 -0
  79. package/build/es/components/text/SplitText.js +270 -0
  80. package/build/es/components/timeline/StaticTimeline.js +92 -0
  81. package/build/es/components/timeline/Timeline.js +141 -0
  82. package/build/es/index.js +37 -0
  83. package/build/es/utils/common/index.js +4 -0
  84. package/build/es/utils/common/mergeWithoutArrays.js +13 -0
  85. package/build/es/utils/common/randID.js +7 -0
  86. package/build/es/utils/common/timeoutCallback.js +14 -0
  87. package/build/es/utils/errors.js +5 -0
  88. package/build/es/utils/listeners/index.js +3 -0
  89. package/build/es/utils/listeners/intersectionObserverSupported.js +8 -0
  90. package/build/es/utils/listeners/onScroll.js +44 -0
  91. package/build/es/utils/math/boundVal.js +12 -0
  92. package/build/es/utils/math/index.js +4 -0
  93. package/build/es/utils/math/lerp.js +11 -0
  94. package/build/es/utils/math/scopeProgress.js +22 -0
  95. package/build/es/utils/types/general.js +1 -0
  96. package/build/es/utils/types/utility.js +1 -0
  97. package/build/types/app/Application.d.ts +161 -0
  98. package/build/types/app/Application.d.ts.map +1 -0
  99. package/build/types/app/events/PageLoad.d.ts +28 -0
  100. package/build/types/app/events/PageLoad.d.ts.map +1 -0
  101. package/build/types/app/events/Viewport.d.ts +137 -0
  102. package/build/types/app/events/Viewport.d.ts.map +1 -0
  103. package/build/types/base/Callbacks.d.ts +174 -0
  104. package/build/types/base/Callbacks.d.ts.map +1 -0
  105. package/build/types/base/Component.d.ts +48 -0
  106. package/build/types/base/Component.d.ts.map +1 -0
  107. package/build/types/base/Module.d.ts +179 -0
  108. package/build/types/base/Module.d.ts.map +1 -0
  109. package/build/types/base/MutableProp.d.ts +142 -0
  110. package/build/types/base/MutableProp.d.ts.map +1 -0
  111. package/build/types/base/Plugin.d.ts +35 -0
  112. package/build/types/base/Plugin.d.ts.map +1 -0
  113. package/build/types/components/animation-frame/AnimationFrame.d.ts +96 -0
  114. package/build/types/components/animation-frame/AnimationFrame.d.ts.map +1 -0
  115. package/build/types/components/canvas/Ctx2D.d.ts +111 -0
  116. package/build/types/components/canvas/Ctx2D.d.ts.map +1 -0
  117. package/build/types/components/canvas/Ctx2DPrerender.d.ts +41 -0
  118. package/build/types/components/canvas/Ctx2DPrerender.d.ts.map +1 -0
  119. package/build/types/components/cursor/CustomCursor.d.ts +181 -0
  120. package/build/types/components/cursor/CustomCursor.d.ts.map +1 -0
  121. package/build/types/components/dragger/Dragger.d.ts +120 -0
  122. package/build/types/components/dragger/Dragger.d.ts.map +1 -0
  123. package/build/types/components/dragger/DraggerDirection.d.ts +39 -0
  124. package/build/types/components/dragger/DraggerDirection.d.ts.map +1 -0
  125. package/build/types/components/dragger/DraggerMove.d.ts +49 -0
  126. package/build/types/components/dragger/DraggerMove.d.ts.map +1 -0
  127. package/build/types/components/loading/Preloader.d.ts +107 -0
  128. package/build/types/components/loading/Preloader.d.ts.map +1 -0
  129. package/build/types/components/loading/ProgressPreloader.d.ts +166 -0
  130. package/build/types/components/loading/ProgressPreloader.d.ts.map +1 -0
  131. package/build/types/components/page/Page.d.ts +126 -0
  132. package/build/types/components/page/Page.d.ts.map +1 -0
  133. package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts +322 -0
  134. package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts.map +1 -0
  135. package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts +97 -0
  136. package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts.map +1 -0
  137. package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts +34 -0
  138. package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts.map +1 -0
  139. package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts +60 -0
  140. package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts.map +1 -0
  141. package/build/types/components/scroll/scrollable/ScrollView.d.ts +140 -0
  142. package/build/types/components/scroll/scrollable/ScrollView.d.ts.map +1 -0
  143. package/build/types/components/scroll/scrollbar/Bar.d.ts +84 -0
  144. package/build/types/components/scroll/scrollbar/Bar.d.ts.map +1 -0
  145. package/build/types/components/scroll/scrollbar/ScrollBar.d.ts +109 -0
  146. package/build/types/components/scroll/scrollbar/ScrollBar.d.ts.map +1 -0
  147. package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts +307 -0
  148. package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts.map +1 -0
  149. package/build/types/components/scroll/types.d.ts +11 -0
  150. package/build/types/components/scroll/types.d.ts.map +1 -0
  151. package/build/types/components/split-text/SplitText.d.ts +118 -0
  152. package/build/types/components/split-text/SplitText.d.ts.map +1 -0
  153. package/build/types/components/text/SplitText.d.ts +118 -0
  154. package/build/types/components/text/SplitText.d.ts.map +1 -0
  155. package/build/types/components/timeline/StaticTimeline.d.ts +92 -0
  156. package/build/types/components/timeline/StaticTimeline.d.ts.map +1 -0
  157. package/build/types/components/timeline/Timeline.d.ts +101 -0
  158. package/build/types/components/timeline/Timeline.d.ts.map +1 -0
  159. package/build/types/index.d.ts +38 -0
  160. package/build/types/index.d.ts.map +1 -0
  161. package/build/types/utils/common/index.d.ts +5 -0
  162. package/build/types/utils/common/index.d.ts.map +1 -0
  163. package/build/types/utils/common/mergeWithoutArrays.d.ts +6 -0
  164. package/build/types/utils/common/mergeWithoutArrays.d.ts.map +1 -0
  165. package/build/types/utils/common/randID.d.ts +5 -0
  166. package/build/types/utils/common/randID.d.ts.map +1 -0
  167. package/build/types/utils/common/timeoutCallback.d.ts +6 -0
  168. package/build/types/utils/common/timeoutCallback.d.ts.map +1 -0
  169. package/build/types/utils/errors.d.ts +3 -0
  170. package/build/types/utils/errors.d.ts.map +1 -0
  171. package/build/types/utils/listeners/index.d.ts +4 -0
  172. package/build/types/utils/listeners/index.d.ts.map +1 -0
  173. package/build/types/utils/listeners/intersectionObserverSupported.d.ts +2 -0
  174. package/build/types/utils/listeners/intersectionObserverSupported.d.ts.map +1 -0
  175. package/build/types/utils/listeners/onScroll.d.ts +10 -0
  176. package/build/types/utils/listeners/onScroll.d.ts.map +1 -0
  177. package/build/types/utils/math/boundVal.d.ts +5 -0
  178. package/build/types/utils/math/boundVal.d.ts.map +1 -0
  179. package/build/types/utils/math/index.d.ts +5 -0
  180. package/build/types/utils/math/index.d.ts.map +1 -0
  181. package/build/types/utils/math/lerp.d.ts +5 -0
  182. package/build/types/utils/math/lerp.d.ts.map +1 -0
  183. package/build/types/utils/math/scopeProgress.d.ts +20 -0
  184. package/build/types/utils/math/scopeProgress.d.ts.map +1 -0
  185. package/build/types/utils/types/general.d.ts +7 -0
  186. package/build/types/utils/types/general.d.ts.map +1 -0
  187. package/build/types/utils/types/utility.d.ts +14 -0
  188. package/build/types/utils/types/utility.d.ts.map +1 -0
  189. package/package.json +88 -82
  190. package/src/cdn/index.js +3 -0
  191. package/src/sass/base.scss +3 -0
  192. package/src/sass/components/cursor/_custom-cursor.scss +63 -0
  193. package/src/sass/components/index.scss +6 -0
  194. package/src/sass/components/loading/_preloader.scss +15 -0
  195. package/src/sass/components/scroll/_scrollbar.scss +73 -0
  196. package/src/sass/components/scroll/_smooth-scroll.scss +17 -0
  197. package/src/sass/index.scss +3 -0
  198. package/src/sass/mixins/_scroll.scss +7 -0
  199. package/{dist/scss → src/sass}/mixins/_transition.scss +8 -4
  200. package/src/sass/mixins/_viewport.scss +69 -0
  201. package/src/sass/mixins/index.scss +3 -0
  202. package/src/ts/app/Application.ts +350 -0
  203. package/src/ts/app/events/PageLoad.ts +79 -0
  204. package/src/ts/app/events/Viewport.ts +365 -0
  205. package/src/ts/base/Callbacks.ts +380 -0
  206. package/src/ts/base/Component.ts +83 -0
  207. package/src/ts/base/Module.ts +385 -0
  208. package/src/ts/base/MutableProp.ts +242 -0
  209. package/src/ts/base/Plugin.ts +76 -0
  210. package/src/ts/components/animation-frame/AnimationFrame.ts +264 -0
  211. package/src/ts/components/canvas/Ctx2D.ts +260 -0
  212. package/src/ts/components/canvas/Ctx2DPrerender.ts +96 -0
  213. package/src/ts/components/cursor/CustomCursor.ts +462 -0
  214. package/src/ts/components/dragger/Dragger.ts +313 -0
  215. package/src/ts/components/dragger/DraggerDirection.ts +106 -0
  216. package/src/ts/components/dragger/DraggerMove.ts +114 -0
  217. package/src/ts/components/loading/Preloader.ts +279 -0
  218. package/src/ts/components/loading/ProgressPreloader.ts +484 -0
  219. package/src/ts/components/page/Page.ts +421 -0
  220. package/src/ts/components/scroll/plugins/SmoothScrollDragPlugin.ts +251 -0
  221. package/src/ts/components/scroll/plugins/SmoothScrollKeyboardPlugin.ts +166 -0
  222. package/src/ts/components/scroll/scrollable/ScrollEventsBase.ts +151 -0
  223. package/src/ts/components/scroll/scrollable/ScrollView.ts +435 -0
  224. package/src/ts/components/scroll/scrollbar/Bar.ts +364 -0
  225. package/src/ts/components/scroll/scrollbar/ScrollBar.ts +292 -0
  226. package/src/ts/components/scroll/smooth-scroll/SmoothScroll.ts +861 -0
  227. package/src/ts/components/scroll/types.ts +10 -0
  228. package/src/ts/components/text/SplitText.ts +418 -0
  229. package/src/ts/components/timeline/StaticTimeline.ts +197 -0
  230. package/src/ts/components/timeline/Timeline.ts +256 -0
  231. package/src/ts/index.ts +94 -0
  232. package/src/ts/utils/common/index.ts +9 -0
  233. package/src/ts/utils/common/mergeWithoutArrays.ts +20 -0
  234. package/src/ts/utils/common/randID.ts +9 -0
  235. package/src/ts/utils/common/timeoutCallback.ts +16 -0
  236. package/src/ts/utils/errors.ts +6 -0
  237. package/src/ts/utils/listeners/index.ts +7 -0
  238. package/src/ts/utils/listeners/intersectionObserverSupported.ts +10 -0
  239. package/src/ts/utils/listeners/onScroll.ts +56 -0
  240. package/src/ts/utils/math/boundVal.ts +15 -0
  241. package/src/ts/utils/math/index.ts +9 -0
  242. package/src/ts/utils/math/lerp.ts +16 -0
  243. package/src/ts/utils/math/scopeProgress.ts +23 -0
  244. package/src/ts/utils/types/general.ts +7 -0
  245. package/src/ts/utils/types/utility.ts +34 -0
  246. package/dist/js/AJAXEvent.js +0 -355
  247. package/dist/js/Application.js +0 -345
  248. package/dist/js/ColumnsModule.js +0 -392
  249. package/dist/js/CursorModule.js +0 -390
  250. package/dist/js/DraggerModule.js +0 -792
  251. package/dist/js/Event.js +0 -538
  252. package/dist/js/FilterModule.js +0 -943
  253. package/dist/js/FormModule.js +0 -706
  254. package/dist/js/FrameModule.js +0 -229
  255. package/dist/js/IntervalModule.js +0 -270
  256. package/dist/js/KeydownModule.js +0 -293
  257. package/dist/js/LoadEvent.js +0 -106
  258. package/dist/js/MenuBaseModule.js +0 -292
  259. package/dist/js/MenuModule.js +0 -265
  260. package/dist/js/MenuTimelineModule.js +0 -321
  261. package/dist/js/Module.js +0 -478
  262. package/dist/js/PageAjaxModule.js +0 -1010
  263. package/dist/js/PageLoadMediaPlugin.js +0 -285
  264. package/dist/js/PageModule.js +0 -440
  265. package/dist/js/PaginationModule.js +0 -961
  266. package/dist/js/PaginationScrollPlugin.js +0 -209
  267. package/dist/js/Plugin.js +0 -114
  268. package/dist/js/PopupModule.js +0 -942
  269. package/dist/js/PreloaderModule.js +0 -724
  270. package/dist/js/ResponsiveProp.js +0 -301
  271. package/dist/js/ScrollAnchorModule.js +0 -554
  272. package/dist/js/ScrollAnimateModule.js +0 -419
  273. package/dist/js/ScrollBarPlugin.js +0 -594
  274. package/dist/js/ScrollDragPlugin.js +0 -396
  275. package/dist/js/ScrollModule.js +0 -1071
  276. package/dist/js/ScrollViewModule.js +0 -388
  277. package/dist/js/SelectModule.js +0 -860
  278. package/dist/js/SliderCanvasModule.js +0 -733
  279. package/dist/js/SliderControlsPlugin.js +0 -247
  280. package/dist/js/SliderCounterPlugin.js +0 -278
  281. package/dist/js/SliderDotsPlugin.js +0 -270
  282. package/dist/js/SliderDragSwipePlugin.js +0 -245
  283. package/dist/js/SliderIntervalPlugin.js +0 -192
  284. package/dist/js/SliderKeydownPlugin.js +0 -185
  285. package/dist/js/SliderModule.js +0 -1062
  286. package/dist/js/SliderWheelPlugin.js +0 -194
  287. package/dist/js/TextAnimateModule.js +0 -663
  288. package/dist/js/TextSplitModule.js +0 -785
  289. package/dist/js/TimelineBaseModule.js +0 -405
  290. package/dist/js/TimelineModule.js +0 -494
  291. package/dist/js/URLEvent.js +0 -239
  292. package/dist/js/ViewportEvent.js +0 -465
  293. package/dist/js/WheelEventModule.js +0 -295
  294. package/dist/js/domChildOf.js +0 -46
  295. package/dist/js/domChildren.js +0 -47
  296. package/dist/js/domInsertAfter.js +0 -32
  297. package/dist/js/domRemoveChildren.js +0 -26
  298. package/dist/js/easing.js +0 -363
  299. package/dist/js/eventListenerAdd.js +0 -87
  300. package/dist/js/eventListenerGet.js +0 -49
  301. package/dist/js/eventListenerRemove.js +0 -36
  302. package/dist/js/generateId.js +0 -29
  303. package/dist/js/getBrowserName.js +0 -60
  304. package/dist/js/getOsName.js +0 -39
  305. package/dist/js/getVevetProperties.js +0 -22
  306. package/dist/js/index.js +0 -519
  307. package/dist/js/mathScopeProgress.js +0 -32
  308. package/dist/js/mathSpreadScopeProgress.js +0 -35
  309. package/dist/js/merge.js +0 -33
  310. package/dist/js/normalizeWheel.js +0 -97
  311. package/dist/js/text_animate_module_addons/_composite_elementary.js +0 -196
  312. package/dist/js/text_animate_module_addons/_elementary.js +0 -88
  313. package/dist/js/timeoutCallback.js +0 -26
  314. package/dist/js/vevet.js +0 -10
  315. package/dist/scss/_prefix.scss +0 -1
  316. package/dist/scss/classes/_clear.scss +0 -5
  317. package/dist/scss/classes/_col-row.scss +0 -48
  318. package/dist/scss/classes/_display.scss +0 -65
  319. package/dist/scss/classes/_document-reset.scss +0 -28
  320. package/dist/scss/classes/_document.scss +0 -7
  321. package/dist/scss/classes/_overflow.scss +0 -39
  322. package/dist/scss/classes/_position.scss +0 -55
  323. package/dist/scss/classes/_text.scss +0 -24
  324. package/dist/scss/classes/_transition.scss +0 -22
  325. package/dist/scss/classes/_wrap.scss +0 -31
  326. package/dist/scss/classes/index.scss +0 -14
  327. package/dist/scss/index.scss +0 -3
  328. package/dist/scss/mixins/_clear.scss +0 -6
  329. package/dist/scss/mixins/_display.scss +0 -6
  330. package/dist/scss/mixins/_form.scss +0 -14
  331. package/dist/scss/mixins/_position.scss +0 -42
  332. package/dist/scss/mixins/_reset.scss +0 -17
  333. package/dist/scss/mixins/_responsive.scss +0 -88
  334. package/dist/scss/mixins/index.scss +0 -7
  335. package/dist/scss/modules/columns/_settings.scss +0 -1
  336. package/dist/scss/modules/columns/index.scss +0 -19
  337. package/dist/scss/modules/cursor/_settings.scss +0 -7
  338. package/dist/scss/modules/cursor/index.scss +0 -15
  339. package/dist/scss/modules/form/_settings.scss +0 -15
  340. package/dist/scss/modules/form/index.scss +0 -57
  341. package/dist/scss/modules/index.scss +0 -11
  342. package/dist/scss/modules/menu/_button.scss +0 -58
  343. package/dist/scss/modules/menu/_menu.scss +0 -25
  344. package/dist/scss/modules/menu/_settings.scss +0 -23
  345. package/dist/scss/modules/menu/index.scss +0 -3
  346. package/dist/scss/modules/pagination/_settings.scss +0 -6
  347. package/dist/scss/modules/pagination/index.scss +0 -24
  348. package/dist/scss/modules/popup/_settings.scss +0 -26
  349. package/dist/scss/modules/popup/index.scss +0 -294
  350. package/dist/scss/modules/preloader/_settings.scss +0 -3
  351. package/dist/scss/modules/preloader/index.scss +0 -19
  352. package/dist/scss/modules/scroll/_settings.scss +0 -22
  353. package/dist/scss/modules/scroll/index.scss +0 -94
  354. package/dist/scss/modules/select/_settings.scss +0 -28
  355. package/dist/scss/modules/select/index.scss +0 -142
  356. package/dist/scss/modules/slider/_settings.scss +0 -35
  357. package/dist/scss/modules/slider/index.scss +0 -153
  358. package/dist/scss/modules/text/_settings.scss +0 -1
  359. package/dist/scss/modules/text/index.scss +0 -19
  360. package/dist/types/types.d.ts +0 -18763
@@ -0,0 +1,118 @@
1
+ import { Component, NComponent } from '../../base/Component';
2
+ import { RequiredModuleProp } from '../../utils/types/utility';
3
+ export declare namespace NSplitText {
4
+ /**
5
+ * Static properties
6
+ */
7
+ interface StaticProp extends NComponent.StaticProp {
8
+ /**
9
+ * The text container. You may use a CSS selector or the element itself.
10
+ * @default '#v-split-text'
11
+ */
12
+ container?: string | Element;
13
+ /**
14
+ * If need to split text into letters.
15
+ * @default true
16
+ */
17
+ appendLetters?: boolean;
18
+ /**
19
+ * If need to split text into lines.
20
+ * @default false
21
+ */
22
+ appendLines?: boolean;
23
+ }
24
+ /**
25
+ * Changeable properties
26
+ */
27
+ interface ChangeableProp extends NComponent.ChangeableProp {
28
+ }
29
+ /**
30
+ * Available callbacks
31
+ */
32
+ interface CallbacksTypes extends NComponent.CallbacksTypes {
33
+ 'split': false;
34
+ }
35
+ interface Line {
36
+ el: HTMLElement;
37
+ content: string;
38
+ words: NSplitText.Word[];
39
+ }
40
+ interface Word {
41
+ el: HTMLElement;
42
+ content: string;
43
+ hasNewLine: boolean;
44
+ br?: HTMLBRElement;
45
+ whitespace?: Text;
46
+ letters: NSplitText.Letter[];
47
+ }
48
+ interface Letter {
49
+ el: HTMLElement;
50
+ content: string;
51
+ word: NSplitText.Word;
52
+ }
53
+ }
54
+ /**
55
+ * Split text into letters, words & lines
56
+ */
57
+ export declare class SplitText<StaticProp extends NSplitText.StaticProp = NSplitText.StaticProp, ChangeableProp extends NSplitText.ChangeableProp = NSplitText.ChangeableProp, CallbacksTypes extends NSplitText.CallbacksTypes = NSplitText.CallbacksTypes> extends Component<StaticProp, ChangeableProp, CallbacksTypes> {
58
+ protected _getDefaultProp<T extends RequiredModuleProp<StaticProp & ChangeableProp>>(): T;
59
+ get prefix(): string;
60
+ /**
61
+ * Initial text
62
+ */
63
+ protected _initText: string;
64
+ /**
65
+ * Initial HTML content
66
+ */
67
+ protected _initHTML: string;
68
+ /**
69
+ * If the text is already split into letters and words
70
+ */
71
+ protected _isPrimarySplit: boolean;
72
+ /**
73
+ * Text container
74
+ */
75
+ get container(): HTMLElement;
76
+ protected _container: HTMLElement;
77
+ get letters(): NSplitText.Letter[];
78
+ protected _letters: NSplitText.Letter[];
79
+ get words(): NSplitText.Word[];
80
+ protected _words: NSplitText.Word[];
81
+ get lines(): NSplitText.Line[];
82
+ protected _lines: NSplitText.Line[];
83
+ constructor(initialProp?: (StaticProp & ChangeableProp), init?: boolean);
84
+ protected _setEvents(): void;
85
+ /**
86
+ * Split the text
87
+ */
88
+ splitText(): void;
89
+ /**
90
+ * Split the text into words
91
+ */
92
+ protected _splitIntoWords(): void;
93
+ /**
94
+ * Append split words to the container
95
+ */
96
+ protected _appendWords(): void;
97
+ /**
98
+ * Remove split words from DOM
99
+ */
100
+ protected _removeWords(): void;
101
+ /**
102
+ * Split the text into letters
103
+ */
104
+ protected _splitIntoLetters(): void;
105
+ /**
106
+ * Split the text into lines
107
+ */
108
+ protected _splitIntoLines(): void;
109
+ /**
110
+ * Remove all lines
111
+ */
112
+ protected _removeLines(): void;
113
+ /**
114
+ * Destroy the module
115
+ */
116
+ protected _destroy(): void;
117
+ }
118
+ //# sourceMappingURL=SplitText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitText.d.ts","sourceRoot":"","sources":["../../../../src/ts/components/text/SplitText.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAI/D,yBAAiB,UAAU,CAAC;IAExB;;OAEG;IACH,UAAiB,UAAW,SAAQ,UAAU,CAAC,UAAU;QACrD;;;WAGG;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AE,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,eAAe,EAAE,OAAO,CAAC;IAInC;;OAEG;IACH,IAAI,SAAS,gBAEZ;IACD,SAAS,CAAC,UAAU,EAAG,WAAW,CAAC;IAEnC,IAAI,OAAO,wBAEV;IACD,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC;IAExC,IAAI,KAAK,sBAER;IACD,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC;IAEpC,IAAI,KAAK,sBAER;IACD,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC;gBAKhC,WAAW,CAAC,EAAE,CAAC,UAAU,GAAG,cAAc,CAAC,EAC3C,IAAI,UAAO;IAkCf,SAAS,CAAC,UAAU;IAcpB;;OAEG;IACI,SAAS;IAmBhB;;OAEG;IACH,SAAS,CAAC,eAAe;IA+CzB;;OAEG;IACH,SAAS,CAAC,YAAY;IAYtB;;OAEG;IACH,SAAS,CAAC,YAAY;IActB;;OAEG;IACH,SAAS,CAAC,iBAAiB;IAkC3B;;OAEG;IACH,SAAS,CAAC,eAAe;IA8DzB;;OAEG;IACH,SAAS,CAAC,YAAY;IAYtB;;OAEG;IACH,SAAS,CAAC,QAAQ;CASrB"}
@@ -0,0 +1,92 @@
1
+ import { NApplication } from '../../app/Application';
2
+ import { Component, NComponent } from '../../base/Component';
3
+ import { RequiredModuleProp } from '../../utils/types/utility';
4
+ export declare namespace NStaticTimeline {
5
+ /**
6
+ * Static properties
7
+ */
8
+ interface StaticProp extends NComponent.StaticProp {
9
+ /**
10
+ * Timeline easing function
11
+ */
12
+ easing?: NApplication.Prop['easing'];
13
+ /**
14
+ * Timeline scope is used for nested timelines.
15
+ * The first value means that animation will start only when the absolute progress
16
+ * of the parent timeline reaches this value. The second value is
17
+ * the end of animation relatively to the parent timeline. <br>
18
+ * This property should be set for a nested timeline.
19
+ * @default [0, 1]
20
+ */
21
+ nestedScope?: [number, number];
22
+ /**
23
+ * Define if you want to use easing progress to calculate current progress
24
+ * of nested timelines according to their scope. <br>
25
+ * This property should be set for the parent timeline.
26
+ * @default false
27
+ */
28
+ useNestedEasingProgress?: boolean;
29
+ }
30
+ /**
31
+ * Changeable properties
32
+ */
33
+ interface ChangeableProp extends NComponent.ChangeableProp {
34
+ }
35
+ /**
36
+ * Available callbacks
37
+ */
38
+ interface ProgressArg {
39
+ progress: number;
40
+ easing: number;
41
+ }
42
+ /**
43
+ * Available callbacks
44
+ */
45
+ interface CallbacksTypes extends NComponent.CallbacksTypes {
46
+ 'progress': ProgressArg;
47
+ }
48
+ }
49
+ /**
50
+ * StaticTimeline is the base class for Timeline itself.
51
+ * The difference between the coponents is that StaticTimeline has no animation:
52
+ * no play & pause methods.
53
+ */
54
+ export declare class StaticTimeline<StaticProp extends NStaticTimeline.StaticProp = NStaticTimeline.StaticProp, ChangeableProp extends NStaticTimeline.ChangeableProp = NStaticTimeline.ChangeableProp, CallbacksTypes extends NStaticTimeline.CallbacksTypes = NStaticTimeline.CallbacksTypes> extends Component<StaticProp, ChangeableProp, CallbacksTypes> {
55
+ /**
56
+ * Get default properties
57
+ */
58
+ protected _getDefaultProp<T extends RequiredModuleProp<StaticProp & ChangeableProp>>(): T;
59
+ protected _progress: number;
60
+ /**
61
+ * Absolute progress of the timeline
62
+ */
63
+ get progress(): number;
64
+ set progress(val: number);
65
+ protected _easing: number;
66
+ /**
67
+ * Easing progress of the timeline
68
+ */
69
+ get easing(): number;
70
+ /**
71
+ * Nested timelines
72
+ */
73
+ protected _nestedTimelines: StaticTimeline[];
74
+ constructor(initialProp?: (StaticProp & ChangeableProp), init?: boolean);
75
+ /**
76
+ * Add a nested timeline
77
+ */
78
+ addNestedTimeline(tm: StaticTimeline): void;
79
+ /**
80
+ * Handle progress event
81
+ */
82
+ protected _handleProgress(): void;
83
+ /**
84
+ * Render nested timelines
85
+ */
86
+ protected _renderNestedTimelines(): void;
87
+ /**
88
+ * Destroy the animation frame
89
+ */
90
+ protected _destroy(): void;
91
+ }
92
+ //# sourceMappingURL=StaticTimeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticTimeline.d.ts","sourceRoot":"","sources":["../../../../src/ts/components/timeline/StaticTimeline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAM/D,yBAAiB,eAAe,CAAC;IAE7B;;OAEG;IACH,UAAiB,UAAW,SAAQ,UAAU,CAAC,UAAU;QACrD;;WAEG;QACH,MAAM,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC;;;;;;;WAOG;QACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/B;;;;;WAKG;QACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;KACrC;IAED;;OAEG;IACH,UAAiB,cAAe,SAAQ,UAAU,CAAC,cAAc;KAAI;IAErE;;OAEG;IACH,UAAiB,WAAW;QACxB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAClB;IAED;;OAEG;IACH,UAAiB,cAAe,SAAQ,UAAU,CAAC,cAAc;QAC7D,UAAU,EAAE,WAAW,CAAC;KAC3B;CAEJ;AAID;;;;GAIG;AACH,qBAAa,cAAc,CACvB,UAAU,SAAS,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU,EAC1E,cAAc,SAAS,eAAe,CAAC,cAAc,GAAG,eAAe,CAAC,cAAc,EACtF,cAAc,SAAS,eAAe,CAAC,cAAc,GAAG,eAAe,CAAC,cAAc,CACxF,SAAQ,SAAS,CACf,UAAU,EACV,cAAc,EACd,cAAc,CACjB;IACG;;OAEG;IACH,SAAS,CAAC,eAAe,CACrB,CAAC,SAAS,kBAAkB,CAAC,UAAU,GAAG,cAAc,CAAC,KACvD,CAAC;IAWP,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,IAAI,QAAQ,IAGO,MAAM,CADxB;IACD,IAAI,QAAQ,CAAE,GAAG,EAAE,MAAM,EAGxB;IAGD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,IAAI,MAAM,WAET;IAED;;OAEG;IACH,SAAS,CAAC,gBAAgB,EAAE,cAAc,EAAE,CAAC;gBAKzC,WAAW,CAAC,EAAE,CAAC,UAAU,GAAG,cAAc,CAAC,EAC3C,IAAI,UAAO;IAgBf;;OAEG;IACI,iBAAiB,CACpB,EAAE,EAAE,cAAc;IAMtB;;OAEG;IACH,SAAS,CAAC,eAAe;IAYzB;;OAEG;IACH,SAAS,CAAC,sBAAsB;IAqBhC;;OAEG;IACH,SAAS,CAAC,QAAQ;CAOrB"}
@@ -0,0 +1,101 @@
1
+ import { StaticTimeline, NStaticTimeline } from './StaticTimeline';
2
+ import { RequiredModuleProp } from '../../utils/types/utility';
3
+ export declare namespace NTimeline {
4
+ /**
5
+ * Static properties
6
+ */
7
+ interface StaticProp extends NStaticTimeline.StaticProp {
8
+ /**
9
+ * Reset the timeline progress on each finished play & reverse call
10
+ * @default false
11
+ */
12
+ reset?: boolean;
13
+ /**
14
+ * Destroy the timeline on animation end
15
+ * @default false
16
+ */
17
+ destroyOnEnd?: boolean;
18
+ }
19
+ /**
20
+ * Changeable properties
21
+ */
22
+ interface ChangeableProp extends NStaticTimeline.ChangeableProp {
23
+ /**
24
+ * Timeline duration
25
+ * @default 1000
26
+ */
27
+ duration?: number;
28
+ }
29
+ /**
30
+ * Available callbacks
31
+ */
32
+ interface ProgressArg {
33
+ progress: number;
34
+ easing: number;
35
+ }
36
+ /**
37
+ * Available callbacks
38
+ */
39
+ interface CallbacksTypes extends NStaticTimeline.CallbacksTypes {
40
+ 'start': false;
41
+ 'end': false;
42
+ }
43
+ }
44
+ /**
45
+ * Timeline is an animation helper.
46
+ */
47
+ export declare class Timeline<StaticProp extends NTimeline.StaticProp = NTimeline.StaticProp, ChangeableProp extends NTimeline.ChangeableProp = NTimeline.ChangeableProp, CallbacksTypes extends NTimeline.CallbacksTypes = NTimeline.CallbacksTypes> extends StaticTimeline<StaticProp, ChangeableProp, CallbacksTypes> {
48
+ /**
49
+ * Get default properties
50
+ */
51
+ protected _getDefaultProp<T extends RequiredModuleProp<StaticProp & ChangeableProp>>(): T;
52
+ /**
53
+ * Check if timeline is playing
54
+ */
55
+ get isPlaying(): boolean;
56
+ protected _isPlaying: boolean;
57
+ /**
58
+ * Check if timeline is reversed
59
+ */
60
+ get isReversed(): boolean;
61
+ protected _isReversed: boolean;
62
+ /**
63
+ * Check if timeline is paused
64
+ */
65
+ get isPaused(): boolean;
66
+ protected _isPaused: boolean;
67
+ /**
68
+ * The animation frame
69
+ */
70
+ protected _animationFrame?: number;
71
+ /**
72
+ * Last time when animationFrame callback has been called
73
+ */
74
+ protected _animationFrameLastTime: number;
75
+ constructor(initialProp?: (StaticProp & ChangeableProp), init?: boolean);
76
+ /**
77
+ * Play the timeline
78
+ */
79
+ play(): void;
80
+ /**
81
+ * Play reversed timeline
82
+ */
83
+ reverse(): void;
84
+ /**
85
+ * Pause animation
86
+ */
87
+ pause(): void;
88
+ /**
89
+ * Start animation
90
+ */
91
+ protected _animate(): void;
92
+ /**
93
+ * Events on progress
94
+ */
95
+ protected _handleProgress(): void;
96
+ /**
97
+ * Destroy the timeline
98
+ */
99
+ protected _destroy(): void;
100
+ }
101
+ //# sourceMappingURL=Timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../../src/ts/components/timeline/Timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kB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,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,uBAAuB,EAAE,MAAM,CAAC;gBAKtC,WAAW,CAAC,EAAE,CAAC,UAAU,GAAG,cAAc,CAAC,EAC3C,IAAI,UAAO;IAiBf;;OAEG;IACI,IAAI;IAeX;;OAEG;IACI,OAAO;IAed;;OAEG;IACI,KAAK;IAaZ;;OAEG;IACH,SAAS,CAAC,QAAQ;IAmClB;;OAEG;IACH,SAAS,CAAC,eAAe;IAkBzB;;OAEG;IACH,SAAS,CAAC,QAAQ;CAIrB"}
@@ -0,0 +1,38 @@
1
+ import * as common from './utils/common';
2
+ import * as listeners from './utils/listeners';
3
+ import * as math from './utils/math';
4
+ import * as GeneralTypes from './utils/types/general';
5
+ import { Application, NApplication } from './app/Application';
6
+ import { Viewport, NViewport } from './app/events/Viewport';
7
+ import { PageLoad, NPageLoad } from './app/events/PageLoad';
8
+ import { Callbacks, NCallbacks } from './base/Callbacks';
9
+ import { MutableProp, NMutableProp } from './base/MutableProp';
10
+ import { Module, NModule } from './base/Module';
11
+ import { Component, NComponent } from './base/Component';
12
+ import { Plugin, NPlugin } from './base/Plugin';
13
+ import { Page, NPage } from './components/page/Page';
14
+ import { AnimationFrame, NAnimationFrame } from './components/animation-frame/AnimationFrame';
15
+ import { StaticTimeline, NStaticTimeline } from './components/timeline/StaticTimeline';
16
+ import { Timeline, NTimeline } from './components/timeline/Timeline';
17
+ import { Preloader, NPreloader } from './components/loading/Preloader';
18
+ import { ProgressPreloader, NProgressPreloader } from './components/loading/ProgressPreloader';
19
+ import { Dragger, NDragger } from './components/dragger/Dragger';
20
+ import { DraggerMove, NDraggerMove } from './components/dragger/DraggerMove';
21
+ import { DraggerDirection, NDraggerDirection } from './components/dragger/DraggerDirection';
22
+ import { Ctx2D, NCtx2D } from './components/canvas/Ctx2D';
23
+ import { Ctx2DPrerender, NCtx2DPrerender } from './components/canvas/Ctx2DPrerender';
24
+ import { SmoothScroll, NSmoothScroll } from './components/scroll/smooth-scroll/SmoothScroll';
25
+ import { ScrollBar, NScrollBar } from './components/scroll/scrollbar/ScrollBar';
26
+ import { ScrollEventsBase, NScrollEventsBase } from './components/scroll/scrollable/ScrollEventsBase';
27
+ import { ScrollView, NScrollView } from './components/scroll/scrollable/ScrollView';
28
+ import { SmoothScrollKeyboardPlugin, NSmoothScrollKeyboardPlugin } from './components/scroll/plugins/SmoothScrollKeyboardPlugin';
29
+ import { SmoothScrollDragPlugin, NSmoothScrollDragPlugin } from './components/scroll/plugins/SmoothScrollDragPlugin';
30
+ import { SplitText, NSplitText } from './components/text/SplitText';
31
+ import { CustomCursor, NCustomCursor } from './components/cursor/CustomCursor';
32
+ declare const utils: {
33
+ common: typeof common;
34
+ listeners: typeof listeners;
35
+ math: typeof math;
36
+ };
37
+ export { utils, GeneralTypes, Application, NApplication, Viewport, NViewport, PageLoad, NPageLoad, Callbacks, NCallbacks, MutableProp, NMutableProp, Module, NModule, Component, NComponent, Plugin, NPlugin, Page, NPage, AnimationFrame, NAnimationFrame, StaticTimeline, NStaticTimeline, Timeline, NTimeline, Preloader, NPreloader, ProgressPreloader, NProgressPreloader, Dragger, NDragger, DraggerMove, NDraggerMove, DraggerDirection, NDraggerDirection, Ctx2D, NCtx2D, Ctx2DPrerender, NCtx2DPrerender, SmoothScroll, NSmoothScroll, ScrollBar, NScrollBar, ScrollEventsBase, NScrollEventsBase, ScrollView, NScrollView, SmoothScrollKeyboardPlugin, NSmoothScrollKeyboardPlugin, SmoothScrollDragPlugin, NSmoothScrollDragPlugin, SplitText, NSplitText, CustomCursor, NCustomCursor, };
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,IAAI,M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,2BAA2B,EACvD,sBAAsB,EAAE,uBAAuB,EAE/C,SAAS,EAAE,UAAU,EAErB,YAAY,EAAE,aAAa,GAC9B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import randID from './randID';
2
+ import mergeWithoutArrays from './mergeWithoutArrays';
3
+ import timeoutCallback from './timeoutCallback';
4
+ export { randID, mergeWithoutArrays, timeoutCallback, };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACH,MAAM,EACN,kBAAkB,EAClB,eAAe,GAClB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Deep merge of two objects except for arrays.
3
+ * The function doesn't change the "object" and "source".
4
+ */
5
+ export default function mergeWithoutArrays<A extends Record<string, any>, B extends Record<string, any>>(object: A, source: B): A & B;
6
+ //# sourceMappingURL=mergeWithoutArrays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeWithoutArrays.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/common/mergeWithoutArrays.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAE7B,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,CAAC,GACV,CAAC,GAAG,CAAC,CAOP"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generate a random ID
3
+ */
4
+ export default function randID(prefix?: string): string;
5
+ //# sourceMappingURL=randID.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"randID.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/common/randID.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAC1B,MAAM,SAAO,UAIhB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Launch a function in a certain amount of time
3
+ * If the timeout argument is zero, the callback will be launched synchronously
4
+ */
5
+ export default function timeoutCallback(callback: Function, timeout: number): void;
6
+ //# sourceMappingURL=timeoutCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeoutCallback.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/common/timeoutCallback.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CACnC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,QASlB"}
@@ -0,0 +1,3 @@
1
+ export declare const vevetAppErrorText = "Vevet.Application does not exist yet. \nCall \"new Vevet.Application()\" before using all the stuff";
2
+ export declare function throwVevetAppError(): void;
3
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/ts/utils/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,wGAC4B,CAAC;AAE3D,wBAAgB,kBAAkB,SAEjC"}
@@ -0,0 +1,4 @@
1
+ import onScroll from './onScroll';
2
+ import intersectionObserverSupported from './intersectionObserverSupported';
3
+ export { onScroll, intersectionObserverSupported, };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/listeners/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EACH,QAAQ,EACR,6BAA6B,GAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function intersectionObserverSupported(): boolean;
2
+ //# sourceMappingURL=intersectionObserverSupported.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intersectionObserverSupported.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/listeners/intersectionObserverSupported.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,6BAA6B,YASpD"}
@@ -0,0 +1,10 @@
1
+ import { SmoothScroll } from '../../components/scroll/smooth-scroll/SmoothScroll';
2
+ import { IRemovable } from '../types/general';
3
+ /**
4
+ * Add OnScroll event
5
+ */
6
+ export default function onScroll(selector: string | Element | SmoothScroll | Window, callback: (arg: {
7
+ scrollTop: number;
8
+ scrollLeft: number;
9
+ }) => void): IRemovable;
10
+ //# sourceMappingURL=onScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onScroll.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/listeners/onScroll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC5B,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,EAClD,QAAQ,EAAE,CAAC,GAAG,EAAE;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,KAAK,IAAI,GACX,UAAU,CA0CZ"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Bound a value between two points
3
+ */
4
+ export default function boundVal(val: number, scope?: [number, number]): number;
5
+ //# sourceMappingURL=boundVal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundVal.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/math/boundVal.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,GAAE,CAAC,MAAM,EAAE,MAAM,CAAU,UASnC"}
@@ -0,0 +1,5 @@
1
+ import boundVal from './boundVal';
2
+ import lerp from './lerp';
3
+ import scopeProgress from './scopeProgress';
4
+ export { boundVal, lerp, scopeProgress, };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/math/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EACH,QAAQ,EACR,IAAI,EACJ,aAAa,GAChB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Linear interpolation
3
+ */
4
+ export default function lerp(current: number, target: number, ease: number, approximationLeft?: number): number;
5
+ //# sourceMappingURL=lerp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lerp.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/math/lerp.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CACxB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,iBAAiB,SAAQ,UAQ5B"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Get progress relatively to the scope.
3
+ *
4
+ * @example
5
+ *
6
+ * scopeProgress(.35, [0, 1]);
7
+ * // => .5
8
+ * scopeProgress(.35, [.25, 1]);
9
+ * // => .133
10
+ */
11
+ export default function scopeProgress(
12
+ /**
13
+ * Current progress
14
+ */
15
+ progress: number,
16
+ /**
17
+ * Progress scope
18
+ */
19
+ scope: [number, number]): number;
20
+ //# sourceMappingURL=scopeProgress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scopeProgress.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/math/scopeProgress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;AACjC;;GAEG;AACH,QAAQ,EAAE,MAAM;AAChB;;GAEG;AACH,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,UAI1B"}
@@ -0,0 +1,7 @@
1
+ export interface IRemovable {
2
+ remove: () => void;
3
+ }
4
+ export interface IDestroyable {
5
+ destroy: () => void;
6
+ }
7
+ //# sourceMappingURL=general.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../src/ts/utils/types/general.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB"}
@@ -0,0 +1,14 @@
1
+ interface ModuleLike {
2
+ prop: any;
3
+ prefix: string;
4
+ name: string;
5
+ destroy: () => void;
6
+ }
7
+ export declare type Primitive = string | number | boolean | bigint | symbol | undefined | null;
8
+ export declare type Builtin = Primitive | Function | Date | Error | RegExp | Element | Window | ModuleLike;
9
+ declare type DeepRequired<T> = T extends Builtin ? NonNullable<T> : T extends Map<infer K, infer V> ? Map<DeepRequired<K>, DeepRequired<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepRequired<K>, DeepRequired<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepRequired<K>, DeepRequired<V>> : T extends Set<infer U> ? Set<DeepRequired<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepRequired<U>> : T extends WeakSet<infer U> ? WeakSet<DeepRequired<U>> : T extends Promise<infer U> ? Promise<DeepRequired<U>> : T extends {} ? {
10
+ [K in keyof T]-?: DeepRequired<T[K]>;
11
+ } : NonNullable<T>;
12
+ export declare type RequiredModuleProp<T> = DeepRequired<T>;
13
+ export {};
14
+ //# sourceMappingURL=utility.d.ts.map
@@ -0,0 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