@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.
- package/backend/dist/cjs/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/cjs/{blacklist.js → backend/src/blacklist.js} +8 -5
- package/backend/dist/cjs/{cli.js → backend/src/cli.js} +29 -47
- package/backend/dist/cjs/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/cjs/backend/src/database/collection.js +3042 -0
- package/backend/dist/cjs/backend/src/database/database.d.ts +66 -0
- package/backend/dist/cjs/{database → backend/src/database}/database.js +48 -43
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/cjs/backend/src/database/filters/filters.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +443 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +355 -0
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/cjs/{logger.js → backend/src/database/flatten.js} +18 -7
- package/backend/dist/cjs/backend/src/database/flatten_test.js +175 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.js +1014 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +1087 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +573 -0
- package/backend/dist/{esm → cjs/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/cjs/{endpoint.js → backend/src/endpoint.js} +87 -101
- package/backend/dist/cjs/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/cjs/backend/src/errors/index.js +25 -0
- package/backend/dist/{esm/utils.d.ts → cjs/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/cjs/backend/src/errors/internal_external.js +85 -0
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/cjs/{mutex.js → backend/src/errors/invalid_usage_error.js} +20 -37
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/cjs/backend/src/errors/system_error.js +393 -0
- package/backend/dist/cjs/backend/src/events.d.ts +54 -0
- package/backend/dist/cjs/backend/src/events.js +15 -0
- package/backend/dist/cjs/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/cjs/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/cjs/{image_endpoint.js → backend/src/image_endpoint.js} +3 -5
- package/backend/dist/cjs/backend/src/logger.d.ts +5 -0
- package/backend/dist/cjs/backend/src/logger.js +15 -0
- package/backend/dist/cjs/backend/src/meta.d.ts +64 -0
- package/backend/dist/cjs/{meta.js → backend/src/meta.js} +9 -12
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/cjs/{payments → backend/src/payments}/paddle.js +377 -327
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/cjs/backend/src/plugins/browser.js +15 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +379 -0
- package/backend/dist/{esm → cjs/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/cjs/backend/src/rate_limit.js +549 -0
- package/backend/dist/cjs/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/cjs/{route.js → backend/src/route.js} +23 -21
- package/backend/dist/cjs/backend/src/server.d.ts +485 -0
- package/backend/dist/cjs/{server.js → backend/src/server.js} +688 -873
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/cjs/{splash_screen.js → backend/src/splash_screen.js} +24 -3
- package/backend/dist/cjs/backend/src/status.d.ts +74 -0
- package/backend/dist/cjs/{status.js → backend/src/status.js} +64 -64
- package/backend/dist/cjs/backend/src/stream.d.ts +376 -0
- package/backend/dist/cjs/{stream.js → backend/src/stream.js} +299 -276
- package/backend/dist/cjs/backend/src/users.d.ts +807 -0
- package/backend/dist/cjs/backend/src/users.js +1971 -0
- package/backend/dist/cjs/backend/src/utils.d.ts +16 -0
- package/backend/dist/cjs/{utils.js → backend/src/utils.js} +14 -77
- package/backend/dist/{esm → cjs/backend/src}/view.d.ts +33 -11
- package/backend/dist/cjs/backend/src/view.js +508 -0
- package/backend/dist/{esm → cjs/backend/src}/volt.d.ts +10 -1
- package/backend/dist/cjs/{volt.js → backend/src/volt.js} +8 -5
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/cjs/frontend/src/modules/request.js +99 -0
- package/backend/dist/esm/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/esm/{blacklist.js → backend/src/blacklist.js} +9 -6
- package/backend/dist/esm/{cli.js → backend/src/cli.js} +43 -60
- package/backend/dist/esm/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/esm/backend/src/database/collection.js +3510 -0
- package/backend/dist/esm/backend/src/database/database.d.ts +66 -0
- package/backend/dist/esm/{database → backend/src/database}/database.js +62 -103
- package/backend/dist/esm/backend/src/database/document.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/document.js +558 -0
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/esm/backend/src/database/filters/filters.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +3 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +505 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +712 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +44 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +405 -0
- package/backend/dist/esm/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/flatten.js +22 -0
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/flatten_test.js +174 -0
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/esm/backend/src/database/quota/quota.js +1118 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +1242 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +602 -0
- package/backend/dist/{cjs → esm/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/esm/{endpoint.js → backend/src/endpoint.js} +136 -127
- package/backend/dist/esm/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/esm/backend/src/errors/index.js +7 -0
- package/backend/dist/{cjs/utils.d.ts → esm/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/esm/backend/src/errors/internal_external.js +70 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +30 -0
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/esm/backend/src/errors/system_error.js +402 -0
- package/backend/dist/esm/backend/src/events.d.ts +54 -0
- package/backend/dist/esm/backend/src/events.js +5 -0
- package/backend/dist/esm/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/esm/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/esm/{image_endpoint.js → backend/src/image_endpoint.js} +16 -20
- package/backend/dist/esm/backend/src/logger.d.ts +5 -0
- package/backend/dist/esm/backend/src/logger.js +8 -0
- package/backend/dist/esm/backend/src/meta.d.ts +64 -0
- package/backend/dist/esm/{meta.js → backend/src/meta.js} +15 -54
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/esm/{payments → backend/src/payments}/paddle.js +417 -452
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/esm/backend/src/plugins/browser.js +170 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +389 -0
- package/backend/dist/{cjs → esm/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/mail/ui.js +3 -6
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/pdf.js +3 -3
- package/backend/dist/esm/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/esm/backend/src/rate_limit.js +667 -0
- package/backend/dist/esm/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/esm/{route.js → backend/src/route.js} +26 -21
- package/backend/dist/esm/backend/src/server.d.ts +485 -0
- package/backend/dist/esm/{server.js → backend/src/server.js} +891 -1441
- package/backend/dist/esm/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/esm/{splash_screen.js → backend/src/splash_screen.js} +42 -55
- package/backend/dist/esm/backend/src/status.d.ts +74 -0
- package/backend/dist/esm/backend/src/status.js +199 -0
- package/backend/dist/esm/backend/src/stream.d.ts +376 -0
- package/backend/dist/esm/{stream.js → backend/src/stream.js} +327 -292
- package/backend/dist/esm/backend/src/users.d.ts +809 -0
- package/backend/dist/esm/backend/src/users.js +2140 -0
- package/backend/dist/esm/backend/src/utils.d.ts +16 -0
- package/backend/dist/esm/{utils.js → backend/src/utils.js} +20 -81
- package/backend/dist/{cjs → esm/backend/src}/view.d.ts +33 -11
- package/backend/dist/esm/{view.js → backend/src/view.js} +266 -86
- package/backend/dist/{cjs → esm/backend/src}/volt.d.ts +10 -1
- package/backend/dist/esm/{volt.js → backend/src/volt.js} +7 -4
- package/backend/dist/esm/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/esm/frontend/src/modules/request.js +117 -0
- package/frontend/dist/backend/src/database/collection.d.ts +1543 -0
- package/frontend/dist/backend/src/database/collection.js +3510 -0
- package/frontend/dist/backend/src/database/database.d.ts +66 -0
- package/frontend/dist/backend/src/database/database.js +196 -0
- package/frontend/dist/backend/src/database/filters/filters.d.ts +6 -0
- package/frontend/dist/backend/src/database/filters/filters.js +1 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.js +3 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +5 -0
- package/frontend/dist/backend/src/database/flatten.d.ts +75 -0
- package/frontend/dist/backend/src/database/flatten.js +22 -0
- package/frontend/dist/backend/src/endpoint.d.ts +204 -0
- package/frontend/dist/backend/src/endpoint.js +570 -0
- package/frontend/dist/backend/src/errors/index.d.ts +7 -0
- package/frontend/dist/backend/src/errors/index.js +7 -0
- package/frontend/dist/backend/src/errors/internal_external.d.ts +38 -0
- package/frontend/dist/backend/src/errors/internal_external.js +70 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +30 -0
- package/frontend/dist/backend/src/errors/system_error.d.ts +230 -0
- package/frontend/dist/backend/src/errors/system_error.js +402 -0
- package/frontend/dist/backend/src/events.d.ts +54 -0
- package/frontend/dist/backend/src/events.js +5 -0
- package/frontend/dist/backend/src/frontend.d.ts +11 -0
- package/frontend/dist/backend/src/frontend.js +12 -0
- package/frontend/dist/backend/src/image_endpoint.d.ts +39 -0
- package/frontend/dist/backend/src/image_endpoint.js +202 -0
- package/frontend/dist/backend/src/meta.d.ts +64 -0
- package/frontend/dist/backend/src/meta.js +110 -0
- package/frontend/dist/backend/src/payments/paddle.d.ts +326 -0
- package/frontend/dist/backend/src/payments/paddle.js +2256 -0
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +248 -0
- package/frontend/dist/backend/src/plugins/mail/mail.js +389 -0
- package/{backend/dist/esm/plugins/mail.d.ts → frontend/dist/backend/src/plugins/mail/ui.d.ts} +23 -0
- package/{backend/dist/esm/plugins/mail.js → frontend/dist/backend/src/plugins/mail/ui.js} +3 -6
- package/frontend/dist/backend/src/rate_limit.d.ts +145 -0
- package/frontend/dist/backend/src/rate_limit.js +673 -0
- package/frontend/dist/backend/src/route.d.ts +35 -0
- package/frontend/dist/backend/src/route.js +212 -0
- package/frontend/dist/backend/src/server.d.ts +485 -0
- package/frontend/dist/backend/src/server.js +2670 -0
- package/frontend/dist/backend/src/splash_screen.d.ts +80 -0
- package/frontend/dist/backend/src/splash_screen.js +135 -0
- package/frontend/dist/backend/src/status.d.ts +74 -0
- package/frontend/dist/backend/src/status.js +199 -0
- package/frontend/dist/backend/src/stream.d.ts +376 -0
- package/frontend/dist/backend/src/stream.js +1007 -0
- package/frontend/dist/backend/src/users.d.ts +807 -0
- package/frontend/dist/backend/src/users.js +2118 -0
- package/frontend/dist/backend/src/utils.d.ts +16 -0
- package/frontend/dist/backend/src/utils.js +241 -0
- package/frontend/dist/backend/src/view.d.ts +162 -0
- package/frontend/dist/backend/src/view.js +720 -0
- package/frontend/dist/frontend/src/elements/base.d.ts +4414 -0
- package/frontend/dist/{elements → frontend/src/elements}/base.js +3624 -260
- package/frontend/dist/frontend/src/elements/module.d.ts +95 -0
- package/frontend/dist/{elements → frontend/src/elements}/module.js +53 -52
- package/frontend/dist/frontend/src/elements/types.d.ts +52 -0
- package/frontend/dist/frontend/src/elements/types.js +5 -0
- package/frontend/dist/frontend/src/modules/attachment.d.ts +126 -0
- package/frontend/dist/frontend/src/modules/attachment.js +306 -0
- package/frontend/dist/frontend/src/modules/auth.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/auth.js +80 -0
- package/frontend/dist/{modules → frontend/src/modules}/color.js +2 -2
- package/frontend/dist/frontend/src/modules/compression.d.ts +39 -0
- package/frontend/dist/frontend/src/modules/compression.js +102 -0
- package/frontend/dist/frontend/src/modules/cookies.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/cookies.js +143 -0
- package/frontend/dist/frontend/src/modules/events.d.ts +31 -0
- package/frontend/dist/frontend/src/modules/events.js +74 -0
- package/frontend/dist/frontend/src/modules/google.d.ts +23 -0
- package/frontend/dist/frontend/src/modules/google.js +52 -0
- package/frontend/dist/frontend/src/modules/meta.d.ts +14 -0
- package/frontend/dist/{modules → frontend/src/modules}/meta.js +9 -7
- package/frontend/dist/{modules → frontend/src/modules}/paddle.d.ts +37 -134
- package/frontend/dist/{modules → frontend/src/modules}/paddle.js +620 -568
- package/frontend/dist/frontend/src/modules/request.d.ts +70 -0
- package/frontend/dist/frontend/src/modules/request.js +117 -0
- package/frontend/dist/frontend/src/modules/settings.d.ts +3 -0
- package/frontend/dist/frontend/src/modules/settings.js +5 -0
- package/frontend/dist/frontend/src/modules/statics.d.ts +21 -0
- package/frontend/dist/{modules → frontend/src/modules}/statics.js +15 -18
- package/frontend/dist/frontend/src/modules/support.d.ts +30 -0
- package/frontend/dist/frontend/src/modules/support.js +53 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.d.ts +67 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.js +68 -38
- package/frontend/dist/frontend/src/modules/themes.d.ts +12 -0
- package/frontend/dist/frontend/src/modules/themes.js +22 -0
- package/frontend/dist/frontend/src/modules/user.d.ts +164 -0
- package/frontend/dist/frontend/src/modules/user.js +268 -0
- package/frontend/dist/frontend/src/modules/utils.d.ts +176 -0
- package/frontend/dist/frontend/src/modules/utils.js +569 -0
- package/frontend/dist/frontend/src/types/gradient.d.ts +29 -0
- package/frontend/dist/{types → frontend/src/types}/gradient.js +14 -18
- package/frontend/dist/frontend/src/ui/border_button.d.ts +94 -0
- package/frontend/dist/{ui → frontend/src/ui}/border_button.js +7 -13
- package/frontend/dist/frontend/src/ui/button.d.ts +28 -0
- package/frontend/dist/{ui → frontend/src/ui}/button.js +21 -12
- package/frontend/dist/frontend/src/ui/canvas.d.ts +138 -0
- package/frontend/dist/{ui → frontend/src/ui}/canvas.js +88 -55
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +74 -0
- package/frontend/dist/{ui → frontend/src/ui}/checkbox.js +80 -41
- package/frontend/dist/{ui → frontend/src/ui}/code.d.ts +73 -6
- package/frontend/dist/{ui → frontend/src/ui}/code.js +55 -52
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.js +12 -17
- package/frontend/dist/{ui → frontend/src/ui}/css.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/css.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/divider.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/divider.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.d.ts +57 -2
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.js +87 -94
- package/frontend/dist/{ui → frontend/src/ui}/for_each.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/for_each.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/form.d.ts +6 -2
- package/frontend/dist/{ui → frontend/src/ui}/form.js +10 -7
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +37 -0
- package/frontend/dist/{ui → frontend/src/ui}/frame_modes.js +16 -22
- package/frontend/dist/{ui → frontend/src/ui}/google_map.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/google_map.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/gradient.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/gradient.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/image.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/image.js +5 -5
- package/frontend/dist/frontend/src/ui/input.d.ts +392 -0
- package/frontend/dist/{ui → frontend/src/ui}/input.js +346 -360
- package/frontend/dist/{ui → frontend/src/ui}/link.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/link.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/list.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/list.js +12 -6
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +80 -0
- package/frontend/dist/{ui → frontend/src/ui}/loader_button.js +35 -47
- package/frontend/dist/frontend/src/ui/loaders.d.ts +57 -0
- package/frontend/dist/{ui → frontend/src/ui}/loaders.js +11 -11
- package/frontend/dist/{ui → frontend/src/ui}/popup.d.ts +11 -6
- package/frontend/dist/{ui → frontend/src/ui}/popup.js +32 -18
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +44 -0
- package/frontend/dist/{ui → frontend/src/ui}/pseudo.js +84 -8
- package/frontend/dist/{ui → frontend/src/ui}/scroller.d.ts +14 -2
- package/frontend/dist/{ui → frontend/src/ui}/scroller.js +37 -43
- package/frontend/dist/{ui → frontend/src/ui}/slider.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/slider.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/spacer.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/spacer.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/span.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/span.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/stack.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/stack.js +3 -9
- package/frontend/dist/frontend/src/ui/steps.d.ts +131 -0
- package/frontend/dist/{ui → frontend/src/ui}/steps.js +30 -45
- package/frontend/dist/{ui → frontend/src/ui}/style.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/style.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/switch.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/switch.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/table.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/table.js +6 -6
- package/frontend/dist/{ui → frontend/src/ui}/tabs.d.ts +45 -3
- package/frontend/dist/{ui → frontend/src/ui}/tabs.js +65 -40
- package/frontend/dist/{ui → frontend/src/ui}/text.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/text.js +3 -3
- package/frontend/dist/frontend/src/ui/title.d.ts +91 -0
- package/frontend/dist/frontend/src/ui/title.js +272 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.js +3 -3
- package/frontend/dist/{volt.d.ts → frontend/src/volt.d.ts} +3 -0
- package/frontend/dist/{volt.js → frontend/src/volt.js} +4 -0
- package/frontend/tools/bundle_d_ts.js +71 -0
- package/frontend/tools/convert_to_jsdoc_input.txt +9452 -0
- package/frontend/tools/convert_to_jsdoc_output.txt +7626 -0
- package/frontend/tools/convert_to_jsdoc_tmp.js +345 -0
- package/package.json +11 -12
- package/backend/dist/cjs/database/collection.d.ts +0 -160
- package/backend/dist/cjs/database/collection.js +0 -842
- package/backend/dist/cjs/database/database.d.ts +0 -121
- package/backend/dist/cjs/database/document.d.ts +0 -131
- package/backend/dist/cjs/database/document.js +0 -224
- package/backend/dist/cjs/database.d.ts +0 -502
- package/backend/dist/cjs/database.js +0 -2248
- package/backend/dist/cjs/logger.d.ts +0 -3
- package/backend/dist/cjs/meta.d.ts +0 -50
- package/backend/dist/cjs/mutex.d.ts +0 -24
- package/backend/dist/cjs/payments/paddle.d.ts +0 -160
- package/backend/dist/cjs/plugins/browser.d.ts +0 -36
- package/backend/dist/cjs/plugins/browser.js +0 -198
- package/backend/dist/cjs/plugins/css.d.ts +0 -11
- package/backend/dist/cjs/plugins/css.js +0 -80
- package/backend/dist/cjs/plugins/mail.d.ts +0 -277
- package/backend/dist/cjs/plugins/mail.js +0 -1370
- package/backend/dist/cjs/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/cjs/plugins/ts/compiler.js +0 -750
- package/backend/dist/cjs/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/cjs/plugins/ts/preprocessing.js +0 -440
- package/backend/dist/cjs/rate_limit.d.ts +0 -63
- package/backend/dist/cjs/rate_limit.js +0 -348
- package/backend/dist/cjs/request.deprc.d.ts +0 -48
- package/backend/dist/cjs/request.deprc.js +0 -572
- package/backend/dist/cjs/response.deprc.d.ts +0 -55
- package/backend/dist/cjs/response.deprc.js +0 -275
- package/backend/dist/cjs/server.d.ts +0 -342
- package/backend/dist/cjs/splash_screen.d.ts +0 -35
- package/backend/dist/cjs/status.d.ts +0 -61
- package/backend/dist/cjs/stream.d.ts +0 -79
- package/backend/dist/cjs/users.d.ts +0 -111
- package/backend/dist/cjs/users.js +0 -1817
- package/backend/dist/cjs/view.js +0 -352
- package/backend/dist/cjs/vinc.dev.d.ts +0 -3
- package/backend/dist/cjs/vinc.dev.js +0 -7
- package/backend/dist/css/adyen.css +0 -92
- package/backend/dist/css/volt.css +0 -70
- package/backend/dist/esm/database/collection.d.ts +0 -160
- package/backend/dist/esm/database/collection.js +0 -1328
- package/backend/dist/esm/database/database.d.ts +0 -121
- package/backend/dist/esm/database/document.d.ts +0 -131
- package/backend/dist/esm/database/document.js +0 -247
- package/backend/dist/esm/database.d.ts +0 -502
- package/backend/dist/esm/database.js +0 -2423
- package/backend/dist/esm/file_watcher.js +0 -329
- package/backend/dist/esm/logger.d.ts +0 -3
- package/backend/dist/esm/logger.js +0 -11
- package/backend/dist/esm/meta.d.ts +0 -50
- package/backend/dist/esm/mutex.d.ts +0 -24
- package/backend/dist/esm/mutex.js +0 -48
- package/backend/dist/esm/payments/paddle.d.ts +0 -160
- package/backend/dist/esm/plugins/browser.d.ts +0 -36
- package/backend/dist/esm/plugins/browser.js +0 -176
- package/backend/dist/esm/plugins/css.d.ts +0 -11
- package/backend/dist/esm/plugins/css.js +0 -90
- package/backend/dist/esm/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/esm/plugins/ts/compiler.js +0 -1194
- package/backend/dist/esm/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/esm/plugins/ts/preprocessing.js +0 -726
- package/backend/dist/esm/rate_limit.d.ts +0 -63
- package/backend/dist/esm/rate_limit.js +0 -417
- package/backend/dist/esm/request.deprc.d.ts +0 -48
- package/backend/dist/esm/request.deprc.js +0 -572
- package/backend/dist/esm/response.deprc.d.ts +0 -55
- package/backend/dist/esm/response.deprc.js +0 -275
- package/backend/dist/esm/server.d.ts +0 -342
- package/backend/dist/esm/splash_screen.d.ts +0 -35
- package/backend/dist/esm/status.d.ts +0 -61
- package/backend/dist/esm/status.js +0 -197
- package/backend/dist/esm/stream.d.ts +0 -79
- package/backend/dist/esm/users.d.ts +0 -111
- package/backend/dist/esm/users.js +0 -1935
- package/backend/dist/esm/vinc.dev.d.ts +0 -3
- package/backend/dist/esm/vinc.dev.js +0 -7
- package/frontend/dist/elements/base.d.ts +0 -9889
- package/frontend/dist/elements/module.d.ts +0 -30
- package/frontend/dist/modules/array.d.ts +0 -94
- package/frontend/dist/modules/array.js +0 -634
- package/frontend/dist/modules/auth.d.ts +0 -46
- package/frontend/dist/modules/auth.js +0 -139
- package/frontend/dist/modules/colors.d.ts +0 -1
- package/frontend/dist/modules/colors.js +0 -417
- package/frontend/dist/modules/compression.d.ts +0 -6
- package/frontend/dist/modules/compression.js +0 -999
- package/frontend/dist/modules/cookies.d.ts +0 -18
- package/frontend/dist/modules/cookies.js +0 -167
- package/frontend/dist/modules/date.d.ts +0 -142
- package/frontend/dist/modules/date.js +0 -493
- package/frontend/dist/modules/events.d.ts +0 -8
- package/frontend/dist/modules/events.js +0 -91
- package/frontend/dist/modules/google.d.ts +0 -11
- package/frontend/dist/modules/google.js +0 -54
- package/frontend/dist/modules/meta.d.ts +0 -10
- package/frontend/dist/modules/mutex.d.ts +0 -7
- package/frontend/dist/modules/mutex.js +0 -51
- package/frontend/dist/modules/number.d.ts +0 -16
- package/frontend/dist/modules/number.js +0 -23
- package/frontend/dist/modules/object.d.ts +0 -52
- package/frontend/dist/modules/object.js +0 -383
- package/frontend/dist/modules/scheme.d.ts +0 -227
- package/frontend/dist/modules/scheme.js +0 -531
- package/frontend/dist/modules/settings.d.ts +0 -3
- package/frontend/dist/modules/settings.js +0 -4
- package/frontend/dist/modules/statics.d.ts +0 -5
- package/frontend/dist/modules/string.d.ts +0 -124
- package/frontend/dist/modules/string.js +0 -745
- package/frontend/dist/modules/support.d.ts +0 -19
- package/frontend/dist/modules/support.js +0 -103
- package/frontend/dist/modules/themes.d.ts +0 -8
- package/frontend/dist/modules/themes.js +0 -18
- package/frontend/dist/modules/user.d.ts +0 -59
- package/frontend/dist/modules/user.js +0 -280
- package/frontend/dist/modules/utils.d.ts +0 -87
- package/frontend/dist/modules/utils.js +0 -923
- package/frontend/dist/types/gradient.d.ts +0 -12
- package/frontend/dist/ui/border_button.d.ts +0 -152
- package/frontend/dist/ui/button.d.ts +0 -21
- package/frontend/dist/ui/canvas.d.ts +0 -56
- package/frontend/dist/ui/checkbox.d.ts +0 -52
- package/frontend/dist/ui/frame_modes.d.ts +0 -25
- package/frontend/dist/ui/input.d.ts +0 -241
- package/frontend/dist/ui/loader_button.d.ts +0 -93
- package/frontend/dist/ui/loaders.d.ts +0 -57
- package/frontend/dist/ui/pseudo.d.ts +0 -16
- package/frontend/dist/ui/steps.d.ts +0 -59
- package/frontend/dist/ui/title.d.ts +0 -21
- package/frontend/dist/ui/title.js +0 -121
- package/frontend/examples/dashboard/dashboard.ts +0 -776
- /package/backend/dist/cjs/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.d.ts → backend/src/database/document.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.js → backend/src/database/document.js} +0 -0
- /package/backend/dist/cjs/{plugins/pdf.d.ts → backend/src/database/filters/strict_filter_test.d.ts} +0 -0
- /package/backend/dist/{esm/file_watcher.d.ts → cjs/backend/src/database/filters/strict_filter_test_v0.d.ts} +0 -0
- /package/backend/dist/{esm/plugins/pdf.d.ts → cjs/backend/src/database/flatten_test.d.ts} +0 -0
- /package/backend/dist/cjs/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/mail/ui.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/pdf.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/cjs/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/cjs/{vinc.js → backend/src/vinc.js} +0 -0
- /package/backend/dist/esm/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/esm/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/esm/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/esm/{vinc.js → backend/src/vinc.js} +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.d.ts +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.js +0 -0
- /package/frontend/dist/{modules → frontend/src/modules}/color.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.js +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
export * from "./base.js";
|
|
6
|
+
export * from "./types.js";
|
|
7
|
+
import { VElement, extend as extend_velement, wrapper as _wrapper, create_null as _create_null } from "./base.js";
|
|
8
|
+
import { register_element as _register_element } from "./register_element.js";
|
|
9
|
+
export declare namespace Elements {
|
|
10
|
+
/**
|
|
11
|
+
* Re-exports the `register_element` helper for registering custom elements.
|
|
12
|
+
*/
|
|
13
|
+
export const register_element: typeof _register_element;
|
|
14
|
+
/**
|
|
15
|
+
* Get an element by its ID.
|
|
16
|
+
* @nav Frontend
|
|
17
|
+
* @chapter Elements
|
|
18
|
+
* @param id The ID of the element.
|
|
19
|
+
* @docs
|
|
20
|
+
*/
|
|
21
|
+
export function get(id: string): VElement;
|
|
22
|
+
/**
|
|
23
|
+
* Alias for `get` to retrieve an element by its ID.
|
|
24
|
+
* @nav Frontend
|
|
25
|
+
* @chapter Elements
|
|
26
|
+
* @param id The ID of the element.
|
|
27
|
+
* @docs
|
|
28
|
+
*/
|
|
29
|
+
export function get_by_id(id: string): VElement;
|
|
30
|
+
/**
|
|
31
|
+
* Programmatically clicks an element by its ID.
|
|
32
|
+
* @nav Frontend
|
|
33
|
+
* @chapter Elements
|
|
34
|
+
* @param id The ID of the element.
|
|
35
|
+
* @docs
|
|
36
|
+
*/
|
|
37
|
+
export function click(id: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* Generic constructor signature used for class decorators and factories.
|
|
40
|
+
*/
|
|
41
|
+
type Constructor<T = any> = new (...args: any[]) => T;
|
|
42
|
+
/**
|
|
43
|
+
* Options for the `Elements.create` class decorator.
|
|
44
|
+
* @property name The name to use for this element (becomes the “v-…” tag)
|
|
45
|
+
* @property tag Optional host tag to extend (defaults to constructor.tag if set)
|
|
46
|
+
* @property default_style Default inline styles for the element.
|
|
47
|
+
* @property default_attributes Default attributes for the element.
|
|
48
|
+
* @property default_events Default event handlers for the element.
|
|
49
|
+
*/
|
|
50
|
+
interface CreateOpts {
|
|
51
|
+
name: string;
|
|
52
|
+
tag?: string;
|
|
53
|
+
default_style?: Record<string, any>;
|
|
54
|
+
default_attributes?: Record<string, any>;
|
|
55
|
+
default_events?: Record<string, any>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Class decorator factory.
|
|
59
|
+
* @example
|
|
60
|
+
* @create({ name: "Foo", tag?: "section", base: HTMLElement })
|
|
61
|
+
* class Foo extends HTMLElement { … }
|
|
62
|
+
*/
|
|
63
|
+
export function create(opts: CreateOpts): <T extends Constructor>(constructor: T) => T;
|
|
64
|
+
/**
|
|
65
|
+
* Re-exported constructor wrapper from the base module.
|
|
66
|
+
*/
|
|
67
|
+
export const wrapper: typeof _wrapper;
|
|
68
|
+
/**
|
|
69
|
+
* Shared null element mainly for TypeScript typing convenience.
|
|
70
|
+
*/
|
|
71
|
+
export const create_null: typeof _create_null;
|
|
72
|
+
/**
|
|
73
|
+
* Submits multiple elements by ID or reference.
|
|
74
|
+
* @nav Frontend
|
|
75
|
+
* @chapter Elements
|
|
76
|
+
* @deprecated
|
|
77
|
+
* @param elements A list of element IDs or element references to submit.
|
|
78
|
+
* @docs
|
|
79
|
+
*/
|
|
80
|
+
export function submit(...elements: (string | VElement | HTMLElement)[]): Record<string, any>;
|
|
81
|
+
/**
|
|
82
|
+
* Forwards a function to a child element.
|
|
83
|
+
* @nav Frontend
|
|
84
|
+
* @chapter Elements
|
|
85
|
+
* @param func_name The name of the function to forward.
|
|
86
|
+
* @param child The child element or a function that returns the child element.
|
|
87
|
+
* @docs
|
|
88
|
+
*/
|
|
89
|
+
export function forward_func_to_child(func_name: string, child: any): (val?: any) => any;
|
|
90
|
+
/**
|
|
91
|
+
* Typed re-export of `extend` to augment a `VElement` with additional helpers.
|
|
92
|
+
*/
|
|
93
|
+
export const extend: typeof extend_velement;
|
|
94
|
+
export {};
|
|
95
|
+
}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
4
|
*/
|
|
5
5
|
// Import elements create func.
|
|
6
6
|
export * from "./base.js";
|
|
7
|
+
export * from "./types.js";
|
|
7
8
|
import { extend as extend_velement, wrapper as _wrapper, create_null as _create_null, } from "./base.js";
|
|
8
9
|
import { register_element as _register_element } from "./register_element.js";
|
|
9
10
|
// Elements module.
|
|
10
11
|
export var Elements;
|
|
11
12
|
(function (Elements) {
|
|
13
|
+
/**
|
|
14
|
+
* Re-exports the `register_element` helper for registering custom elements.
|
|
15
|
+
*/
|
|
12
16
|
Elements.register_element = _register_element;
|
|
13
17
|
// Get by id.
|
|
14
18
|
// @note: always use VElement as return type since this is most likely the case and avoids type casting for users.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@description The ID of the element.
|
|
23
|
-
*/
|
|
19
|
+
/**
|
|
20
|
+
* Get an element by its ID.
|
|
21
|
+
* @nav Frontend
|
|
22
|
+
* @chapter Elements
|
|
23
|
+
* @param id The ID of the element.
|
|
24
|
+
* @docs
|
|
25
|
+
*/
|
|
24
26
|
function get(id) {
|
|
25
27
|
const e = document.getElementById(id);
|
|
26
28
|
if (e == null) {
|
|
@@ -31,29 +33,25 @@ export var Elements;
|
|
|
31
33
|
Elements.get = get;
|
|
32
34
|
// Get by id (alias).
|
|
33
35
|
// @note: always use VElement as return type since this is most likely the case and avoids type casting for users.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
@description The ID of the element.
|
|
42
|
-
*/
|
|
36
|
+
/**
|
|
37
|
+
* Alias for `get` to retrieve an element by its ID.
|
|
38
|
+
* @nav Frontend
|
|
39
|
+
* @chapter Elements
|
|
40
|
+
* @param id The ID of the element.
|
|
41
|
+
* @docs
|
|
42
|
+
*/
|
|
43
43
|
function get_by_id(id) {
|
|
44
44
|
return Elements.get(id);
|
|
45
45
|
}
|
|
46
46
|
Elements.get_by_id = get_by_id;
|
|
47
47
|
// Click an element by id.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@description The ID of the element.
|
|
56
|
-
*/
|
|
48
|
+
/**
|
|
49
|
+
* Programmatically clicks an element by its ID.
|
|
50
|
+
* @nav Frontend
|
|
51
|
+
* @chapter Elements
|
|
52
|
+
* @param id The ID of the element.
|
|
53
|
+
* @docs
|
|
54
|
+
*/
|
|
57
55
|
function click(id) {
|
|
58
56
|
const element = document.getElementById(id);
|
|
59
57
|
if (element) {
|
|
@@ -131,8 +129,14 @@ export var Elements;
|
|
|
131
129
|
// customElements.define(new_xml_name, any_con, { extends: ext });
|
|
132
130
|
// }
|
|
133
131
|
// }
|
|
132
|
+
/**
|
|
133
|
+
* Re-exported constructor wrapper from the base module.
|
|
134
|
+
*/
|
|
134
135
|
// Create a constructor wrapper.
|
|
135
136
|
Elements.wrapper = _wrapper;
|
|
137
|
+
/**
|
|
138
|
+
* Shared null element mainly for TypeScript typing convenience.
|
|
139
|
+
*/
|
|
136
140
|
// Create a shared null element mainly for typescript types.
|
|
137
141
|
Elements.create_null = _create_null;
|
|
138
142
|
// Submit multiple elements by id or element.
|
|
@@ -140,16 +144,14 @@ export var Elements;
|
|
|
140
144
|
// When an input is not required, no errors will be thrown.
|
|
141
145
|
// An object will be returned with each input's id as the key and the input's value as value.
|
|
142
146
|
// Only supported extended input elements like `ExtendedInput`.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
@description A list of element IDs or element references to submit.
|
|
152
|
-
*/
|
|
147
|
+
/**
|
|
148
|
+
* Submits multiple elements by ID or reference.
|
|
149
|
+
* @nav Frontend
|
|
150
|
+
* @chapter Elements
|
|
151
|
+
* @deprecated
|
|
152
|
+
* @param elements A list of element IDs or element references to submit.
|
|
153
|
+
* @docs
|
|
154
|
+
*/
|
|
153
155
|
function submit(...elements) {
|
|
154
156
|
const params = {};
|
|
155
157
|
let error;
|
|
@@ -182,18 +184,14 @@ export var Elements;
|
|
|
182
184
|
Elements.submit = submit;
|
|
183
185
|
// Forward a function to a child so a user can easily create functions on the parent like border_radius() which actually set the border radius of a child.
|
|
184
186
|
// The new function still returns `this`.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
@param:
|
|
194
|
-
@name: child
|
|
195
|
-
@description The child element or a function that returns the child element.
|
|
196
|
-
*/
|
|
187
|
+
/**
|
|
188
|
+
* Forwards a function to a child element.
|
|
189
|
+
* @nav Frontend
|
|
190
|
+
* @chapter Elements
|
|
191
|
+
* @param func_name The name of the function to forward.
|
|
192
|
+
* @param child The child element or a function that returns the child element.
|
|
193
|
+
* @docs
|
|
194
|
+
*/
|
|
197
195
|
function forward_func_to_child(func_name, child) {
|
|
198
196
|
return function (val) {
|
|
199
197
|
if (typeof child === "function") {
|
|
@@ -208,6 +206,9 @@ export var Elements;
|
|
|
208
206
|
}
|
|
209
207
|
Elements.forward_func_to_child = forward_func_to_child;
|
|
210
208
|
// Update the extend_velement function to use proper types
|
|
209
|
+
/**
|
|
210
|
+
* Typed re-export of `extend` to augment a `VElement` with additional helpers.
|
|
211
|
+
*/
|
|
211
212
|
Elements.extend = extend_velement;
|
|
212
213
|
// Create.
|
|
213
214
|
// export const create = create_velement;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
/** Null / undefined alias. */
|
|
6
|
+
export type None = undefined | null;
|
|
7
|
+
/**
|
|
8
|
+
* Return type helper for common VElement methods.
|
|
9
|
+
* Resolving the return type to `This` if `V` is `undefined,
|
|
10
|
+
* or to `R` if no value is passed and `V` is undefined.
|
|
11
|
+
*/
|
|
12
|
+
export type ValueOrThis<V, R, This> = V extends undefined ? R : This;
|
|
13
|
+
/** Options for configuring a border through {@link VElement.border}. */
|
|
14
|
+
export interface BorderOpts {
|
|
15
|
+
/** Default color. */
|
|
16
|
+
color?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Border width.
|
|
19
|
+
* @default 1px
|
|
20
|
+
*/
|
|
21
|
+
width?: string | number;
|
|
22
|
+
/**
|
|
23
|
+
* Border style.
|
|
24
|
+
* @default "solid"
|
|
25
|
+
*/
|
|
26
|
+
style?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Border radius.
|
|
29
|
+
* @default 0
|
|
30
|
+
*/
|
|
31
|
+
radius?: string | number;
|
|
32
|
+
/**
|
|
33
|
+
* Top border enabled or a specific color for this border.
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
top?: boolean | string;
|
|
37
|
+
/**
|
|
38
|
+
* Bottom border enabled or a specific color for this border.
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
bottom?: boolean | string;
|
|
42
|
+
/**
|
|
43
|
+
* Left border enabled or a specific color for this border.
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
left?: boolean | string;
|
|
47
|
+
/**
|
|
48
|
+
* Right border enabled or a specific color for this border.
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
right?: boolean | string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author ...
|
|
3
|
+
* @copyright ...
|
|
4
|
+
*/
|
|
5
|
+
import { AnyElement } from "src/volt.js";
|
|
6
|
+
import { Compression } from "./compression.js";
|
|
7
|
+
import type { Mail } from "../../../backend/src/plugins/mail/mail.js";
|
|
8
|
+
/** A file attachment with an internal byte buffer and compression/encoding helpers. */
|
|
9
|
+
export declare class Attachment {
|
|
10
|
+
/** File or directory name. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Path relative to the dropped root. */
|
|
13
|
+
path: string;
|
|
14
|
+
/** MIME type of the data. */
|
|
15
|
+
mime_type: string;
|
|
16
|
+
/** Charset used for text decoding (if applicable). */
|
|
17
|
+
charset?: string;
|
|
18
|
+
/** Whether the internal buffer is gzip-compressed. */
|
|
19
|
+
compressed: boolean;
|
|
20
|
+
/** Optional original File/Blob source. */
|
|
21
|
+
file?: File | Blob;
|
|
22
|
+
/** Internal raw buffer (compressed or not depending on state). */
|
|
23
|
+
private _bytes;
|
|
24
|
+
/** Create an Attachment from initial metadata and/or bytes. */
|
|
25
|
+
constructor(init: Attachment.Opts);
|
|
26
|
+
/** Current size of the internal buffer in bytes (compressed if flagged). */
|
|
27
|
+
get size(): number;
|
|
28
|
+
/** Get a copy of the internal buffer (leave compression state unchanged). */
|
|
29
|
+
bytes(): Uint8Array;
|
|
30
|
+
/** Replace the internal buffer (optionally update compression flag). */
|
|
31
|
+
set_bytes(bytes: Compression.BytesLike, compressed?: boolean): this;
|
|
32
|
+
/** Ensure the buffer is gzip-compressed (noop if already compressed). */
|
|
33
|
+
compress(options?: Compression.GzipOptions): this;
|
|
34
|
+
/** Ensure the buffer is uncompressed (noop if already uncompressed). */
|
|
35
|
+
decompress(): this;
|
|
36
|
+
/** Return Base64 of the current buffer (compressed or not). */
|
|
37
|
+
to_base64({ url_safe }?: {
|
|
38
|
+
url_safe?: boolean;
|
|
39
|
+
}): string;
|
|
40
|
+
/**
|
|
41
|
+
* Return a string view of the data using a charset.
|
|
42
|
+
* @param decompress Whether to decompress first if compressed. Default true.
|
|
43
|
+
* @param encoding Charset label; defaults to this.charset or "utf-8".
|
|
44
|
+
*/
|
|
45
|
+
to_string(decompress?: boolean, encoding?: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* Parse JSON from the data.
|
|
48
|
+
* @param decompress Whether to decompress first if compressed. Default true.
|
|
49
|
+
*/
|
|
50
|
+
to_json<T = unknown>(decompress?: boolean): T;
|
|
51
|
+
/**
|
|
52
|
+
* Convert this attachment to a backend REST API attachment payload.
|
|
53
|
+
*
|
|
54
|
+
* This returns an object compatible with the server's `Mail.Attachment.RestAPI`
|
|
55
|
+
* shape using either:
|
|
56
|
+
* - `{ content, encoding }` (default; embeds the payload), or
|
|
57
|
+
* - `{ url }` (streams from an http(s)/data URL).
|
|
58
|
+
*
|
|
59
|
+
* @param opts Conversion options.
|
|
60
|
+
* @param opts.encoding Output string encoding for `content`. Defaults to `"base64"`.
|
|
61
|
+
* Supported: `"base64" | "hex" | "utf8"`.
|
|
62
|
+
* Use `"utf8"` only for textual data.
|
|
63
|
+
* @param opts.decompress Whether to decompress before encoding. Defaults to `true`.
|
|
64
|
+
* @param opts.url Optional http(s) or data: URL. When provided, `content`/`encoding`
|
|
65
|
+
* are omitted and the server will stream from this URL.
|
|
66
|
+
*
|
|
67
|
+
* @returns A REST API attachment payload with metadata plus either `{ content, encoding }` or `{ url }`.
|
|
68
|
+
*/
|
|
69
|
+
to_rest_api(opts?: {
|
|
70
|
+
encoding?: "base64" | "hex" | "utf8";
|
|
71
|
+
decompress?: boolean;
|
|
72
|
+
url?: string;
|
|
73
|
+
}): Mail.Attachment.RestAPI;
|
|
74
|
+
/** Clone the attachment, including bytes and metadata. */
|
|
75
|
+
clone(): Attachment;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace Attachment {
|
|
78
|
+
/** Options for constructing an Attachment. */
|
|
79
|
+
interface Opts {
|
|
80
|
+
/** File or directory name. */
|
|
81
|
+
name: string;
|
|
82
|
+
/** Path relative to the dropped root (if available). */
|
|
83
|
+
path?: string;
|
|
84
|
+
/** MIME type of the data. */
|
|
85
|
+
mime_type?: string;
|
|
86
|
+
/** Charset used for text decoding (if applicable). */
|
|
87
|
+
charset?: string;
|
|
88
|
+
/** Initial bytes to load into the attachment. */
|
|
89
|
+
bytes?: Compression.BytesLike;
|
|
90
|
+
/** Original File/Blob (if created from user drop). */
|
|
91
|
+
file?: File | Blob;
|
|
92
|
+
/** Whether bytes are already gzip-compressed. */
|
|
93
|
+
compressed?: boolean;
|
|
94
|
+
}
|
|
95
|
+
/** Create an Attachment from a Blob/File; optionally read and compress. */
|
|
96
|
+
function from_blob(blob: Blob | File, opts?: {
|
|
97
|
+
name?: string;
|
|
98
|
+
read?: boolean;
|
|
99
|
+
compress?: boolean;
|
|
100
|
+
charset?: string | "auto";
|
|
101
|
+
}): Promise<Attachment>;
|
|
102
|
+
/** Parameters for the {@link on_drop} handler. */
|
|
103
|
+
interface OnDropOpts {
|
|
104
|
+
/** Callback invoked per created attachment (files only). */
|
|
105
|
+
callback: (attachment: Attachment) => any;
|
|
106
|
+
/** Whether to read bytes immediately. Default true. */
|
|
107
|
+
read?: boolean;
|
|
108
|
+
/** Whether to gzip after reading. Default false. */
|
|
109
|
+
compress?: boolean;
|
|
110
|
+
/** Max uncompressed size per file (-1 disables). Default 50MB. */
|
|
111
|
+
max_size?: number;
|
|
112
|
+
/** Max cumulative uncompressed size (-1 disables). Default 50MB. */
|
|
113
|
+
total_max_size?: number;
|
|
114
|
+
/** Called at drag start. */
|
|
115
|
+
on_start?: (event: DragEvent) => any;
|
|
116
|
+
/** Called at drag end. */
|
|
117
|
+
on_stop?: (event: DragEvent) => any;
|
|
118
|
+
/** Error callback. */
|
|
119
|
+
on_error?: (error: Error) => any;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Handle drag/drop; recursively traverses directories and adds only files.
|
|
123
|
+
* Uses FS Access API when available, falls back to WebKit entries, otherwise flat files only.
|
|
124
|
+
*/
|
|
125
|
+
function on_drop(node: AnyElement, sink: Attachment[], opts: OnDropOpts): void;
|
|
126
|
+
}
|