@vandenberghinc/volt 1.1.26 → 1.1.28

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 (502) hide show
  1. package/backend/dist/cjs/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
  2. package/backend/dist/cjs/{blacklist.js → backend/src/blacklist.js} +8 -5
  3. package/backend/dist/cjs/{cli.js → backend/src/cli.js} +29 -47
  4. package/backend/dist/cjs/backend/src/database/collection.d.ts +1543 -0
  5. package/backend/dist/cjs/backend/src/database/collection.js +3042 -0
  6. package/backend/dist/cjs/backend/src/database/database.d.ts +66 -0
  7. package/backend/dist/cjs/{database → backend/src/database}/database.js +48 -43
  8. package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +6 -0
  9. package/backend/dist/cjs/backend/src/database/filters/filters.js +15 -0
  10. package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +223 -0
  11. package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +15 -0
  12. package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +443 -0
  13. package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +15 -0
  14. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
  15. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +15 -0
  16. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
  17. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +15 -0
  18. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
  19. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +15 -0
  20. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
  21. package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +15 -0
  22. package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +165 -0
  23. package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +15 -0
  24. package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
  25. package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +355 -0
  26. package/backend/dist/cjs/backend/src/database/flatten.d.ts +75 -0
  27. package/backend/dist/cjs/{logger.js → backend/src/database/flatten.js} +18 -7
  28. package/backend/dist/cjs/backend/src/database/flatten_test.js +175 -0
  29. package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +461 -0
  30. package/backend/dist/cjs/backend/src/database/quota/quota.js +1014 -0
  31. package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +534 -0
  32. package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +1087 -0
  33. package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +293 -0
  34. package/backend/dist/cjs/backend/src/database/quota/safe_int.js +573 -0
  35. package/backend/dist/{esm → cjs/backend/src}/endpoint.d.ts +69 -46
  36. package/backend/dist/cjs/{endpoint.js → backend/src/endpoint.js} +87 -101
  37. package/backend/dist/cjs/backend/src/errors/index.d.ts +7 -0
  38. package/backend/dist/cjs/backend/src/errors/index.js +25 -0
  39. package/backend/dist/{esm/utils.d.ts → cjs/backend/src/errors/internal_external.d.ts} +14 -22
  40. package/backend/dist/cjs/backend/src/errors/internal_external.js +85 -0
  41. package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +38 -0
  42. package/backend/dist/cjs/{mutex.js → backend/src/errors/invalid_usage_error.js} +20 -37
  43. package/backend/dist/cjs/backend/src/errors/system_error.d.ts +230 -0
  44. package/backend/dist/cjs/backend/src/errors/system_error.js +393 -0
  45. package/backend/dist/cjs/backend/src/events.d.ts +54 -0
  46. package/backend/dist/cjs/backend/src/events.js +15 -0
  47. package/backend/dist/cjs/{frontend.js → backend/src/frontend.js} +1 -1
  48. package/backend/dist/cjs/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
  49. package/backend/dist/cjs/{image_endpoint.js → backend/src/image_endpoint.js} +3 -5
  50. package/backend/dist/cjs/backend/src/logger.d.ts +5 -0
  51. package/backend/dist/cjs/backend/src/logger.js +15 -0
  52. package/backend/dist/cjs/backend/src/meta.d.ts +64 -0
  53. package/backend/dist/cjs/{meta.js → backend/src/meta.js} +9 -12
  54. package/backend/dist/cjs/backend/src/payments/paddle.d.ts +326 -0
  55. package/backend/dist/cjs/{payments → backend/src/payments}/paddle.js +377 -327
  56. package/backend/dist/cjs/backend/src/plugins/browser.d.ts +1 -0
  57. package/backend/dist/cjs/backend/src/plugins/browser.js +15 -0
  58. package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +248 -0
  59. package/backend/dist/cjs/backend/src/plugins/mail/mail.js +379 -0
  60. package/backend/dist/{esm → cjs/backend/src}/plugins/mail/ui.d.ts +23 -0
  61. package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +1 -0
  62. package/backend/dist/cjs/backend/src/rate_limit.d.ts +145 -0
  63. package/backend/dist/cjs/backend/src/rate_limit.js +549 -0
  64. package/backend/dist/cjs/{route.d.ts → backend/src/route.d.ts} +3 -10
  65. package/backend/dist/cjs/{route.js → backend/src/route.js} +23 -21
  66. package/backend/dist/cjs/backend/src/server.d.ts +485 -0
  67. package/backend/dist/cjs/{server.js → backend/src/server.js} +688 -873
  68. package/backend/dist/cjs/backend/src/splash_screen.d.ts +80 -0
  69. package/backend/dist/cjs/{splash_screen.js → backend/src/splash_screen.js} +24 -3
  70. package/backend/dist/cjs/backend/src/status.d.ts +74 -0
  71. package/backend/dist/cjs/{status.js → backend/src/status.js} +64 -64
  72. package/backend/dist/cjs/backend/src/stream.d.ts +376 -0
  73. package/backend/dist/cjs/{stream.js → backend/src/stream.js} +299 -276
  74. package/backend/dist/cjs/backend/src/users.d.ts +807 -0
  75. package/backend/dist/cjs/backend/src/users.js +1971 -0
  76. package/backend/dist/cjs/backend/src/utils.d.ts +16 -0
  77. package/backend/dist/cjs/{utils.js → backend/src/utils.js} +14 -77
  78. package/backend/dist/{esm → cjs/backend/src}/view.d.ts +33 -11
  79. package/backend/dist/cjs/backend/src/view.js +508 -0
  80. package/backend/dist/{esm → cjs/backend/src}/volt.d.ts +10 -1
  81. package/backend/dist/cjs/{volt.js → backend/src/volt.js} +8 -5
  82. package/backend/dist/cjs/frontend/src/modules/request.d.ts +70 -0
  83. package/backend/dist/cjs/frontend/src/modules/request.js +99 -0
  84. package/backend/dist/esm/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
  85. package/backend/dist/esm/{blacklist.js → backend/src/blacklist.js} +9 -6
  86. package/backend/dist/esm/{cli.js → backend/src/cli.js} +43 -60
  87. package/backend/dist/esm/backend/src/database/collection.d.ts +1543 -0
  88. package/backend/dist/esm/backend/src/database/collection.js +3510 -0
  89. package/backend/dist/esm/backend/src/database/database.d.ts +66 -0
  90. package/backend/dist/esm/{database → backend/src/database}/database.js +62 -103
  91. package/backend/dist/esm/backend/src/database/document.d.ts +1 -0
  92. package/backend/dist/esm/backend/src/database/document.js +558 -0
  93. package/backend/dist/esm/backend/src/database/filters/filters.d.ts +6 -0
  94. package/backend/dist/esm/backend/src/database/filters/filters.js +1 -0
  95. package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +223 -0
  96. package/backend/dist/esm/backend/src/database/filters/strict_filter.js +3 -0
  97. package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +1 -0
  98. package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +505 -0
  99. package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +1 -0
  100. package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +712 -0
  101. package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
  102. package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +5 -0
  103. package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
  104. package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +44 -0
  105. package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
  106. package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +5 -0
  107. package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
  108. package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +1 -0
  109. package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +165 -0
  110. package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +5 -0
  111. package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
  112. package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +405 -0
  113. package/backend/dist/esm/backend/src/database/flatten.d.ts +75 -0
  114. package/backend/dist/esm/backend/src/database/flatten.js +22 -0
  115. package/backend/dist/esm/backend/src/database/flatten_test.d.ts +1 -0
  116. package/backend/dist/esm/backend/src/database/flatten_test.js +174 -0
  117. package/backend/dist/esm/backend/src/database/quota/quota.d.ts +461 -0
  118. package/backend/dist/esm/backend/src/database/quota/quota.js +1118 -0
  119. package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +534 -0
  120. package/backend/dist/esm/backend/src/database/quota/quota_v1.js +1242 -0
  121. package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +293 -0
  122. package/backend/dist/esm/backend/src/database/quota/safe_int.js +602 -0
  123. package/backend/dist/{cjs → esm/backend/src}/endpoint.d.ts +69 -46
  124. package/backend/dist/esm/{endpoint.js → backend/src/endpoint.js} +136 -127
  125. package/backend/dist/esm/backend/src/errors/index.d.ts +7 -0
  126. package/backend/dist/esm/backend/src/errors/index.js +7 -0
  127. package/backend/dist/{cjs/utils.d.ts → esm/backend/src/errors/internal_external.d.ts} +14 -22
  128. package/backend/dist/esm/backend/src/errors/internal_external.js +70 -0
  129. package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +38 -0
  130. package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +30 -0
  131. package/backend/dist/esm/backend/src/errors/system_error.d.ts +230 -0
  132. package/backend/dist/esm/backend/src/errors/system_error.js +402 -0
  133. package/backend/dist/esm/backend/src/events.d.ts +54 -0
  134. package/backend/dist/esm/backend/src/events.js +5 -0
  135. package/backend/dist/esm/{frontend.js → backend/src/frontend.js} +1 -1
  136. package/backend/dist/esm/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
  137. package/backend/dist/esm/{image_endpoint.js → backend/src/image_endpoint.js} +16 -20
  138. package/backend/dist/esm/backend/src/logger.d.ts +5 -0
  139. package/backend/dist/esm/backend/src/logger.js +8 -0
  140. package/backend/dist/esm/backend/src/meta.d.ts +64 -0
  141. package/backend/dist/esm/{meta.js → backend/src/meta.js} +15 -54
  142. package/backend/dist/esm/backend/src/payments/paddle.d.ts +326 -0
  143. package/backend/dist/esm/{payments → backend/src/payments}/paddle.js +417 -452
  144. package/backend/dist/esm/backend/src/plugins/browser.d.ts +1 -0
  145. package/backend/dist/esm/backend/src/plugins/browser.js +170 -0
  146. package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +248 -0
  147. package/backend/dist/esm/backend/src/plugins/mail/mail.js +389 -0
  148. package/backend/dist/{cjs → esm/backend/src}/plugins/mail/ui.d.ts +23 -0
  149. package/backend/dist/esm/{plugins → backend/src/plugins}/mail/ui.js +3 -6
  150. package/backend/dist/esm/backend/src/plugins/pdf.d.ts +1 -0
  151. package/backend/dist/esm/{plugins → backend/src/plugins}/pdf.js +3 -3
  152. package/backend/dist/esm/backend/src/rate_limit.d.ts +145 -0
  153. package/backend/dist/esm/backend/src/rate_limit.js +667 -0
  154. package/backend/dist/esm/{route.d.ts → backend/src/route.d.ts} +3 -10
  155. package/backend/dist/esm/{route.js → backend/src/route.js} +26 -21
  156. package/backend/dist/esm/backend/src/server.d.ts +485 -0
  157. package/backend/dist/esm/{server.js → backend/src/server.js} +891 -1441
  158. package/backend/dist/esm/backend/src/splash_screen.d.ts +80 -0
  159. package/backend/dist/esm/{splash_screen.js → backend/src/splash_screen.js} +42 -55
  160. package/backend/dist/esm/backend/src/status.d.ts +74 -0
  161. package/backend/dist/esm/backend/src/status.js +199 -0
  162. package/backend/dist/esm/backend/src/stream.d.ts +376 -0
  163. package/backend/dist/esm/{stream.js → backend/src/stream.js} +327 -292
  164. package/backend/dist/esm/backend/src/users.d.ts +809 -0
  165. package/backend/dist/esm/backend/src/users.js +2140 -0
  166. package/backend/dist/esm/backend/src/utils.d.ts +16 -0
  167. package/backend/dist/esm/{utils.js → backend/src/utils.js} +20 -81
  168. package/backend/dist/{cjs → esm/backend/src}/view.d.ts +33 -11
  169. package/backend/dist/esm/{view.js → backend/src/view.js} +266 -86
  170. package/backend/dist/{cjs → esm/backend/src}/volt.d.ts +10 -1
  171. package/backend/dist/esm/{volt.js → backend/src/volt.js} +7 -4
  172. package/backend/dist/esm/frontend/src/modules/request.d.ts +70 -0
  173. package/backend/dist/esm/frontend/src/modules/request.js +117 -0
  174. package/frontend/dist/backend/src/database/collection.d.ts +1543 -0
  175. package/frontend/dist/backend/src/database/collection.js +3510 -0
  176. package/frontend/dist/backend/src/database/database.d.ts +66 -0
  177. package/frontend/dist/backend/src/database/database.js +196 -0
  178. package/frontend/dist/backend/src/database/filters/filters.d.ts +6 -0
  179. package/frontend/dist/backend/src/database/filters/filters.js +1 -0
  180. package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +223 -0
  181. package/frontend/dist/backend/src/database/filters/strict_filter.js +3 -0
  182. package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +165 -0
  183. package/frontend/dist/backend/src/database/filters/strict_update_filter.js +5 -0
  184. package/frontend/dist/backend/src/database/flatten.d.ts +75 -0
  185. package/frontend/dist/backend/src/database/flatten.js +22 -0
  186. package/frontend/dist/backend/src/endpoint.d.ts +204 -0
  187. package/frontend/dist/backend/src/endpoint.js +570 -0
  188. package/frontend/dist/backend/src/errors/index.d.ts +7 -0
  189. package/frontend/dist/backend/src/errors/index.js +7 -0
  190. package/frontend/dist/backend/src/errors/internal_external.d.ts +38 -0
  191. package/frontend/dist/backend/src/errors/internal_external.js +70 -0
  192. package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +38 -0
  193. package/frontend/dist/backend/src/errors/invalid_usage_error.js +30 -0
  194. package/frontend/dist/backend/src/errors/system_error.d.ts +230 -0
  195. package/frontend/dist/backend/src/errors/system_error.js +402 -0
  196. package/frontend/dist/backend/src/events.d.ts +54 -0
  197. package/frontend/dist/backend/src/events.js +5 -0
  198. package/frontend/dist/backend/src/frontend.d.ts +11 -0
  199. package/frontend/dist/backend/src/frontend.js +12 -0
  200. package/frontend/dist/backend/src/image_endpoint.d.ts +39 -0
  201. package/frontend/dist/backend/src/image_endpoint.js +202 -0
  202. package/frontend/dist/backend/src/meta.d.ts +64 -0
  203. package/frontend/dist/backend/src/meta.js +110 -0
  204. package/frontend/dist/backend/src/payments/paddle.d.ts +326 -0
  205. package/frontend/dist/backend/src/payments/paddle.js +2256 -0
  206. package/frontend/dist/backend/src/plugins/mail/mail.d.ts +248 -0
  207. package/frontend/dist/backend/src/plugins/mail/mail.js +389 -0
  208. package/{backend/dist/esm/plugins/mail.d.ts → frontend/dist/backend/src/plugins/mail/ui.d.ts} +23 -0
  209. package/{backend/dist/esm/plugins/mail.js → frontend/dist/backend/src/plugins/mail/ui.js} +3 -6
  210. package/frontend/dist/backend/src/rate_limit.d.ts +145 -0
  211. package/frontend/dist/backend/src/rate_limit.js +673 -0
  212. package/frontend/dist/backend/src/route.d.ts +35 -0
  213. package/frontend/dist/backend/src/route.js +212 -0
  214. package/frontend/dist/backend/src/server.d.ts +485 -0
  215. package/frontend/dist/backend/src/server.js +2670 -0
  216. package/frontend/dist/backend/src/splash_screen.d.ts +80 -0
  217. package/frontend/dist/backend/src/splash_screen.js +135 -0
  218. package/frontend/dist/backend/src/status.d.ts +74 -0
  219. package/frontend/dist/backend/src/status.js +199 -0
  220. package/frontend/dist/backend/src/stream.d.ts +376 -0
  221. package/frontend/dist/backend/src/stream.js +1007 -0
  222. package/frontend/dist/backend/src/users.d.ts +807 -0
  223. package/frontend/dist/backend/src/users.js +2118 -0
  224. package/frontend/dist/backend/src/utils.d.ts +16 -0
  225. package/frontend/dist/backend/src/utils.js +241 -0
  226. package/frontend/dist/backend/src/view.d.ts +162 -0
  227. package/frontend/dist/backend/src/view.js +720 -0
  228. package/frontend/dist/frontend/src/elements/base.d.ts +4414 -0
  229. package/frontend/dist/{elements → frontend/src/elements}/base.js +3624 -260
  230. package/frontend/dist/frontend/src/elements/module.d.ts +95 -0
  231. package/frontend/dist/{elements → frontend/src/elements}/module.js +53 -52
  232. package/frontend/dist/frontend/src/elements/types.d.ts +52 -0
  233. package/frontend/dist/frontend/src/elements/types.js +5 -0
  234. package/frontend/dist/frontend/src/modules/attachment.d.ts +126 -0
  235. package/frontend/dist/frontend/src/modules/attachment.js +306 -0
  236. package/frontend/dist/frontend/src/modules/auth.d.ts +44 -0
  237. package/frontend/dist/frontend/src/modules/auth.js +80 -0
  238. package/frontend/dist/{modules → frontend/src/modules}/color.js +2 -2
  239. package/frontend/dist/frontend/src/modules/compression.d.ts +39 -0
  240. package/frontend/dist/frontend/src/modules/compression.js +102 -0
  241. package/frontend/dist/frontend/src/modules/cookies.d.ts +44 -0
  242. package/frontend/dist/frontend/src/modules/cookies.js +143 -0
  243. package/frontend/dist/frontend/src/modules/events.d.ts +31 -0
  244. package/frontend/dist/frontend/src/modules/events.js +74 -0
  245. package/frontend/dist/frontend/src/modules/google.d.ts +23 -0
  246. package/frontend/dist/frontend/src/modules/google.js +52 -0
  247. package/frontend/dist/frontend/src/modules/meta.d.ts +14 -0
  248. package/frontend/dist/{modules → frontend/src/modules}/meta.js +9 -7
  249. package/frontend/dist/{modules → frontend/src/modules}/paddle.d.ts +37 -134
  250. package/frontend/dist/{modules → frontend/src/modules}/paddle.js +620 -568
  251. package/frontend/dist/frontend/src/modules/request.d.ts +70 -0
  252. package/frontend/dist/frontend/src/modules/request.js +117 -0
  253. package/frontend/dist/frontend/src/modules/settings.d.ts +3 -0
  254. package/frontend/dist/frontend/src/modules/settings.js +5 -0
  255. package/frontend/dist/frontend/src/modules/statics.d.ts +21 -0
  256. package/frontend/dist/{modules → frontend/src/modules}/statics.js +15 -18
  257. package/frontend/dist/frontend/src/modules/support.d.ts +30 -0
  258. package/frontend/dist/frontend/src/modules/support.js +53 -0
  259. package/frontend/dist/{modules → frontend/src/modules}/theme.d.ts +67 -0
  260. package/frontend/dist/{modules → frontend/src/modules}/theme.js +68 -38
  261. package/frontend/dist/frontend/src/modules/themes.d.ts +12 -0
  262. package/frontend/dist/frontend/src/modules/themes.js +22 -0
  263. package/frontend/dist/frontend/src/modules/user.d.ts +164 -0
  264. package/frontend/dist/frontend/src/modules/user.js +268 -0
  265. package/frontend/dist/frontend/src/modules/utils.d.ts +176 -0
  266. package/frontend/dist/frontend/src/modules/utils.js +569 -0
  267. package/frontend/dist/frontend/src/types/gradient.d.ts +29 -0
  268. package/frontend/dist/{types → frontend/src/types}/gradient.js +14 -18
  269. package/frontend/dist/frontend/src/ui/border_button.d.ts +94 -0
  270. package/frontend/dist/{ui → frontend/src/ui}/border_button.js +7 -13
  271. package/frontend/dist/frontend/src/ui/button.d.ts +28 -0
  272. package/frontend/dist/{ui → frontend/src/ui}/button.js +21 -12
  273. package/frontend/dist/frontend/src/ui/canvas.d.ts +138 -0
  274. package/frontend/dist/{ui → frontend/src/ui}/canvas.js +88 -55
  275. package/frontend/dist/frontend/src/ui/checkbox.d.ts +74 -0
  276. package/frontend/dist/{ui → frontend/src/ui}/checkbox.js +80 -41
  277. package/frontend/dist/{ui → frontend/src/ui}/code.d.ts +73 -6
  278. package/frontend/dist/{ui → frontend/src/ui}/code.js +55 -52
  279. package/frontend/dist/{ui → frontend/src/ui}/context_menu.d.ts +4 -0
  280. package/frontend/dist/{ui → frontend/src/ui}/context_menu.js +12 -17
  281. package/frontend/dist/{ui → frontend/src/ui}/css.d.ts +4 -0
  282. package/frontend/dist/{ui → frontend/src/ui}/css.js +3 -3
  283. package/frontend/dist/{ui → frontend/src/ui}/divider.d.ts +4 -0
  284. package/frontend/dist/{ui → frontend/src/ui}/divider.js +3 -3
  285. package/frontend/dist/{ui → frontend/src/ui}/dropdown.d.ts +57 -2
  286. package/frontend/dist/{ui → frontend/src/ui}/dropdown.js +87 -94
  287. package/frontend/dist/{ui → frontend/src/ui}/for_each.d.ts +4 -0
  288. package/frontend/dist/{ui → frontend/src/ui}/for_each.js +3 -3
  289. package/frontend/dist/{ui → frontend/src/ui}/form.d.ts +6 -2
  290. package/frontend/dist/{ui → frontend/src/ui}/form.js +10 -7
  291. package/frontend/dist/frontend/src/ui/frame_modes.d.ts +37 -0
  292. package/frontend/dist/{ui → frontend/src/ui}/frame_modes.js +16 -22
  293. package/frontend/dist/{ui → frontend/src/ui}/google_map.d.ts +4 -0
  294. package/frontend/dist/{ui → frontend/src/ui}/google_map.js +4 -4
  295. package/frontend/dist/{ui → frontend/src/ui}/gradient.d.ts +4 -0
  296. package/frontend/dist/{ui → frontend/src/ui}/gradient.js +3 -3
  297. package/frontend/dist/{ui → frontend/src/ui}/image.d.ts +4 -0
  298. package/frontend/dist/{ui → frontend/src/ui}/image.js +5 -5
  299. package/frontend/dist/frontend/src/ui/input.d.ts +392 -0
  300. package/frontend/dist/{ui → frontend/src/ui}/input.js +346 -360
  301. package/frontend/dist/{ui → frontend/src/ui}/link.d.ts +4 -0
  302. package/frontend/dist/{ui → frontend/src/ui}/link.js +3 -3
  303. package/frontend/dist/{ui → frontend/src/ui}/list.d.ts +4 -0
  304. package/frontend/dist/{ui → frontend/src/ui}/list.js +12 -6
  305. package/frontend/dist/frontend/src/ui/loader_button.d.ts +80 -0
  306. package/frontend/dist/{ui → frontend/src/ui}/loader_button.js +35 -47
  307. package/frontend/dist/frontend/src/ui/loaders.d.ts +57 -0
  308. package/frontend/dist/{ui → frontend/src/ui}/loaders.js +11 -11
  309. package/frontend/dist/{ui → frontend/src/ui}/popup.d.ts +11 -6
  310. package/frontend/dist/{ui → frontend/src/ui}/popup.js +32 -18
  311. package/frontend/dist/frontend/src/ui/pseudo.d.ts +44 -0
  312. package/frontend/dist/{ui → frontend/src/ui}/pseudo.js +84 -8
  313. package/frontend/dist/{ui → frontend/src/ui}/scroller.d.ts +14 -2
  314. package/frontend/dist/{ui → frontend/src/ui}/scroller.js +37 -43
  315. package/frontend/dist/{ui → frontend/src/ui}/slider.d.ts +5 -1
  316. package/frontend/dist/{ui → frontend/src/ui}/slider.js +4 -4
  317. package/frontend/dist/{ui → frontend/src/ui}/spacer.d.ts +4 -0
  318. package/frontend/dist/{ui → frontend/src/ui}/spacer.js +3 -3
  319. package/frontend/dist/{ui → frontend/src/ui}/span.d.ts +4 -0
  320. package/frontend/dist/{ui → frontend/src/ui}/span.js +3 -3
  321. package/frontend/dist/{ui → frontend/src/ui}/stack.d.ts +4 -0
  322. package/frontend/dist/{ui → frontend/src/ui}/stack.js +3 -9
  323. package/frontend/dist/frontend/src/ui/steps.d.ts +131 -0
  324. package/frontend/dist/{ui → frontend/src/ui}/steps.js +30 -45
  325. package/frontend/dist/{ui → frontend/src/ui}/style.d.ts +4 -0
  326. package/frontend/dist/{ui → frontend/src/ui}/style.js +3 -3
  327. package/frontend/dist/{ui → frontend/src/ui}/switch.d.ts +5 -1
  328. package/frontend/dist/{ui → frontend/src/ui}/switch.js +4 -4
  329. package/frontend/dist/{ui → frontend/src/ui}/table.d.ts +4 -0
  330. package/frontend/dist/{ui → frontend/src/ui}/table.js +6 -6
  331. package/frontend/dist/{ui → frontend/src/ui}/tabs.d.ts +45 -3
  332. package/frontend/dist/{ui → frontend/src/ui}/tabs.js +65 -40
  333. package/frontend/dist/{ui → frontend/src/ui}/text.d.ts +4 -0
  334. package/frontend/dist/{ui → frontend/src/ui}/text.js +3 -3
  335. package/frontend/dist/frontend/src/ui/title.d.ts +91 -0
  336. package/frontend/dist/frontend/src/ui/title.js +272 -0
  337. package/frontend/dist/{ui → frontend/src/ui}/view.d.ts +4 -0
  338. package/frontend/dist/{ui → frontend/src/ui}/view.js +3 -3
  339. package/frontend/dist/{volt.d.ts → frontend/src/volt.d.ts} +3 -0
  340. package/frontend/dist/{volt.js → frontend/src/volt.js} +4 -0
  341. package/frontend/tools/bundle_d_ts.js +71 -0
  342. package/frontend/tools/convert_to_jsdoc_input.txt +9452 -0
  343. package/frontend/tools/convert_to_jsdoc_output.txt +7626 -0
  344. package/frontend/tools/convert_to_jsdoc_tmp.js +345 -0
  345. package/package.json +11 -12
  346. package/backend/dist/cjs/database/collection.d.ts +0 -160
  347. package/backend/dist/cjs/database/collection.js +0 -842
  348. package/backend/dist/cjs/database/database.d.ts +0 -121
  349. package/backend/dist/cjs/database/document.d.ts +0 -131
  350. package/backend/dist/cjs/database/document.js +0 -224
  351. package/backend/dist/cjs/database.d.ts +0 -502
  352. package/backend/dist/cjs/database.js +0 -2248
  353. package/backend/dist/cjs/logger.d.ts +0 -3
  354. package/backend/dist/cjs/meta.d.ts +0 -50
  355. package/backend/dist/cjs/mutex.d.ts +0 -24
  356. package/backend/dist/cjs/payments/paddle.d.ts +0 -160
  357. package/backend/dist/cjs/plugins/browser.d.ts +0 -36
  358. package/backend/dist/cjs/plugins/browser.js +0 -198
  359. package/backend/dist/cjs/plugins/css.d.ts +0 -11
  360. package/backend/dist/cjs/plugins/css.js +0 -80
  361. package/backend/dist/cjs/plugins/mail.d.ts +0 -277
  362. package/backend/dist/cjs/plugins/mail.js +0 -1370
  363. package/backend/dist/cjs/plugins/ts/compiler.d.ts +0 -139
  364. package/backend/dist/cjs/plugins/ts/compiler.js +0 -750
  365. package/backend/dist/cjs/plugins/ts/preprocessing.d.ts +0 -14
  366. package/backend/dist/cjs/plugins/ts/preprocessing.js +0 -440
  367. package/backend/dist/cjs/rate_limit.d.ts +0 -63
  368. package/backend/dist/cjs/rate_limit.js +0 -348
  369. package/backend/dist/cjs/request.deprc.d.ts +0 -48
  370. package/backend/dist/cjs/request.deprc.js +0 -572
  371. package/backend/dist/cjs/response.deprc.d.ts +0 -55
  372. package/backend/dist/cjs/response.deprc.js +0 -275
  373. package/backend/dist/cjs/server.d.ts +0 -342
  374. package/backend/dist/cjs/splash_screen.d.ts +0 -35
  375. package/backend/dist/cjs/status.d.ts +0 -61
  376. package/backend/dist/cjs/stream.d.ts +0 -79
  377. package/backend/dist/cjs/users.d.ts +0 -111
  378. package/backend/dist/cjs/users.js +0 -1817
  379. package/backend/dist/cjs/view.js +0 -352
  380. package/backend/dist/cjs/vinc.dev.d.ts +0 -3
  381. package/backend/dist/cjs/vinc.dev.js +0 -7
  382. package/backend/dist/css/adyen.css +0 -92
  383. package/backend/dist/css/volt.css +0 -70
  384. package/backend/dist/esm/database/collection.d.ts +0 -160
  385. package/backend/dist/esm/database/collection.js +0 -1328
  386. package/backend/dist/esm/database/database.d.ts +0 -121
  387. package/backend/dist/esm/database/document.d.ts +0 -131
  388. package/backend/dist/esm/database/document.js +0 -247
  389. package/backend/dist/esm/database.d.ts +0 -502
  390. package/backend/dist/esm/database.js +0 -2423
  391. package/backend/dist/esm/file_watcher.js +0 -329
  392. package/backend/dist/esm/logger.d.ts +0 -3
  393. package/backend/dist/esm/logger.js +0 -11
  394. package/backend/dist/esm/meta.d.ts +0 -50
  395. package/backend/dist/esm/mutex.d.ts +0 -24
  396. package/backend/dist/esm/mutex.js +0 -48
  397. package/backend/dist/esm/payments/paddle.d.ts +0 -160
  398. package/backend/dist/esm/plugins/browser.d.ts +0 -36
  399. package/backend/dist/esm/plugins/browser.js +0 -176
  400. package/backend/dist/esm/plugins/css.d.ts +0 -11
  401. package/backend/dist/esm/plugins/css.js +0 -90
  402. package/backend/dist/esm/plugins/ts/compiler.d.ts +0 -139
  403. package/backend/dist/esm/plugins/ts/compiler.js +0 -1194
  404. package/backend/dist/esm/plugins/ts/preprocessing.d.ts +0 -14
  405. package/backend/dist/esm/plugins/ts/preprocessing.js +0 -726
  406. package/backend/dist/esm/rate_limit.d.ts +0 -63
  407. package/backend/dist/esm/rate_limit.js +0 -417
  408. package/backend/dist/esm/request.deprc.d.ts +0 -48
  409. package/backend/dist/esm/request.deprc.js +0 -572
  410. package/backend/dist/esm/response.deprc.d.ts +0 -55
  411. package/backend/dist/esm/response.deprc.js +0 -275
  412. package/backend/dist/esm/server.d.ts +0 -342
  413. package/backend/dist/esm/splash_screen.d.ts +0 -35
  414. package/backend/dist/esm/status.d.ts +0 -61
  415. package/backend/dist/esm/status.js +0 -197
  416. package/backend/dist/esm/stream.d.ts +0 -79
  417. package/backend/dist/esm/users.d.ts +0 -111
  418. package/backend/dist/esm/users.js +0 -1935
  419. package/backend/dist/esm/vinc.dev.d.ts +0 -3
  420. package/backend/dist/esm/vinc.dev.js +0 -7
  421. package/frontend/dist/elements/base.d.ts +0 -9889
  422. package/frontend/dist/elements/module.d.ts +0 -30
  423. package/frontend/dist/modules/array.d.ts +0 -94
  424. package/frontend/dist/modules/array.js +0 -634
  425. package/frontend/dist/modules/auth.d.ts +0 -46
  426. package/frontend/dist/modules/auth.js +0 -139
  427. package/frontend/dist/modules/colors.d.ts +0 -1
  428. package/frontend/dist/modules/colors.js +0 -417
  429. package/frontend/dist/modules/compression.d.ts +0 -6
  430. package/frontend/dist/modules/compression.js +0 -999
  431. package/frontend/dist/modules/cookies.d.ts +0 -18
  432. package/frontend/dist/modules/cookies.js +0 -167
  433. package/frontend/dist/modules/date.d.ts +0 -142
  434. package/frontend/dist/modules/date.js +0 -493
  435. package/frontend/dist/modules/events.d.ts +0 -8
  436. package/frontend/dist/modules/events.js +0 -91
  437. package/frontend/dist/modules/google.d.ts +0 -11
  438. package/frontend/dist/modules/google.js +0 -54
  439. package/frontend/dist/modules/meta.d.ts +0 -10
  440. package/frontend/dist/modules/mutex.d.ts +0 -7
  441. package/frontend/dist/modules/mutex.js +0 -51
  442. package/frontend/dist/modules/number.d.ts +0 -16
  443. package/frontend/dist/modules/number.js +0 -23
  444. package/frontend/dist/modules/object.d.ts +0 -52
  445. package/frontend/dist/modules/object.js +0 -383
  446. package/frontend/dist/modules/scheme.d.ts +0 -227
  447. package/frontend/dist/modules/scheme.js +0 -531
  448. package/frontend/dist/modules/settings.d.ts +0 -3
  449. package/frontend/dist/modules/settings.js +0 -4
  450. package/frontend/dist/modules/statics.d.ts +0 -5
  451. package/frontend/dist/modules/string.d.ts +0 -124
  452. package/frontend/dist/modules/string.js +0 -745
  453. package/frontend/dist/modules/support.d.ts +0 -19
  454. package/frontend/dist/modules/support.js +0 -103
  455. package/frontend/dist/modules/themes.d.ts +0 -8
  456. package/frontend/dist/modules/themes.js +0 -18
  457. package/frontend/dist/modules/user.d.ts +0 -59
  458. package/frontend/dist/modules/user.js +0 -280
  459. package/frontend/dist/modules/utils.d.ts +0 -87
  460. package/frontend/dist/modules/utils.js +0 -923
  461. package/frontend/dist/types/gradient.d.ts +0 -12
  462. package/frontend/dist/ui/border_button.d.ts +0 -152
  463. package/frontend/dist/ui/button.d.ts +0 -21
  464. package/frontend/dist/ui/canvas.d.ts +0 -56
  465. package/frontend/dist/ui/checkbox.d.ts +0 -52
  466. package/frontend/dist/ui/frame_modes.d.ts +0 -25
  467. package/frontend/dist/ui/input.d.ts +0 -241
  468. package/frontend/dist/ui/loader_button.d.ts +0 -93
  469. package/frontend/dist/ui/loaders.d.ts +0 -57
  470. package/frontend/dist/ui/pseudo.d.ts +0 -16
  471. package/frontend/dist/ui/steps.d.ts +0 -59
  472. package/frontend/dist/ui/title.d.ts +0 -21
  473. package/frontend/dist/ui/title.js +0 -121
  474. package/frontend/examples/dashboard/dashboard.ts +0 -776
  475. /package/backend/dist/cjs/{cli.d.ts → backend/src/cli.d.ts} +0 -0
  476. /package/backend/dist/cjs/{file_watcher.d.ts → backend/src/database/document.d.ts} +0 -0
  477. /package/backend/dist/cjs/{file_watcher.js → backend/src/database/document.js} +0 -0
  478. /package/backend/dist/cjs/{plugins/pdf.d.ts → backend/src/database/filters/strict_filter_test.d.ts} +0 -0
  479. /package/backend/dist/{esm/file_watcher.d.ts → cjs/backend/src/database/filters/strict_filter_test_v0.d.ts} +0 -0
  480. /package/backend/dist/{esm/plugins/pdf.d.ts → cjs/backend/src/database/flatten_test.d.ts} +0 -0
  481. /package/backend/dist/cjs/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
  482. /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.d.ts +0 -0
  483. /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.js +0 -0
  484. /package/backend/dist/cjs/{plugins → backend/src/plugins}/mail/ui.js +0 -0
  485. /package/backend/dist/cjs/{plugins → backend/src/plugins}/pdf.js +0 -0
  486. /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
  487. /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
  488. /package/backend/dist/cjs/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
  489. /package/backend/dist/cjs/{vinc.js → backend/src/vinc.js} +0 -0
  490. /package/backend/dist/esm/{cli.d.ts → backend/src/cli.d.ts} +0 -0
  491. /package/backend/dist/esm/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
  492. /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.d.ts +0 -0
  493. /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.js +0 -0
  494. /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
  495. /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
  496. /package/backend/dist/esm/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
  497. /package/backend/dist/esm/{vinc.js → backend/src/vinc.js} +0 -0
  498. /package/frontend/dist/{elements → frontend/src/elements}/register_element.d.ts +0 -0
  499. /package/frontend/dist/{elements → frontend/src/elements}/register_element.js +0 -0
  500. /package/frontend/dist/{modules → frontend/src/modules}/color.d.ts +0 -0
  501. /package/frontend/dist/{ui → frontend/src/ui}/ui.d.ts +0 -0
  502. /package/frontend/dist/{ui → frontend/src/ui}/ui.js +0 -0
@@ -1,9 +1,40 @@
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
+ */
1
5
  import { VElementBaseSignature } from "../elements/module.js";
2
- import { HStackElement, AnchorHStackElement } from "./stack";
3
- import { ImageMaskElement } from "./image";
6
+ import { HStackElement, AnchorHStackElement } from "./stack.js";
7
+ import { ImageMaskElement } from "./image.js";
4
8
  import { AnyElement } from "./any_element.js";
9
+ /**
10
+ * Callback invoked with the dropdown element instance.
11
+ */
5
12
  type DropdownCallback = (element: DropdownElement) => void;
6
13
  declare const DropdownElement_base: VElementBaseSignature;
14
+ /**
15
+ * Easily create a dropdown element.
16
+ * @nav Frontend/Elements
17
+ * @param target The target element for where the dropdown will be placed.
18
+ * @param animate Enable animations.
19
+ * @param duration The animation duration in milliseconds.
20
+ * @param side Expand to the `"left"` or `"right"` side relative to the target element.
21
+ * @param auto_remove Auto remove the dropdown when it is closed.
22
+ * @param use_target_min Use the target element for a minimum width of the dropdown.
23
+ * @param below_target Place the dropdown below the target with by default an `y_offset` of `10`, unless `y_offset` is defined as `false`.
24
+ * @param x_offset The additional x offset of the dropdown's position, this value will be added the computed x position.
25
+ * @param y_offset The additional y offset of the dropdown's position, this value will be added the computed y position.
26
+ * @param content Optional content array to easily create a context-menu like dropdown menu.
27
+ * @param content.text The content text. Required.
28
+ * @param content.image The content image source.
29
+ * @param content.image_padding The image padding.
30
+ * @param content.image_top The image margin top.
31
+ * @param content.href The href redirect on click.
32
+ * @param content.callback The on click callback.
33
+ * @param content.on_click The on click callback.
34
+ * @param content.on_click_redirect The on click redirect function arguments.
35
+ * @param content.anchor Flag indicating if the content node should be an anchor. Default: false.
36
+ * @docs
37
+ */
7
38
  export declare class DropdownElement extends DropdownElement_base {
8
39
  static element_name: string;
9
40
  private _target;
@@ -36,6 +67,9 @@ export declare class DropdownElement extends DropdownElement_base {
36
67
  expanded: boolean;
37
68
  animation_timeout: any;
38
69
  close_handler?: Function;
70
+ /**
71
+ * Create a new dropdown instance. See the class documentation for available options.
72
+ */
39
73
  constructor({ target, animate, duration, side, auto_remove, min_width, max_width, min_height, max_height, use_target_min, below_target, x_offset, y_offset, content, }: {
40
74
  target: AnyElement | HTMLElement;
41
75
  animate?: boolean;
@@ -63,9 +97,25 @@ export declare class DropdownElement extends DropdownElement_base {
63
97
  ellipsis_overflow?: boolean;
64
98
  }[];
65
99
  });
100
+ /**
101
+ * Measure the dropdown to compute and cache min/max frame sizes based on current content and constraints.
102
+ * @private
103
+ */
66
104
  _get_frame(): void;
105
+ /**
106
+ * Toggle the dropdown: expands when minimized, minimizes when expanded.
107
+ */
67
108
  toggle(): this;
109
+ /**
110
+ * Expand (open) the dropdown and position it relative to the target.
111
+ * Triggers the `on_expand` callback when set.
112
+ */
68
113
  expand(): this;
114
+ /**
115
+ * Minimize (close) the dropdown.
116
+ * When `force` is true, skips the debounce guard to close immediately.
117
+ * @param force Force closing even if toggling is temporarily blocked.
118
+ */
69
119
  minimize(force?: boolean): this;
70
120
  on_expand(): undefined | DropdownCallback;
71
121
  on_expand(callback: DropdownCallback): this;
@@ -75,6 +125,11 @@ export declare class DropdownElement extends DropdownElement_base {
75
125
  font_size(value: string | number): this;
76
126
  color(): string;
77
127
  color(value: string): this;
128
+ /**
129
+ * Iterate content nodes created by the `content` parameter. When the callback returns any non null value the iteration will be stopped.
130
+ * @param callback The callback invoked for each content element.
131
+ * @docs
132
+ */
78
133
  iterate_content(callback: (element: AnchorHStackElement | HStackElement) => any): this;
79
134
  content_padding(): typeof this._content_padding;
80
135
  content_padding(...args: typeof this._content_padding): this;
@@ -1,6 +1,6 @@
1
- /*
2
- * Author: Daan van den Bergh
3
- * Copyright: © 2022 - 2024 Daan van den Bergh.
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
4
  */
5
5
  var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
6
6
  function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
@@ -39,91 +39,34 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
39
39
  // Imports.
40
40
  import { Elements } from "../elements/module.js";
41
41
  import { Utils } from "../modules/utils.js";
42
- import { VStackElement, HStack, AnchorHStack } from "./stack";
43
- import { ForEach } from "./for_each";
44
- import { ImageMask } from "./image";
45
- import { Text } from "./text";
42
+ import { VStackElement, HStack, AnchorHStack } from "./stack.js";
43
+ import { ForEach } from "./for_each.js";
44
+ import { ImageMask } from "./image.js";
45
+ import { Text } from "./text.js";
46
46
  // Dropdown element.
47
- /* @docs:
48
- @nav: Frontend
49
- @chapter: Elements
50
- @title: Dropdown element
51
- @descr: Easily create a dropdown element.
52
- @param:
53
- @name: target
54
- @descr: The target element for where the dropdown will be placed.
55
- @type: Node
56
- @param:
57
- @name: animate
58
- @descr: Enable animations.
59
- @type: boolean
60
- @param:
61
- @name: duration
62
- @descr: The animation duration in milliseconds.
63
- @type: number
64
- @param:
65
- @name: side
66
- @descr: Expand to the `"left"` or `"right"` side relative to the target element.
67
- @type: string
68
- @param:
69
- @name: auto_remove
70
- @descr: Auto remove the dropdown when it is closed.
71
- @type: boolean
72
- @param:
73
- @name: use_target_min
74
- @descr: Use the target element for a minimum width of the dropdown.
75
- @type: boolean
76
- @param:
77
- @name: below_target
78
- @descr: Place the dropdown below the target with by default an `y_offset` of `10`, unless `y_offset` is defined as `false`.
79
- @type: boolean
80
- @param:
81
- @name: x_offset
82
- @descr: The additional x offset of the dropdown's position, this value will be added the computed x position.
83
- @type: number
84
- @param:
85
- @name: y_offset
86
- @descr: The additional y offset of the dropdown's position, this value will be added the computed y position.
87
- @type: number
88
- @param:
89
- @name: content
90
- @descr: Optional content array to easily create a context-menu like dropdown menu.
91
- @type: object[]
92
- @attributes_type: Content
93
- @attr:
94
- @name: text
95
- @descr: The content text.
96
- @required: true
97
- @type: string
98
- @attr:
99
- @name: image
100
- @descr: The content image source.
101
- @type: string
102
- @attr:
103
- @name: image_padding
104
- @descr: The image padding.
105
- @type: number
106
- @attr:
107
- @name: image_top
108
- @descr: The image margin top.
109
- @type: number
110
- @attr:
111
- @name: href
112
- @descr: The href redirect on click.
113
- @type: string
114
- @attr:
115
- @name: callback / on_click
116
- @descr: The on click callback.
117
- @type: function
118
- @attr:
119
- @name: on_click_redirect
120
- @descr: The on click redirect function arguments.
121
- @type: string
122
- @attr:
123
- @name: anchor
124
- @descr: Flag indicating if the content node should be an anchor.
125
- @type: boolean
126
- @default: false
47
+ /**
48
+ * Easily create a dropdown element.
49
+ * @nav Frontend/Elements
50
+ * @param target The target element for where the dropdown will be placed.
51
+ * @param animate Enable animations.
52
+ * @param duration The animation duration in milliseconds.
53
+ * @param side Expand to the `"left"` or `"right"` side relative to the target element.
54
+ * @param auto_remove Auto remove the dropdown when it is closed.
55
+ * @param use_target_min Use the target element for a minimum width of the dropdown.
56
+ * @param below_target Place the dropdown below the target with by default an `y_offset` of `10`, unless `y_offset` is defined as `false`.
57
+ * @param x_offset The additional x offset of the dropdown's position, this value will be added the computed x position.
58
+ * @param y_offset The additional y offset of the dropdown's position, this value will be added the computed y position.
59
+ * @param content Optional content array to easily create a context-menu like dropdown menu.
60
+ * @param content.text The content text. Required.
61
+ * @param content.image The content image source.
62
+ * @param content.image_padding The image padding.
63
+ * @param content.image_top The image margin top.
64
+ * @param content.href The href redirect on click.
65
+ * @param content.callback The on click callback.
66
+ * @param content.on_click The on click callback.
67
+ * @param content.on_click_redirect The on click redirect function arguments.
68
+ * @param content.anchor Flag indicating if the content node should be an anchor. Default: false.
69
+ * @docs
127
70
  */
128
71
  let DropdownElement = (() => {
129
72
  let _classDecorators = [Elements.create({
@@ -172,6 +115,9 @@ let DropdownElement = (() => {
172
115
  expanded = false;
173
116
  animation_timeout;
174
117
  close_handler;
118
+ /**
119
+ * Create a new dropdown instance. See the class documentation for available options.
120
+ */
175
121
  constructor({ target, animate = true, duration = 300, side = "left", auto_remove = false, min_width = undefined, max_width = undefined, min_height = undefined, max_height = undefined, use_target_min = false, below_target = false, x_offset = undefined, y_offset = undefined, content = undefined, }) {
176
122
  // Base.
177
123
  super();
@@ -270,7 +216,10 @@ let DropdownElement = (() => {
270
216
  }));
271
217
  }
272
218
  }
273
- // Get frame.
219
+ /**
220
+ * Measure the dropdown to compute and cache min/max frame sizes based on current content and constraints.
221
+ * @private
222
+ */
274
223
  _get_frame() {
275
224
  this.visibility("hidden");
276
225
  this.show();
@@ -309,14 +258,19 @@ let DropdownElement = (() => {
309
258
  this.hide();
310
259
  this.visibility("visible");
311
260
  }
312
- // Toggle.
261
+ /**
262
+ * Toggle the dropdown: expands when minimized, minimizes when expanded.
263
+ */
313
264
  toggle() {
314
265
  if (this.expanded) {
315
266
  return this.minimize();
316
267
  }
317
268
  return this.expand();
318
269
  }
319
- // Expand dropdown.
270
+ /**
271
+ * Expand (open) the dropdown and position it relative to the target.
272
+ * Triggers the `on_expand` callback when set.
273
+ */
320
274
  expand() {
321
275
  if (this.next_toggle_allowed !== undefined && Date.now() < this.next_toggle_allowed) {
322
276
  return this;
@@ -362,7 +316,11 @@ let DropdownElement = (() => {
362
316
  }
363
317
  return this;
364
318
  }
365
- // Minimize dropdown.
319
+ /**
320
+ * Minimize (close) the dropdown.
321
+ * When `force` is true, skips the debounce guard to close immediately.
322
+ * @param force Force closing even if toggling is temporarily blocked.
323
+ */
366
324
  minimize(force = false) {
367
325
  if (!force && this.next_toggle_allowed !== undefined && Date.now() < this.next_toggle_allowed) {
368
326
  return this;
@@ -393,6 +351,10 @@ let DropdownElement = (() => {
393
351
  }
394
352
  return this;
395
353
  }
354
+ /**
355
+ * Get or set the callback invoked when the dropdown expands.
356
+ * @param callback The callback to set.
357
+ */
396
358
  on_expand(callback) {
397
359
  if (callback == null) {
398
360
  return this.on_expand_callback;
@@ -400,6 +362,10 @@ let DropdownElement = (() => {
400
362
  this.on_expand_callback = callback;
401
363
  return this;
402
364
  }
365
+ /**
366
+ * Get or set the callback invoked when the dropdown minimizes.
367
+ * @param callback The callback to set.
368
+ */
403
369
  on_minimize(callback) {
404
370
  if (callback == null) {
405
371
  return this.on_minimize_callback;
@@ -407,6 +373,11 @@ let DropdownElement = (() => {
407
373
  this.on_minimize_callback = callback;
408
374
  return this;
409
375
  }
376
+ /**
377
+ * Get or set font size.
378
+ * Should mainly be used to set the font size and image size on the content nodes created by the `content` parameter.
379
+ * @docs
380
+ */
410
381
  font_size(value) {
411
382
  if (value == null) {
412
383
  return super.font_size();
@@ -415,6 +386,11 @@ let DropdownElement = (() => {
415
386
  // all font sizes are inherited or Xem based
416
387
  return this;
417
388
  }
389
+ /**
390
+ * Get or set color.
391
+ * Should mainly be used to set the foreground color on the content nodes created by the `content` parameter.
392
+ * @docs
393
+ */
418
394
  color(value) {
419
395
  if (value == null) {
420
396
  return super.color();
@@ -428,14 +404,19 @@ let DropdownElement = (() => {
428
404
  });
429
405
  return this;
430
406
  }
431
- /* @docs:
432
- @title: Iterate content nodes.
433
- @description: Iterate content nodes created by the `content` parameter. When the callback returns any non null value the iteration will be stopped.
407
+ /**
408
+ * Iterate content nodes created by the `content` parameter. When the callback returns any non null value the iteration will be stopped.
409
+ * @param callback The callback invoked for each content element.
410
+ * @docs
434
411
  */
435
412
  iterate_content(callback) {
436
413
  this.content_items.iterate((node) => { callback(node); });
437
414
  return this;
438
415
  }
416
+ /**
417
+ * Set padding on the content nodes created by the `content` parameter.
418
+ * @docs
419
+ */
439
420
  content_padding(...args) {
440
421
  if (args == null || args.length === 0) {
441
422
  return this._content_padding;
@@ -445,6 +426,10 @@ let DropdownElement = (() => {
445
426
  // this.content_items.iterate((node) => { node.padding(...(args as [number, string])); })
446
427
  return this;
447
428
  }
429
+ /**
430
+ * Set margin on the content nodes created by the `content` parameter.
431
+ * @docs
432
+ */
448
433
  content_margin(...args) {
449
434
  if (args == null || args.length === 0) {
450
435
  return this._content_margin;
@@ -454,6 +439,10 @@ let DropdownElement = (() => {
454
439
  // this.content_items.iterate((node) => { node.margin(...(args as [number, string])); })
455
440
  return this;
456
441
  }
442
+ /**
443
+ * Set the mouse over background from the content nodes created by the `content` parameter. In the mouse out event the background will always be `transparent`.
444
+ * @docs
445
+ */
457
446
  content_background(value) {
458
447
  if (value == null) {
459
448
  return this.mouse_over_background;
@@ -461,6 +450,10 @@ let DropdownElement = (() => {
461
450
  this.mouse_over_background = value;
462
451
  return this;
463
452
  }
453
+ /**
454
+ * Set opacity on the content nodes created by the `content` parameter. In the mouse over event the opacity will always be `1`.
455
+ * @docs
456
+ */
464
457
  content_opacity(value) {
465
458
  if (value == null) {
466
459
  return this.mouse_out_opacity;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
+ */
1
5
  import { VElementTagMap } from "../elements/module.js";
2
6
  type ArrayCallback = ((item: any, index: number, is_last: boolean) => any);
3
7
  type ArrayCallback1 = ((item: any, index: number) => any);
@@ -1,6 +1,6 @@
1
- /*
2
- * Author: Daan van den Bergh
3
- * Copyright: © 2022 - 2024 Daan van den Bergh.
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
4
  */
5
5
  var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
6
6
  function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
@@ -1,7 +1,11 @@
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
+ */
1
5
  import { VElementBaseSignature, VElement, AppendType } from "../elements/module.js";
2
6
  import { CheckBoxElement } from "./checkbox.js";
3
7
  import { ExtendedInputElement, ExtendedSelectElement } from "./input.js";
4
- export type OnSubmit<This> = (element: This, data: Record<string, any>) => any;
8
+ export type OnSubmit<This> = (element: This, data: Record<string, string | boolean>) => any;
5
9
  export type OnSubmitError<This> = (element: This, error: Error) => any;
6
10
  declare const FormElement_base: VElementBaseSignature;
7
11
  export declare class FormElement extends FormElement_base {
@@ -11,7 +15,7 @@ export declare class FormElement extends FormElement_base {
11
15
  _on_submit_error?: OnSubmitError<this>;
12
16
  _on_append_callback: (child: any) => void;
13
17
  constructor(...children: AppendType[]);
14
- data(): Record<string, any>;
18
+ data(): Record<string, string | boolean>;
15
19
  submit(): Promise<this>;
16
20
  button<T = undefined | HTMLElement | VElement>(): T;
17
21
  button(element_or_id: VElement | string): this;
@@ -1,6 +1,6 @@
1
- /*
2
- * Author: Daan van den Bergh
3
- * Copyright: © 2022 - 2024 Daan van den Bergh.
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
4
  */
5
5
  var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
6
6
  function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
@@ -38,7 +38,8 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
38
38
  };
39
39
  // Imports.
40
40
  import { Elements, isVElement } from "../elements/module.js";
41
- import { VStackElement } from "./stack";
41
+ import { isButtonLike } from "./button.js";
42
+ import { VStackElement } from "./stack.js";
42
43
  // Extended input.
43
44
  let FormElement = (() => {
44
45
  let _classDecorators = [Elements.create({
@@ -82,15 +83,17 @@ let FormElement = (() => {
82
83
  if (id != null && id !== "") {
83
84
  _this.fields[id] = child;
84
85
  child.on_input(() => {
85
- if (child.missing() === true) {
86
- child.missing(false);
86
+ if (child.has_error) {
87
+ child.valid();
87
88
  }
88
89
  });
89
90
  child.on_enter(() => _this.submit());
90
91
  }
91
92
  }
92
93
  // Initialize button.
93
- else if ( /*_this._button === undefined &&*/(child.element_name === "ButtonElement" || child.element_name === "LoaderButtonElement") && child.on_click() == null) { // && child.attr("submit_button") != "false"
94
+ else if (isButtonLike(child)
95
+ && child.on_click() == null
96
+ && child.attr("submit_button") !== "false") {
94
97
  if (_this._button !== undefined) {
95
98
  _this._button.on_click(() => { });
96
99
  }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
+ */
5
+ import { VElement } from "../elements/module.js";
6
+ export declare class FrameNodes extends Array<VElement> {
7
+ constructor(...children: VElement[]);
8
+ }
9
+ type OnSet<Mode extends string> = (mode: Mode, nodes: FrameNodes) => any;
10
+ /**
11
+ * Frame modes used to switch easily between frame nodes.
12
+ *
13
+ * Initialize the class with the wanted frame modes, then call `.exec(MyMode.my_mode.push)` on the nodes.
14
+ *
15
+ * Afterwards the mode can be set using `MyMode.set("my_mode")`.
16
+ * @docs
17
+ */
18
+ export declare class FrameModes<Mode extends string = string> {
19
+ modes: Record<Mode, FrameNodes>;
20
+ active?: Mode;
21
+ _on_set?: OnSet<Mode>;
22
+ constructor(...modes: Mode[]);
23
+ get(mode: Mode): FrameNodes;
24
+ set(mode: Mode): this;
25
+ switch(mode: Mode): this;
26
+ on_set(): undefined | OnSet<Mode>;
27
+ on_set(callback: OnSet<Mode>): this;
28
+ on_switch(): undefined | OnSet<Mode>;
29
+ on_switch(callback: OnSet<Mode>): this;
30
+ }
31
+ declare global {
32
+ interface VElementExtensions {
33
+ frame_mode(frame_mode: FrameNodes): this;
34
+ frame_mode<Mode extends string>(frame_modes: FrameModes<Mode>, mode_name: Mode): this;
35
+ }
36
+ }
37
+ export {};
@@ -1,6 +1,6 @@
1
- /*
2
- * Author: Daan van den Bergh
3
- * Copyright: © 2022 - 2024 Daan van den Bergh.
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
4
  */
5
5
  // Imports.
6
6
  import { Elements } from "../elements/module.js";
@@ -10,15 +10,13 @@ export class FrameNodes extends Array {
10
10
  super(...children);
11
11
  }
12
12
  }
13
- // Frame mode used to switch easily between frames.
14
- /* @docs:
15
- @title: Frame Modes
16
- @descr:
17
- Frame modes used to switch easily between frame nodes.
18
-
19
- Initialize the class with the wanted frame modes, then call `.exec(MyMode.my_mode.push)` on the nodes.
20
-
21
- Afterwards the mode can be set using `MyMode.set("my_mode")`.
13
+ /**
14
+ * Frame modes used to switch easily between frame nodes.
15
+ *
16
+ * Initialize the class with the wanted frame modes, then call `.exec(MyMode.my_mode.push)` on the nodes.
17
+ *
18
+ * Afterwards the mode can be set using `MyMode.set("my_mode")`.
19
+ * @docs
22
20
  */
23
21
  export class FrameModes {
24
22
  // Attributes.
@@ -58,7 +56,7 @@ export class FrameModes {
58
56
  }
59
57
  }
60
58
  if (this._on_set !== undefined) {
61
- this._on_set(mode, this[mode]);
59
+ this._on_set(mode, this.modes[mode]);
62
60
  }
63
61
  return this;
64
62
  }
@@ -80,14 +78,10 @@ export class FrameModes {
80
78
  }
81
79
  Elements.extend({
82
80
  /**
83
- * @docs:
84
- * @title: Frame Mode
85
- * @desc: Adds a node to a FrameMode. Can accept a single argument to push the current instance or two arguments to specify a FrameModesType and an index.
86
- * @param:
87
- * @name: args
88
- * @descr: Arguments to determine the operation to perform for adding a node.
89
- * @return:
90
- * @description Returns the instance of the element for chaining.
81
+ * Adds a node to a FrameMode. Can accept a single argument to push the current instance or two arguments to specify a FrameModesType and an index.
82
+ * @param args Arguments to determine the operation to perform for adding a node.
83
+ * @returns Returns the instance of the element for chaining.
84
+ * @docs
91
85
  */
92
86
  frame_mode(...args) {
93
87
  if (args.length === 1) {
@@ -105,7 +99,7 @@ Elements.extend({
105
99
  }
106
100
  });
107
101
  // @test
108
- // import { Form } from "./form"
102
+ // import { Form } from "./form.js"
109
103
  // Form()
110
104
  // .frame_mode(FrameModes("test"), "test")
111
105
  // .on_submit(((e) => {}) as any)
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
+ */
1
5
  import { VElementTagMap } from "../elements/module.js";
2
6
  export declare class GoogleMapElement extends VElementTagMap.iframe {
3
7
  constructor({ location, mode, api_key, }: {
@@ -1,6 +1,6 @@
1
- /*
2
- * Author: Daan van den Bergh
3
- * Copyright: © 2022 - 2024 Daan van den Bergh.
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
4
  */
5
5
  var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
6
6
  function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
@@ -39,7 +39,7 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
39
39
  // Imports.
40
40
  import { Elements, VElementTagMap } from "../elements/module.js";
41
41
  import { Utils } from "../modules/utils.js";
42
- import { Google } from "../modules/google";
42
+ import { Google } from "../modules/google.js";
43
43
  // GoogleMap.
44
44
  let GoogleMapElement = (() => {
45
45
  let _classDecorators = [Elements.create({
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
+ */
1
5
  import { VElementTagMap } from "../elements/module.js";
2
6
  import { GradientType } from "../types/gradient.js";
3
7
  export { GradientType };
@@ -1,6 +1,6 @@
1
- /*
2
- * Author: Daan van den Bergh
3
- * Copyright: © 2022 - 2024 Daan van den Bergh.
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
4
  */
5
5
  var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
6
6
  function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
+ */
1
5
  import { VElementBaseSignature, VElementTagMap } from "../elements/module.js";
2
6
  import { VStackElement } from "./stack.js";
3
7
  export declare class ImageElement extends VElementTagMap.img {
@@ -1,6 +1,6 @@
1
- /*
2
- * Author: Daan van den Bergh
3
- * Copyright: © 2022 - 2024 Daan van den Bergh.
1
+ /**
2
+ * @author Daan van den Bergh
3
+ * @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
4
4
  */
5
5
  var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
6
6
  function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
@@ -130,11 +130,11 @@ let ImageElement = (() => {
130
130
  return this._e.src;
131
131
  }
132
132
  this._e.src = value;
133
- console.log("Set aspect ratio?", set_aspect_ratio, "from src", value);
133
+ // console.log("Set aspect ratio?", set_aspect_ratio, "from src", value)
134
134
  if (set_aspect_ratio) {
135
135
  const aspect_ratio = Statics.aspect_ratio(value);
136
136
  if (aspect_ratio != null) {
137
- console.log("Set aspect ratio", aspect_ratio, "from src", value);
137
+ // console.log("Set aspect ratio",aspect_ratio, "from src",value)
138
138
  this.aspect_ratio(aspect_ratio);
139
139
  }
140
140
  else {