@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
|
@@ -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 AnchorElement extends VElementTagMap.a {
|
|
3
7
|
constructor(text?: string, href?: string, alt?: string);
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
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,6 +1,6 @@
|
|
|
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
|
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,7 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
38
38
|
};
|
|
39
39
|
// Imports.
|
|
40
40
|
import { Elements, VElementTagMap } from "../elements/module.js";
|
|
41
|
-
import {
|
|
41
|
+
import { Schema } from "@vandenberghinc/vlib/frontend";
|
|
42
42
|
// List item.
|
|
43
43
|
let ListItemElement = (() => {
|
|
44
44
|
let _classDecorators = [Elements.create({
|
|
@@ -74,6 +74,9 @@ export const NullListItem = Elements.create_null(ListItemElement);
|
|
|
74
74
|
let UnorderedListElement = (() => {
|
|
75
75
|
let _classDecorators = [Elements.create({
|
|
76
76
|
name: "UnorderedListElement",
|
|
77
|
+
default_style: {
|
|
78
|
+
"padding-left": "1.5em", // add some left padding to ensure the ::marker is visible.
|
|
79
|
+
}
|
|
77
80
|
})];
|
|
78
81
|
let _classDescriptor;
|
|
79
82
|
let _classExtraInitializers = [];
|
|
@@ -97,7 +100,7 @@ let UnorderedListElement = (() => {
|
|
|
97
100
|
items.iterate(node => { this.append_item(node); });
|
|
98
101
|
}
|
|
99
102
|
else {
|
|
100
|
-
console.error(`Invalid type "${
|
|
103
|
+
console.error(`Invalid type "${Schema.value_type(items)}" for parameter "items" the valid type is "array".`);
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
// Append item.
|
|
@@ -118,6 +121,9 @@ export const NullUnorderedList = Elements.create_null(UnorderedListElement);
|
|
|
118
121
|
let OrderedListElement = (() => {
|
|
119
122
|
let _classDecorators = [Elements.create({
|
|
120
123
|
name: "OrderedListElement",
|
|
124
|
+
default_style: {
|
|
125
|
+
"padding-left": "1.5em", // add some left padding to ensure the ::marker is visible.
|
|
126
|
+
}
|
|
121
127
|
})];
|
|
122
128
|
let _classDescriptor;
|
|
123
129
|
let _classExtraInitializers = [];
|
|
@@ -141,7 +147,7 @@ let OrderedListElement = (() => {
|
|
|
141
147
|
items.iterate(node => { this.append_item(node); });
|
|
142
148
|
}
|
|
143
149
|
else {
|
|
144
|
-
console.error(`Invalid type "${
|
|
150
|
+
console.error(`Invalid type "${Schema.value_type(items)}" for parameter "items" the valid type is "array".`);
|
|
145
151
|
}
|
|
146
152
|
}
|
|
147
153
|
// Append item.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
import { VElementBaseSignature, VDivElement } from "../elements/module.js";
|
|
6
|
+
import { RingLoaderElement } from "./loaders.js";
|
|
7
|
+
/**
|
|
8
|
+
* Is any loader button,
|
|
9
|
+
* excluding non loader buttons,
|
|
10
|
+
* use {@link IsButtonLike} for that.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isLoaderButtonLike(element: any): element is LoaderButtonElement;
|
|
13
|
+
declare const LoaderButtonElement_base: VElementBaseSignature;
|
|
14
|
+
/**
|
|
15
|
+
* @warning: you should not use function "LoaderButton.loader.hide() / LoaderButton.loader.show()" use "LoaderButton.hide_loader() / LoaderButton.show_loader()" instead.
|
|
16
|
+
* @warning: This class is still experimental and may be subject to future change.
|
|
17
|
+
*/
|
|
18
|
+
export declare class LoaderButtonElement extends LoaderButtonElement_base {
|
|
19
|
+
nodes: {
|
|
20
|
+
text: VDivElement;
|
|
21
|
+
loader: RingLoaderElement;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
text: VDivElement;
|
|
25
|
+
loader: RingLoaderElement;
|
|
26
|
+
/**
|
|
27
|
+
* Initializes the LoaderButton element with the provided text and loader.
|
|
28
|
+
* @param text The text to display on the loader button.
|
|
29
|
+
* @param loader The loader factory function to create the loading animation.
|
|
30
|
+
* @returns This constructor does not return a value.
|
|
31
|
+
* @docs
|
|
32
|
+
*/
|
|
33
|
+
constructor(text?: string, loader?: () => any);
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves or sets the styling attributes for the loader element. If no argument is provided, it returns the current styles including default loader dimensions.
|
|
36
|
+
* @param style_dict An optional dictionary of styles to set.
|
|
37
|
+
* @returns When no argument is passed, returns the current styles including loader dimensions.
|
|
38
|
+
* @returns When an argument is provided, returns the instance of the element for chaining.
|
|
39
|
+
* @docs
|
|
40
|
+
*/
|
|
41
|
+
styles(): Record<string, string>;
|
|
42
|
+
styles(style_dict: Record<string, any>): this;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the default configuration for the LoaderButtonElement by calling the parent method.
|
|
45
|
+
* @returns Returns the instance of the element for chaining.
|
|
46
|
+
* @docs
|
|
47
|
+
*/
|
|
48
|
+
set_default(): this;
|
|
49
|
+
/**
|
|
50
|
+
* Displays the loader and disables the button when clicked.
|
|
51
|
+
* @returns Returns the instance of the element for chaining.
|
|
52
|
+
* @docs
|
|
53
|
+
*/
|
|
54
|
+
show_loader(): this;
|
|
55
|
+
/**
|
|
56
|
+
* Initiates the loading process by showing the loader.
|
|
57
|
+
* @returns Returns the instance of the element for chaining.
|
|
58
|
+
* @docs
|
|
59
|
+
*/
|
|
60
|
+
start(): this;
|
|
61
|
+
/**
|
|
62
|
+
* Hides the loader, enables the button, and shows the text on click event.
|
|
63
|
+
* @returns Returns the instance of the element for chaining.
|
|
64
|
+
* @docs
|
|
65
|
+
*/
|
|
66
|
+
hide_loader(): this;
|
|
67
|
+
/**
|
|
68
|
+
* Stops the loading process by hiding the loader (alias of `hide_loader`).
|
|
69
|
+
* @returns Returns the instance of the element for chaining.
|
|
70
|
+
*/
|
|
71
|
+
stop(): this;
|
|
72
|
+
}
|
|
73
|
+
export declare const LoaderButton: <Extensions extends object = {}>(text?: string | undefined, loader?: (() => any) | undefined) => LoaderButtonElement & Extensions;
|
|
74
|
+
export declare const NullLoaderButton: <Extensions extends object = {}>() => LoaderButtonElement & Extensions;
|
|
75
|
+
declare module './any_element.d.ts' {
|
|
76
|
+
interface AnyElementMap {
|
|
77
|
+
LoaderButtonElement: LoaderButtonElement;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
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; }
|
|
@@ -37,12 +37,17 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
37
37
|
return useValue ? value : void 0;
|
|
38
38
|
};
|
|
39
39
|
// Imports.
|
|
40
|
-
import { Elements, VDiv } from "../elements/module.js";
|
|
41
|
-
import { AnchorHStackElement } from "./stack";
|
|
42
|
-
import { RingLoader } from "./loaders";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
import { Elements, VDiv, isVElement } from "../elements/module.js";
|
|
41
|
+
import { AnchorHStackElement } from "./stack.js";
|
|
42
|
+
import { RingLoader } from "./loaders.js";
|
|
43
|
+
/**
|
|
44
|
+
* Is any loader button,
|
|
45
|
+
* excluding non loader buttons,
|
|
46
|
+
* use {@link IsButtonLike} for that.
|
|
47
|
+
*/
|
|
48
|
+
export function isLoaderButtonLike(element) {
|
|
49
|
+
return (element instanceof LoaderButtonElement) || (isVElement(element) && (element.element_name === "LoaderButtonElement"));
|
|
50
|
+
}
|
|
46
51
|
// Loader button.
|
|
47
52
|
/**
|
|
48
53
|
* @warning: you should not use function "LoaderButton.loader.hide() / LoaderButton.loader.show()" use "LoaderButton.hide_loader() / LoaderButton.show_loader()" instead.
|
|
@@ -85,20 +90,11 @@ let LoaderButtonElement = (() => {
|
|
|
85
90
|
text;
|
|
86
91
|
loader;
|
|
87
92
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @
|
|
90
|
-
* @
|
|
91
|
-
* @
|
|
92
|
-
*
|
|
93
|
-
* @descr: The text to display on the loader button.
|
|
94
|
-
* @type: string
|
|
95
|
-
* @param:
|
|
96
|
-
* @name: loader
|
|
97
|
-
* @descr: The loader function to create the loading animation.
|
|
98
|
-
* @type: Function
|
|
99
|
-
* @return:
|
|
100
|
-
* @type: void
|
|
101
|
-
* @description This constructor does not return a value.
|
|
93
|
+
* Initializes the LoaderButton element with the provided text and loader.
|
|
94
|
+
* @param text The text to display on the loader button.
|
|
95
|
+
* @param loader The loader factory function to create the loading animation.
|
|
96
|
+
* @returns This constructor does not return a value.
|
|
97
|
+
* @docs
|
|
102
98
|
*/
|
|
103
99
|
constructor(text = "", loader = RingLoader) {
|
|
104
100
|
// Initialize base classes.
|
|
@@ -145,23 +141,17 @@ let LoaderButtonElement = (() => {
|
|
|
145
141
|
}
|
|
146
142
|
}
|
|
147
143
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @
|
|
150
|
-
* @
|
|
151
|
-
* @return:
|
|
152
|
-
* @type: this
|
|
153
|
-
* @description Returns the instance of the element for chaining.
|
|
144
|
+
* Sets the default configuration for the LoaderButtonElement by calling the parent method.
|
|
145
|
+
* @returns Returns the instance of the element for chaining.
|
|
146
|
+
* @docs
|
|
154
147
|
*/
|
|
155
148
|
set_default() {
|
|
156
149
|
return super.set_default(LoaderButtonElement);
|
|
157
150
|
}
|
|
158
151
|
/**
|
|
159
|
-
*
|
|
160
|
-
* @
|
|
161
|
-
* @
|
|
162
|
-
* @return:
|
|
163
|
-
* @type: this
|
|
164
|
-
* @description Returns the instance of the element for chaining.
|
|
152
|
+
* Displays the loader and disables the button when clicked.
|
|
153
|
+
* @returns Returns the instance of the element for chaining.
|
|
154
|
+
* @docs
|
|
165
155
|
*/
|
|
166
156
|
show_loader() {
|
|
167
157
|
this.disable();
|
|
@@ -171,24 +161,18 @@ let LoaderButtonElement = (() => {
|
|
|
171
161
|
return this;
|
|
172
162
|
}
|
|
173
163
|
/**
|
|
174
|
-
*
|
|
175
|
-
* @
|
|
176
|
-
* @
|
|
177
|
-
* @return:
|
|
178
|
-
* @type: this
|
|
179
|
-
* @description Returns the instance of the element for chaining.
|
|
164
|
+
* Initiates the loading process by showing the loader.
|
|
165
|
+
* @returns Returns the instance of the element for chaining.
|
|
166
|
+
* @docs
|
|
180
167
|
*/
|
|
181
168
|
// @ts-ignore
|
|
182
169
|
start() {
|
|
183
170
|
return this.show_loader();
|
|
184
171
|
}
|
|
185
172
|
/**
|
|
186
|
-
*
|
|
187
|
-
* @
|
|
188
|
-
* @
|
|
189
|
-
* @return:
|
|
190
|
-
* @type: this
|
|
191
|
-
* @description Returns the instance of the element for chaining.
|
|
173
|
+
* Hides the loader, enables the button, and shows the text on click event.
|
|
174
|
+
* @returns Returns the instance of the element for chaining.
|
|
175
|
+
* @docs
|
|
192
176
|
*/
|
|
193
177
|
hide_loader() {
|
|
194
178
|
this.enable();
|
|
@@ -196,6 +180,10 @@ let LoaderButtonElement = (() => {
|
|
|
196
180
|
this.nodes.text.show();
|
|
197
181
|
return this;
|
|
198
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Stops the loading process by hiding the loader (alias of `hide_loader`).
|
|
185
|
+
* @returns Returns the instance of the element for chaining.
|
|
186
|
+
*/
|
|
199
187
|
stop() { return this.hide_loader(); }
|
|
200
188
|
};
|
|
201
189
|
return LoaderButtonElement = _classThis;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
import { VElementTagMap } from "../elements/module.js";
|
|
6
|
+
/**
|
|
7
|
+
* The ring loader element.
|
|
8
|
+
* @chapter Frontend
|
|
9
|
+
* @docs
|
|
10
|
+
*/
|
|
11
|
+
export declare class RingLoaderElement extends VElementTagMap.div {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new ring loader element and initialize it with default styles, then call `update()` to render.
|
|
14
|
+
*/
|
|
15
|
+
constructor();
|
|
16
|
+
/**
|
|
17
|
+
* Background.
|
|
18
|
+
*
|
|
19
|
+
* Set the background value. Returns the attribute value when parameter `value` is `null`.
|
|
20
|
+
* @note Dont forget to update the loader through `update()` after calling this function.
|
|
21
|
+
* @param value The value to assign. Leave `null` to retrieve the attribute's value.
|
|
22
|
+
* @returns Returns the `RingLoaderElement` object for chaining unless parameter `value` is `null`, then the attribute's value is returned.
|
|
23
|
+
* @docs
|
|
24
|
+
*/
|
|
25
|
+
background(): string;
|
|
26
|
+
background(value: string): this;
|
|
27
|
+
/**
|
|
28
|
+
* Get or set the color, which maps to the internal `--child-background` style variable.
|
|
29
|
+
* @param value The color to assign. Leave `null`/`undefined` to retrieve the current value.
|
|
30
|
+
* @returns Returns the `RingLoaderElement` object for chaining unless parameter `value` is `null`/`undefined`, then the current value is returned.
|
|
31
|
+
*/
|
|
32
|
+
color(): string;
|
|
33
|
+
color(value: string): this;
|
|
34
|
+
/**
|
|
35
|
+
* Set the border width by factor.
|
|
36
|
+
* @note Dont forget to update the loader through `update()` after calling this function.
|
|
37
|
+
* @param value The float border width factor.
|
|
38
|
+
* @docs
|
|
39
|
+
*/
|
|
40
|
+
border_width_factor(): number;
|
|
41
|
+
border_width_factor(value: number): this;
|
|
42
|
+
/**
|
|
43
|
+
* Update the loader, this function needs to be called after initialization or after changing the frame, background or border.
|
|
44
|
+
* @docs
|
|
45
|
+
*/
|
|
46
|
+
update(): this;
|
|
47
|
+
}
|
|
48
|
+
export declare const RingLoader: <Extensions extends object = {}>() => RingLoaderElement & Extensions;
|
|
49
|
+
export declare const NullRingLoader: <Extensions extends object = {}>() => RingLoaderElement & Extensions;
|
|
50
|
+
declare module './any_element.d.ts' {
|
|
51
|
+
interface AnyElementMap {
|
|
52
|
+
RingLoaderElement: RingLoaderElement;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export declare const SpinnerElement: typeof RingLoaderElement;
|
|
56
|
+
export declare const SpinnerLoader: <Extensions extends object = {}>() => RingLoaderElement & Extensions;
|
|
57
|
+
export declare const NullSpinnerLoader: <Extensions extends object = {}>() => RingLoaderElement & Extensions;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
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; }
|
|
@@ -41,11 +41,9 @@ import { Elements, VElementTagMap } from "../elements/module.js";
|
|
|
41
41
|
// RingLoader.
|
|
42
42
|
// - The width and height must be in pixels.
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @chapter
|
|
46
|
-
* @
|
|
47
|
-
* @desc:
|
|
48
|
-
* The ring loader element.
|
|
44
|
+
* The ring loader element.
|
|
45
|
+
* @chapter Frontend
|
|
46
|
+
* @docs
|
|
49
47
|
*/
|
|
50
48
|
let RingLoaderElement = (() => {
|
|
51
49
|
let _classDecorators = [Elements.create({
|
|
@@ -73,6 +71,9 @@ let RingLoaderElement = (() => {
|
|
|
73
71
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
74
72
|
}
|
|
75
73
|
// Constructor.
|
|
74
|
+
/**
|
|
75
|
+
* Create a new ring loader element and initialize it with default styles, then call `update()` to render.
|
|
76
|
+
*/
|
|
76
77
|
constructor() {
|
|
77
78
|
// Initialize base class.
|
|
78
79
|
super({
|
|
@@ -103,9 +104,8 @@ let RingLoaderElement = (() => {
|
|
|
103
104
|
return this;
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
106
|
-
*
|
|
107
|
-
* @
|
|
108
|
-
* @desc: Update the loader, this function needs to be called after initialization or after changing the frame, background or border.
|
|
107
|
+
* Update the loader, this function needs to be called after initialization or after changing the frame, background or border.
|
|
108
|
+
* @docs
|
|
109
109
|
*/
|
|
110
110
|
update() {
|
|
111
111
|
this.remove_children();
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
import { Mutex } from "@vandenberghinc/vlib/frontend";
|
|
1
6
|
import { VElementBaseSignature } from "../elements/module.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ImageMaskElement } from "./image";
|
|
7
|
+
import { HStackElement, VStackElement } from "./stack.js";
|
|
8
|
+
import { TextElement } from "./text.js";
|
|
9
|
+
import { TitleElement } from "./title.js";
|
|
10
|
+
import { LoaderButtonElement } from "./loader_button.js";
|
|
11
|
+
import { ImageMaskElement } from "./image.js";
|
|
8
12
|
export type OnYesNoPopup = ((element: YesNoPopupElement) => Promise<any> | void);
|
|
9
13
|
declare const YesNoPopupElement_base: VElementBaseSignature;
|
|
10
14
|
export declare class YesNoPopupElement extends YesNoPopupElement_base {
|
|
@@ -23,6 +27,7 @@ export declare class YesNoPopupElement extends YesNoPopupElement_base {
|
|
|
23
27
|
no_button: LoaderButtonElement;
|
|
24
28
|
yes_button: LoaderButtonElement;
|
|
25
29
|
buttons: HStackElement;
|
|
30
|
+
header: VStackElement;
|
|
26
31
|
content: VStackElement;
|
|
27
32
|
widget: VStackElement;
|
|
28
33
|
_on_no_called: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
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; }
|
|
@@ -37,13 +37,13 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
37
37
|
return useValue ? value : void 0;
|
|
38
38
|
};
|
|
39
39
|
// Imports.
|
|
40
|
+
import { Mutex } from "@vandenberghinc/vlib/frontend";
|
|
40
41
|
import { Elements } from "../elements/module.js";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import { ImageMask } from "./image";
|
|
42
|
+
import { HStack, VStack, VStackElement } from "./stack.js";
|
|
43
|
+
import { Text } from "./text.js";
|
|
44
|
+
import { Title } from "./title.js";
|
|
45
|
+
import { LoaderButton } from "./loader_button.js";
|
|
46
|
+
import { ImageMask } from "./image.js";
|
|
47
47
|
// RingLoader.
|
|
48
48
|
// - The width and height must be in pixels.
|
|
49
49
|
let YesNoPopupElement = (() => {
|
|
@@ -81,6 +81,7 @@ let YesNoPopupElement = (() => {
|
|
|
81
81
|
no_button;
|
|
82
82
|
yes_button;
|
|
83
83
|
buttons;
|
|
84
|
+
header;
|
|
84
85
|
// @ts-ignore
|
|
85
86
|
content;
|
|
86
87
|
widget;
|
|
@@ -110,20 +111,26 @@ let YesNoPopupElement = (() => {
|
|
|
110
111
|
// Image.
|
|
111
112
|
this.image = ImageMask(typeof image === "boolean" ? undefined : image)
|
|
112
113
|
.mask_color(image_color)
|
|
113
|
-
.
|
|
114
|
-
.position(-17.5, "calc(50% - 17.5px)", null, null)
|
|
114
|
+
.square(25)
|
|
115
|
+
// .position(-17.5, "calc(50% - 17.5px)", null, null)
|
|
116
|
+
.margin_left(10)
|
|
115
117
|
.parent(this)
|
|
116
118
|
.abs_parent(this);
|
|
117
|
-
if (image
|
|
119
|
+
if (!image) {
|
|
118
120
|
this.image.hide();
|
|
119
121
|
}
|
|
122
|
+
else {
|
|
123
|
+
this.image.show();
|
|
124
|
+
}
|
|
120
125
|
// Title.
|
|
121
|
-
this.title = Title(
|
|
126
|
+
this.title = Title(title) // never user inner html instead use append incase of links or code lines.
|
|
127
|
+
.abs_parent(this)
|
|
128
|
+
.parent(this)
|
|
122
129
|
.font_family("inherit")
|
|
123
130
|
.font_weight(500)
|
|
124
131
|
.font_size(34)
|
|
125
|
-
.
|
|
126
|
-
.
|
|
132
|
+
.stretch(true)
|
|
133
|
+
.wrap(true);
|
|
127
134
|
// Text.
|
|
128
135
|
this.text = Text(text) // never user inner html instead use append incase of links or code lines.
|
|
129
136
|
.font_family("inherit")
|
|
@@ -193,10 +200,17 @@ let YesNoPopupElement = (() => {
|
|
|
193
200
|
.parent(this);
|
|
194
201
|
// The custom content.
|
|
195
202
|
this.content = VStack(...content)
|
|
196
|
-
.
|
|
197
|
-
.parent(this);
|
|
203
|
+
.width("100%")
|
|
204
|
+
.abs_parent(this).parent(this);
|
|
205
|
+
// use a header so the user can optionally add padding to only the header.
|
|
206
|
+
// and use no padding on the buttons or content, so a background can be put
|
|
207
|
+
// on the buttons etc.
|
|
208
|
+
this.header = VStack(HStack(this.title, this.image)
|
|
209
|
+
.width("100%"), this.text)
|
|
210
|
+
.width("100%")
|
|
211
|
+
.parent(this).abs_parent(this);
|
|
198
212
|
// The content.
|
|
199
|
-
this.widget = VStack(this.
|
|
213
|
+
this.widget = VStack(this.header, this.content, this.buttons)
|
|
200
214
|
.position("relative")
|
|
201
215
|
.text_center()
|
|
202
216
|
.padding(40, 20, 20, 20)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Daan van den Bergh
|
|
3
|
+
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
+
*/
|
|
5
|
+
import { VElementTagMap, AppendType } from "../elements/module.js";
|
|
6
|
+
import { AnyElement } from "./any_element.js";
|
|
7
|
+
export declare class PseudoElement extends VElementTagMap.div {
|
|
8
|
+
/**
|
|
9
|
+
* The pseudo id used for creating a css class.
|
|
10
|
+
* @note This id should be suffixed with the pseudo class type, e.g. `pseudo_1234_before`.
|
|
11
|
+
*/
|
|
12
|
+
base_pseudo_id: string;
|
|
13
|
+
/** The stylesheet per `before` `after` etc. */
|
|
14
|
+
pseudo_classes: Record<string, HTMLStyleElement>;
|
|
15
|
+
/** A list of elements this pseudo element is applied to */
|
|
16
|
+
added_to_elements: {
|
|
17
|
+
node: AnyElement;
|
|
18
|
+
type: string;
|
|
19
|
+
}[];
|
|
20
|
+
constructor(...children: AppendType[]);
|
|
21
|
+
/** Retrieve a pseudo id suffixed with a specific type. */
|
|
22
|
+
pseudo_id(type: string): string;
|
|
23
|
+
/** Apply the pseudo to a node for a specific psuedo class. */
|
|
24
|
+
apply(node: AnyElement, type: string): this;
|
|
25
|
+
/** Alias method for {@link apply}. */
|
|
26
|
+
add(node: AnyElement, type: string): this;
|
|
27
|
+
/** Remove the pseudo effect from a node if applied. */
|
|
28
|
+
remove_from(node: AnyElement, type: string): this;
|
|
29
|
+
/** Remove all pseudo effects from a given node. */
|
|
30
|
+
remove_all(node: AnyElement): this;
|
|
31
|
+
/** Is added to. */
|
|
32
|
+
is_applied_to(node: AnyElement, type: string): boolean;
|
|
33
|
+
/** Alias method for {@link is_applied_to}. */
|
|
34
|
+
is_added_to(node: AnyElement, type: string): boolean;
|
|
35
|
+
/** Update the pseudo on all applied elements. */
|
|
36
|
+
update(): this;
|
|
37
|
+
}
|
|
38
|
+
export declare const Pseudo: <Extensions extends object = {}>(...args: AppendType[]) => PseudoElement & Extensions;
|
|
39
|
+
export declare const NullPseudo: <Extensions extends object = {}>() => PseudoElement & Extensions;
|
|
40
|
+
declare module './any_element.d.ts' {
|
|
41
|
+
interface AnyElementMap {
|
|
42
|
+
PseudoElement: PseudoElement;
|
|
43
|
+
}
|
|
44
|
+
}
|