@vandenberghinc/volt 1.2.5 → 1.2.6
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/frontend/assets/admin/admin.png +0 -0
- package/frontend/assets/admin/password.webp +0 -0
- package/frontend/assets/icons/arrow.v1.webp +0 -0
- package/frontend/assets/icons/copy.webp +0 -0
- package/frontend/assets/payments/arrow.long.webp +0 -0
- package/frontend/assets/payments/arrow.long2.webp +0 -0
- package/frontend/assets/payments/cancelled.webp +0 -0
- package/frontend/assets/payments/check.sign.webp +0 -0
- package/frontend/assets/payments/check.webp +0 -0
- package/frontend/assets/payments/close.webp +0 -0
- package/frontend/assets/payments/error.webp +0 -0
- package/frontend/assets/payments/exclamation.webp +0 -0
- package/frontend/assets/payments/minus.webp +0 -0
- package/frontend/assets/payments/party.webp +0 -0
- package/frontend/assets/payments/plus.webp +0 -0
- package/frontend/assets/payments/shopping_cart.webp +0 -0
- package/frontend/assets/payments/trash.webp +0 -0
- package/package.json +5 -1
- package/.libris/config.json +0 -82
- package/backend/dist/cjs/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/cjs/backend/src/blacklist.js +0 -78
- package/backend/dist/cjs/backend/src/cli.d.ts +0 -2
- package/backend/dist/cjs/backend/src/cli.js +0 -198
- package/backend/dist/cjs/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/cjs/backend/src/database/collection.js +0 -3301
- package/backend/dist/cjs/backend/src/database/database.d.ts +0 -92
- package/backend/dist/cjs/backend/src/database/database.js +0 -170
- package/backend/dist/cjs/backend/src/database/document.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/document.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/cjs/backend/src/database/filters/filters.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +0 -443
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +0 -355
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/cjs/backend/src/database/flatten.js +0 -53
- package/backend/dist/cjs/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/flatten_test.js +0 -175
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.js +0 -1046
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/cjs/backend/src/database/quota/quota.js +0 -1108
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +0 -1087
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +0 -745
- package/backend/dist/cjs/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/cjs/backend/src/endpoint.js +0 -468
- package/backend/dist/cjs/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/cjs/backend/src/errors/index.js +0 -25
- package/backend/dist/cjs/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/cjs/backend/src/errors/internal_external.js +0 -95
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.js +0 -47
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/cjs/backend/src/errors/system_error.js +0 -436
- package/backend/dist/cjs/backend/src/events.d.ts +0 -97
- package/backend/dist/cjs/backend/src/events.js +0 -15
- package/backend/dist/cjs/backend/src/frontend.d.ts +0 -11
- package/backend/dist/cjs/backend/src/frontend.js +0 -37
- package/backend/dist/cjs/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/cjs/backend/src/image_endpoint.js +0 -185
- package/backend/dist/cjs/backend/src/index.d.ts +0 -23
- package/backend/dist/cjs/backend/src/index.js +0 -70
- package/backend/dist/cjs/backend/src/logger.d.ts +0 -5
- package/backend/dist/cjs/backend/src/logger.js +0 -15
- package/backend/dist/cjs/backend/src/meta.d.ts +0 -112
- package/backend/dist/cjs/backend/src/meta.js +0 -181
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/cjs/backend/src/payments/paddle.js +0 -1996
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.js +0 -295
- package/backend/dist/cjs/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/cjs/backend/src/payments/stripe/customers.js +0 -164
- package/backend/dist/cjs/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/cjs/backend/src/payments/stripe/error.js +0 -64
- package/backend/dist/cjs/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/cjs/backend/src/payments/stripe/events.js +0 -15
- package/backend/dist/cjs/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/meters.js +0 -230
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.js +0 -109
- package/backend/dist/cjs/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/cjs/backend/src/payments/stripe/products.js +0 -650
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.js +0 -468
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.js +0 -557
- package/backend/dist/cjs/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/cjs/backend/src/payments/stripe/utils.js +0 -118
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.js +0 -627
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/browser.js +0 -15
- package/backend/dist/cjs/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/cjs/backend/src/plugins/communication.js +0 -196
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +0 -381
- package/backend/dist/cjs/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/cjs/backend/src/plugins/mail/ui.js +0 -1370
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/pdf.js +0 -1456
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.js +0 -116
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/cjs/backend/src/rate_limit.js +0 -543
- package/backend/dist/cjs/backend/src/route.d.ts +0 -39
- package/backend/dist/cjs/backend/src/route.js +0 -172
- package/backend/dist/cjs/backend/src/server.d.ts +0 -502
- package/backend/dist/cjs/backend/src/server.js +0 -1713
- package/backend/dist/cjs/backend/src/server.old.d.ts +0 -594
- package/backend/dist/cjs/backend/src/server.old.js +0 -2058
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/cjs/backend/src/splash_screen.js +0 -119
- package/backend/dist/cjs/backend/src/status.d.ts +0 -89
- package/backend/dist/cjs/backend/src/status.js +0 -211
- package/backend/dist/cjs/backend/src/stream.d.ts +0 -494
- package/backend/dist/cjs/backend/src/stream.js +0 -1370
- package/backend/dist/cjs/backend/src/users.d.ts +0 -926
- package/backend/dist/cjs/backend/src/users.js +0 -2223
- package/backend/dist/cjs/backend/src/utils.d.ts +0 -22
- package/backend/dist/cjs/backend/src/utils.js +0 -626
- package/backend/dist/cjs/backend/src/view.d.ts +0 -115
- package/backend/dist/cjs/backend/src/view.js +0 -519
- package/backend/dist/cjs/backend/src/vinc.d.ts +0 -6
- package/backend/dist/cjs/backend/src/vinc.js +0 -40
- package/backend/dist/cjs/backend/src/volt.d.ts +0 -24
- package/backend/dist/cjs/backend/src/volt.js +0 -72
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/cjs/frontend/src/modules/request.js +0 -99
- package/backend/dist/cjs/package.json +0 -1
- package/backend/dist/esm/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/esm/backend/src/blacklist.js +0 -52
- package/backend/dist/esm/backend/src/cli.d.ts +0 -2
- package/backend/dist/esm/backend/src/cli.js +0 -211
- package/backend/dist/esm/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/esm/backend/src/database/collection.js +0 -3779
- package/backend/dist/esm/backend/src/database/database.d.ts +0 -92
- package/backend/dist/esm/backend/src/database/database.js +0 -214
- package/backend/dist/esm/backend/src/database/document.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/document.js +0 -558
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/esm/backend/src/database/filters/filters.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +0 -3
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +0 -505
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +0 -712
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +0 -44
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +0 -415
- package/backend/dist/esm/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/esm/backend/src/database/flatten.js +0 -22
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/flatten_test.js +0 -174
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.js +0 -1155
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/esm/backend/src/database/quota/quota.js +0 -1219
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +0 -1242
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +0 -810
- package/backend/dist/esm/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/esm/backend/src/endpoint.js +0 -479
- package/backend/dist/esm/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/esm/backend/src/errors/index.js +0 -7
- package/backend/dist/esm/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/esm/backend/src/errors/internal_external.js +0 -86
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +0 -33
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/esm/backend/src/errors/system_error.js +0 -444
- package/backend/dist/esm/backend/src/events.d.ts +0 -97
- package/backend/dist/esm/backend/src/events.js +0 -5
- package/backend/dist/esm/backend/src/frontend.d.ts +0 -11
- package/backend/dist/esm/backend/src/frontend.js +0 -12
- package/backend/dist/esm/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/esm/backend/src/image_endpoint.js +0 -196
- package/backend/dist/esm/backend/src/index.d.ts +0 -23
- package/backend/dist/esm/backend/src/index.js +0 -26
- package/backend/dist/esm/backend/src/logger.d.ts +0 -5
- package/backend/dist/esm/backend/src/logger.js +0 -8
- package/backend/dist/esm/backend/src/meta.d.ts +0 -112
- package/backend/dist/esm/backend/src/meta.js +0 -152
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/esm/backend/src/payments/paddle.js +0 -2276
- package/backend/dist/esm/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/esm/backend/src/payments/stripe/checkout.js +0 -356
- package/backend/dist/esm/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/esm/backend/src/payments/stripe/customers.js +0 -193
- package/backend/dist/esm/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/esm/backend/src/payments/stripe/error.js +0 -51
- package/backend/dist/esm/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/esm/backend/src/payments/stripe/events.js +0 -5
- package/backend/dist/esm/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/meters.js +0 -318
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.js +0 -135
- package/backend/dist/esm/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/esm/backend/src/payments/stripe/products.js +0 -896
- package/backend/dist/esm/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/esm/backend/src/payments/stripe/stripe.js +0 -464
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.js +0 -754
- package/backend/dist/esm/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/esm/backend/src/payments/stripe/utils.js +0 -131
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.js +0 -752
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/browser.js +0 -170
- package/backend/dist/esm/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/esm/backend/src/plugins/communication.js +0 -169
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +0 -396
- package/backend/dist/esm/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/esm/backend/src/plugins/mail/ui.js +0 -1400
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/pdf.js +0 -1694
- package/backend/dist/esm/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/esm/backend/src/plugins/thread_monitor.js +0 -120
- package/backend/dist/esm/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/esm/backend/src/rate_limit.js +0 -667
- package/backend/dist/esm/backend/src/route.d.ts +0 -39
- package/backend/dist/esm/backend/src/route.js +0 -222
- package/backend/dist/esm/backend/src/server.d.ts +0 -502
- package/backend/dist/esm/backend/src/server.js +0 -2034
- package/backend/dist/esm/backend/src/server.old.d.ts +0 -594
- package/backend/dist/esm/backend/src/server.old.js +0 -2630
- package/backend/dist/esm/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/esm/backend/src/splash_screen.js +0 -156
- package/backend/dist/esm/backend/src/status.d.ts +0 -89
- package/backend/dist/esm/backend/src/status.js +0 -213
- package/backend/dist/esm/backend/src/stream.d.ts +0 -494
- package/backend/dist/esm/backend/src/stream.js +0 -1611
- package/backend/dist/esm/backend/src/users.d.ts +0 -926
- package/backend/dist/esm/backend/src/users.js +0 -2423
- package/backend/dist/esm/backend/src/utils.d.ts +0 -22
- package/backend/dist/esm/backend/src/utils.js +0 -463
- package/backend/dist/esm/backend/src/view.d.ts +0 -115
- package/backend/dist/esm/backend/src/view.js +0 -584
- package/backend/dist/esm/backend/src/vinc.d.ts +0 -6
- package/backend/dist/esm/backend/src/vinc.js +0 -6
- package/backend/dist/esm/backend/src/volt.d.ts +0 -24
- package/backend/dist/esm/backend/src/volt.js +0 -27
- package/backend/dist/esm/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/esm/frontend/src/modules/request.js +0 -117
- package/backend/old/file_watcher.ts +0 -359
- package/backend/old/request.deprc.js +0 -626
- package/backend/old/response.deprc.js +0 -354
- package/frontend/dist/backend/src/database/collection.d.ts +0 -1765
- package/frontend/dist/backend/src/database/collection.js +0 -3779
- package/frontend/dist/backend/src/database/database.d.ts +0 -92
- package/frontend/dist/backend/src/database/database.js +0 -214
- package/frontend/dist/backend/src/database/filters/filters.d.ts +0 -6
- package/frontend/dist/backend/src/database/filters/filters.js +0 -1
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/frontend/dist/backend/src/database/filters/strict_filter.js +0 -3
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +0 -5
- package/frontend/dist/backend/src/database/flatten.d.ts +0 -78
- package/frontend/dist/backend/src/database/flatten.js +0 -22
- package/frontend/dist/backend/src/endpoint.d.ts +0 -346
- package/frontend/dist/backend/src/endpoint.js +0 -479
- package/frontend/dist/backend/src/errors/index.d.ts +0 -7
- package/frontend/dist/backend/src/errors/index.js +0 -7
- package/frontend/dist/backend/src/errors/internal_external.d.ts +0 -52
- package/frontend/dist/backend/src/errors/internal_external.js +0 -86
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +0 -33
- package/frontend/dist/backend/src/errors/system_error.d.ts +0 -261
- package/frontend/dist/backend/src/errors/system_error.js +0 -444
- package/frontend/dist/backend/src/events.d.ts +0 -97
- package/frontend/dist/backend/src/events.js +0 -5
- package/frontend/dist/backend/src/frontend.d.ts +0 -11
- package/frontend/dist/backend/src/frontend.js +0 -12
- package/frontend/dist/backend/src/image_endpoint.d.ts +0 -44
- package/frontend/dist/backend/src/image_endpoint.js +0 -196
- package/frontend/dist/backend/src/meta.d.ts +0 -112
- package/frontend/dist/backend/src/meta.js +0 -152
- package/frontend/dist/backend/src/payments/paddle.d.ts +0 -329
- package/frontend/dist/backend/src/payments/paddle.js +0 -2276
- package/frontend/dist/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/frontend/dist/backend/src/payments/stripe/checkout.js +0 -356
- package/frontend/dist/backend/src/payments/stripe/customers.d.ts +0 -17
- package/frontend/dist/backend/src/payments/stripe/customers.js +0 -193
- package/frontend/dist/backend/src/payments/stripe/error.d.ts +0 -74
- package/frontend/dist/backend/src/payments/stripe/error.js +0 -51
- package/frontend/dist/backend/src/payments/stripe/events.d.ts +0 -155
- package/frontend/dist/backend/src/payments/stripe/events.js +0 -5
- package/frontend/dist/backend/src/payments/stripe/meters.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/meters.js +0 -318
- package/frontend/dist/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/frontend/dist/backend/src/payments/stripe/payment_methods.js +0 -135
- package/frontend/dist/backend/src/payments/stripe/products.d.ts +0 -519
- package/frontend/dist/backend/src/payments/stripe/products.js +0 -896
- package/frontend/dist/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/frontend/dist/backend/src/payments/stripe/stripe.js +0 -464
- package/frontend/dist/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/frontend/dist/backend/src/payments/stripe/subscriptions.js +0 -754
- package/frontend/dist/backend/src/payments/stripe/utils.d.ts +0 -63
- package/frontend/dist/backend/src/payments/stripe/utils.js +0 -131
- package/frontend/dist/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/webhooks.js +0 -752
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +0 -255
- package/frontend/dist/backend/src/plugins/mail/mail.js +0 -396
- package/frontend/dist/backend/src/plugins/mail/ui.d.ts +0 -297
- package/frontend/dist/backend/src/plugins/mail/ui.js +0 -1400
- package/frontend/dist/backend/src/rate_limit.d.ts +0 -148
- package/frontend/dist/backend/src/rate_limit.js +0 -667
- package/frontend/dist/backend/src/route.d.ts +0 -39
- package/frontend/dist/backend/src/route.js +0 -222
- package/frontend/dist/backend/src/server.d.ts +0 -502
- package/frontend/dist/backend/src/server.js +0 -2034
- package/frontend/dist/backend/src/splash_screen.d.ts +0 -93
- package/frontend/dist/backend/src/splash_screen.js +0 -156
- package/frontend/dist/backend/src/status.d.ts +0 -89
- package/frontend/dist/backend/src/status.js +0 -213
- package/frontend/dist/backend/src/stream.d.ts +0 -494
- package/frontend/dist/backend/src/stream.js +0 -1611
- package/frontend/dist/backend/src/users.d.ts +0 -926
- package/frontend/dist/backend/src/users.js +0 -2423
- package/frontend/dist/backend/src/utils.d.ts +0 -22
- package/frontend/dist/backend/src/utils.js +0 -463
- package/frontend/dist/backend/src/view.d.ts +0 -115
- package/frontend/dist/backend/src/view.js +0 -584
- package/frontend/dist/frontend/src/elements/base.d.ts +0 -3743
- package/frontend/dist/frontend/src/elements/base.js +0 -12151
- package/frontend/dist/frontend/src/elements/module.d.ts +0 -95
- package/frontend/dist/frontend/src/elements/module.js +0 -216
- package/frontend/dist/frontend/src/elements/register_element.d.ts +0 -3
- package/frontend/dist/frontend/src/elements/register_element.js +0 -22
- package/frontend/dist/frontend/src/elements/resize_query_manager.d.ts +0 -0
- package/frontend/dist/frontend/src/elements/resize_query_manager.js +0 -150
- package/frontend/dist/frontend/src/elements/types.d.ts +0 -52
- package/frontend/dist/frontend/src/elements/types.js +0 -5
- package/frontend/dist/frontend/src/index.d.ts +0 -21
- package/frontend/dist/frontend/src/index.js +0 -29
- package/frontend/dist/frontend/src/modules/attachment.d.ts +0 -126
- package/frontend/dist/frontend/src/modules/attachment.js +0 -306
- package/frontend/dist/frontend/src/modules/auth.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/auth.js +0 -80
- package/frontend/dist/frontend/src/modules/color.d.ts +0 -160
- package/frontend/dist/frontend/src/modules/color.js +0 -316
- package/frontend/dist/frontend/src/modules/compression.d.ts +0 -39
- package/frontend/dist/frontend/src/modules/compression.js +0 -102
- package/frontend/dist/frontend/src/modules/cookies.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/cookies.js +0 -143
- package/frontend/dist/frontend/src/modules/events.d.ts +0 -31
- package/frontend/dist/frontend/src/modules/events.js +0 -79
- package/frontend/dist/frontend/src/modules/google.d.ts +0 -23
- package/frontend/dist/frontend/src/modules/google.js +0 -52
- package/frontend/dist/frontend/src/modules/meta.d.ts +0 -14
- package/frontend/dist/frontend/src/modules/meta.js +0 -48
- package/frontend/dist/frontend/src/modules/paddle.d.ts +0 -1207
- package/frontend/dist/frontend/src/modules/paddle.js +0 -2594
- package/frontend/dist/frontend/src/modules/request.d.ts +0 -70
- package/frontend/dist/frontend/src/modules/request.js +0 -117
- package/frontend/dist/frontend/src/modules/settings.d.ts +0 -3
- package/frontend/dist/frontend/src/modules/settings.js +0 -5
- package/frontend/dist/frontend/src/modules/statics.d.ts +0 -21
- package/frontend/dist/frontend/src/modules/statics.js +0 -43
- package/frontend/dist/frontend/src/modules/stripe/cart.d.ts +0 -112
- package/frontend/dist/frontend/src/modules/stripe/cart.js +0 -321
- package/frontend/dist/frontend/src/modules/stripe/checkout.d.ts +0 -7
- package/frontend/dist/frontend/src/modules/stripe/checkout.js +0 -37
- package/frontend/dist/frontend/src/modules/stripe/index.m.d.ts +0 -6
- package/frontend/dist/frontend/src/modules/stripe/index.m.js +0 -6
- package/frontend/dist/frontend/src/modules/stripe/payments.d.ts +0 -58
- package/frontend/dist/frontend/src/modules/stripe/payments.js +0 -92
- package/frontend/dist/frontend/src/modules/support.d.ts +0 -30
- package/frontend/dist/frontend/src/modules/support.js +0 -53
- package/frontend/dist/frontend/src/modules/theme.d.ts +0 -133
- package/frontend/dist/frontend/src/modules/theme.js +0 -406
- package/frontend/dist/frontend/src/modules/themes.d.ts +0 -12
- package/frontend/dist/frontend/src/modules/themes.js +0 -22
- package/frontend/dist/frontend/src/modules/user.d.ts +0 -164
- package/frontend/dist/frontend/src/modules/user.js +0 -270
- package/frontend/dist/frontend/src/modules/utils.d.ts +0 -176
- package/frontend/dist/frontend/src/modules/utils.js +0 -569
- package/frontend/dist/frontend/src/types/gradient.d.ts +0 -29
- package/frontend/dist/frontend/src/types/gradient.js +0 -79
- package/frontend/dist/frontend/src/ui/border_button.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/border_button.js +0 -228
- package/frontend/dist/frontend/src/ui/button.d.ts +0 -241
- package/frontend/dist/frontend/src/ui/button.js +0 -682
- package/frontend/dist/frontend/src/ui/canvas.d.ts +0 -138
- package/frontend/dist/frontend/src/ui/canvas.js +0 -444
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +0 -74
- package/frontend/dist/frontend/src/ui/checkbox.js +0 -321
- package/frontend/dist/frontend/src/ui/code.d.ts +0 -235
- package/frontend/dist/frontend/src/ui/code.js +0 -1007
- package/frontend/dist/frontend/src/ui/context_menu.d.ts +0 -36
- package/frontend/dist/frontend/src/ui/context_menu.js +0 -205
- package/frontend/dist/frontend/src/ui/css.d.ts +0 -16
- package/frontend/dist/frontend/src/ui/css.js +0 -48
- package/frontend/dist/frontend/src/ui/divider.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/divider.js +0 -78
- package/frontend/dist/frontend/src/ui/dropdown.d.ts +0 -176
- package/frontend/dist/frontend/src/ui/dropdown.js +0 -481
- package/frontend/dist/frontend/src/ui/for_each.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/for_each.js +0 -92
- package/frontend/dist/frontend/src/ui/form.d.ts +0 -34
- package/frontend/dist/frontend/src/ui/form.js +0 -233
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/frame_modes.js +0 -108
- package/frontend/dist/frontend/src/ui/google_map.d.ts +0 -24
- package/frontend/dist/frontend/src/ui/google_map.js +0 -106
- package/frontend/dist/frontend/src/ui/gradient.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/gradient.js +0 -131
- package/frontend/dist/frontend/src/ui/image.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/image.js +0 -576
- package/frontend/dist/frontend/src/ui/input.d.ts +0 -392
- package/frontend/dist/frontend/src/ui/input.js +0 -1201
- package/frontend/dist/frontend/src/ui/link.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/link.js +0 -140
- package/frontend/dist/frontend/src/ui/list.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/list.js +0 -170
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +0 -80
- package/frontend/dist/frontend/src/ui/loader_button.js +0 -193
- package/frontend/dist/frontend/src/ui/loaders.d.ts +0 -57
- package/frontend/dist/frontend/src/ui/loaders.js +0 -157
- package/frontend/dist/frontend/src/ui/popup.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/popup.js +0 -510
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +0 -44
- package/frontend/dist/frontend/src/ui/pseudo.js +0 -154
- package/frontend/dist/frontend/src/ui/scroller.d.ts +0 -105
- package/frontend/dist/frontend/src/ui/scroller.js +0 -1253
- package/frontend/dist/frontend/src/ui/slider.d.ts +0 -45
- package/frontend/dist/frontend/src/ui/slider.js +0 -217
- package/frontend/dist/frontend/src/ui/spacer.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/spacer.js +0 -78
- package/frontend/dist/frontend/src/ui/span.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/span.js +0 -73
- package/frontend/dist/frontend/src/ui/stack.d.ts +0 -66
- package/frontend/dist/frontend/src/ui/stack.js +0 -335
- package/frontend/dist/frontend/src/ui/steps.d.ts +0 -131
- package/frontend/dist/frontend/src/ui/steps.js +0 -308
- package/frontend/dist/frontend/src/ui/style.d.ts +0 -17
- package/frontend/dist/frontend/src/ui/style.js +0 -73
- package/frontend/dist/frontend/src/ui/switch.d.ts +0 -69
- package/frontend/dist/frontend/src/ui/switch.js +0 -357
- package/frontend/dist/frontend/src/ui/table.d.ts +0 -100
- package/frontend/dist/frontend/src/ui/table.js +0 -405
- package/frontend/dist/frontend/src/ui/tabs.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/tabs.js +0 -424
- package/frontend/dist/frontend/src/ui/text.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/text.js +0 -83
- package/frontend/dist/frontend/src/ui/title.d.ts +0 -91
- package/frontend/dist/frontend/src/ui/title.js +0 -272
- package/frontend/dist/frontend/src/ui/ui.d.ts +0 -35
- package/frontend/dist/frontend/src/ui/ui.js +0 -38
- package/frontend/dist/frontend/src/ui/view.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/view.js +0 -88
- package/frontend/dist/frontend/src/volt.d.ts +0 -20
- package/frontend/dist/frontend/src/volt.js +0 -27
- package/frontend/examples/theme/theme.ts +0 -58
- package/frontend/tools/bundle_d_ts.js +0 -71
- package/frontend/tools/convert_to_jsdoc_input.txt +0 -9452
- package/frontend/tools/convert_to_jsdoc_output.txt +0 -7626
- package/frontend/tools/convert_to_jsdoc_tmp.js +0 -345
- package/frontend/tools/scan_mixed_imports.js +0 -69
- /package/frontend/{dist/frontend/src/css → css}/adyen.css +0 -0
- /package/frontend/{dist/frontend/src/css → css}/volt.css +0 -0
|
@@ -1,682 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2022 - 2025 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
6
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
7
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
8
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
9
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
10
|
-
var _, done = false;
|
|
11
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
12
|
-
var context = {};
|
|
13
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
14
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
15
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
16
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
17
|
-
if (kind === "accessor") {
|
|
18
|
-
if (result === void 0) continue;
|
|
19
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
20
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
21
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
22
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
23
|
-
}
|
|
24
|
-
else if (_ = accept(result)) {
|
|
25
|
-
if (kind === "field") initializers.unshift(_);
|
|
26
|
-
else descriptor[key] = _;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
30
|
-
done = true;
|
|
31
|
-
};
|
|
32
|
-
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
33
|
-
var useValue = arguments.length > 2;
|
|
34
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
35
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
36
|
-
}
|
|
37
|
-
return useValue ? value : void 0;
|
|
38
|
-
};
|
|
39
|
-
// Imports.
|
|
40
|
-
import { Elements, VElementTagMap, isVElement, VDiv } from "../elements/module.js";
|
|
41
|
-
import { BorderButtonElement } from "./border_button.js";
|
|
42
|
-
import { GradientBorder } from "./gradient.js";
|
|
43
|
-
import { ImageMask } from "./image.js";
|
|
44
|
-
import { RingLoader } from "./loaders.js";
|
|
45
|
-
import { Span } from "./span.js";
|
|
46
|
-
import { AnchorHStackElement, Frame } from "./stack.js";
|
|
47
|
-
/**
|
|
48
|
-
* Is any button like,
|
|
49
|
-
* including loader and bordered buttons.
|
|
50
|
-
*/
|
|
51
|
-
export function isButtonLike(element) {
|
|
52
|
-
return (element instanceof ButtonElement
|
|
53
|
-
|| element instanceof LoaderButtonElement
|
|
54
|
-
|| element instanceof BorderButtonElement
|
|
55
|
-
|| element instanceof ExtendedButtonElement) || (isVElement(element) && (element.element_name === "ButtonElement"
|
|
56
|
-
|| element.element_name === "LoaderButtonElement"
|
|
57
|
-
|| element.element_name === "BorderButtonElement"
|
|
58
|
-
|| element.element_name === "ExtendedButtonElement"));
|
|
59
|
-
}
|
|
60
|
-
// -----------------------------------------------------------------------------
|
|
61
|
-
// Button.
|
|
62
|
-
let ButtonElement = (() => {
|
|
63
|
-
let _classDecorators = [Elements.create({
|
|
64
|
-
name: "ButtonElement",
|
|
65
|
-
default_style: {
|
|
66
|
-
"margin": "0px 0px 0px",
|
|
67
|
-
"padding": "5px 10px 5px 10px",
|
|
68
|
-
"outline": "none",
|
|
69
|
-
"border": "none",
|
|
70
|
-
"border-radius": "10px",
|
|
71
|
-
"cursor": "pointer",
|
|
72
|
-
"color": "inherit",
|
|
73
|
-
"text-align": "center",
|
|
74
|
-
"display": "grid",
|
|
75
|
-
"align-items": "center",
|
|
76
|
-
"white-space": "nowrap",
|
|
77
|
-
"user-select": "none",
|
|
78
|
-
"text-decoration": "none",
|
|
79
|
-
},
|
|
80
|
-
default_events: {
|
|
81
|
-
"onmousedown": function () {
|
|
82
|
-
this.style.filter = "brightness(80%)";
|
|
83
|
-
},
|
|
84
|
-
"onmouseover": function () {
|
|
85
|
-
this.style.filter = "brightness(90%)";
|
|
86
|
-
},
|
|
87
|
-
"onmouseup": function () {
|
|
88
|
-
this.style.filter = "brightness(100%)";
|
|
89
|
-
},
|
|
90
|
-
"onmouseout": function () {
|
|
91
|
-
this.style.filter = "brightness(100%)";
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
})];
|
|
95
|
-
let _classDescriptor;
|
|
96
|
-
let _classExtraInitializers = [];
|
|
97
|
-
let _classThis;
|
|
98
|
-
let _classSuper = VElementTagMap.a;
|
|
99
|
-
var ButtonElement = class extends _classSuper {
|
|
100
|
-
static { _classThis = this; }
|
|
101
|
-
static {
|
|
102
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
103
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
104
|
-
ButtonElement = _classThis = _classDescriptor.value;
|
|
105
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
106
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Initializes the Button element with the provided text.
|
|
110
|
-
* @param text The text to display on the button.
|
|
111
|
-
* @nav Frontend/Buttons
|
|
112
|
-
* @docs
|
|
113
|
-
*/
|
|
114
|
-
constructor(text = "") {
|
|
115
|
-
super({
|
|
116
|
-
derived: ButtonElement,
|
|
117
|
-
});
|
|
118
|
-
this.text(text); // @note never assign to innerHTML, always use text()
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
return ButtonElement = _classThis;
|
|
122
|
-
})();
|
|
123
|
-
export { ButtonElement };
|
|
124
|
-
export const Button = Elements.wrapper(ButtonElement);
|
|
125
|
-
export const NullButton = Elements.create_null(ButtonElement);
|
|
126
|
-
// -----------------------------------------------------------------------------
|
|
127
|
-
// /**
|
|
128
|
-
// * Is any loader button,
|
|
129
|
-
// * excluding non loader buttons,
|
|
130
|
-
// * use {@link IsButtonLike} for that.
|
|
131
|
-
// */
|
|
132
|
-
// export function isLoaderButtonLike(element: any): element is LoaderButtonElement {
|
|
133
|
-
// return (
|
|
134
|
-
// element instanceof LoaderButtonElement
|
|
135
|
-
// ) || (isVElement(element) && (
|
|
136
|
-
// element.element_name === "LoaderButtonElement"
|
|
137
|
-
// ));
|
|
138
|
-
// }
|
|
139
|
-
// Loader button.
|
|
140
|
-
/**
|
|
141
|
-
* @warning: you should not use function "LoaderButton.loader.hide() / LoaderButton.loader.show()" use "LoaderButton.hide_loader() / LoaderButton.show_loader()" instead.
|
|
142
|
-
* @warning: This class is still experimental and may be subject to future change.
|
|
143
|
-
*/
|
|
144
|
-
let LoaderButtonElement = (() => {
|
|
145
|
-
let _classDecorators = [Elements.create({
|
|
146
|
-
name: "LoaderButtonElement",
|
|
147
|
-
default_style: {
|
|
148
|
-
"margin": "0px",
|
|
149
|
-
"padding": "12.5px 10px 12.5px 10px",
|
|
150
|
-
"border-radius": "25px",
|
|
151
|
-
"cursor": "pointer",
|
|
152
|
-
"background": "black",
|
|
153
|
-
"color": "inherit",
|
|
154
|
-
"font-size": "16px",
|
|
155
|
-
"user-select": "none",
|
|
156
|
-
"text-decoration": "none",
|
|
157
|
-
// Custom.
|
|
158
|
-
"--loader-width": "20px",
|
|
159
|
-
"--loader-height": "20px",
|
|
160
|
-
}
|
|
161
|
-
})];
|
|
162
|
-
let _classDescriptor;
|
|
163
|
-
let _classExtraInitializers = [];
|
|
164
|
-
let _classThis;
|
|
165
|
-
let _classSuper = AnchorHStackElement;
|
|
166
|
-
var LoaderButtonElement = class extends _classSuper {
|
|
167
|
-
static { _classThis = this; }
|
|
168
|
-
static {
|
|
169
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
170
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
171
|
-
LoaderButtonElement = _classThis = _classDescriptor.value;
|
|
172
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
173
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
174
|
-
}
|
|
175
|
-
// Attributes.
|
|
176
|
-
nodes;
|
|
177
|
-
// @ts-ignore
|
|
178
|
-
text;
|
|
179
|
-
loader;
|
|
180
|
-
/**
|
|
181
|
-
* Initializes the LoaderButton element with the provided text and loader.
|
|
182
|
-
* @param text The text to display on the loader button.
|
|
183
|
-
* @param loader The loader factory function to create the loading animation.
|
|
184
|
-
* @returns This constructor does not return a value.
|
|
185
|
-
* @docs
|
|
186
|
-
*/
|
|
187
|
-
constructor(text = "", loader = RingLoader) {
|
|
188
|
-
// Initialize base classes.
|
|
189
|
-
super();
|
|
190
|
-
this._init({
|
|
191
|
-
derived: LoaderButtonElement,
|
|
192
|
-
});
|
|
193
|
-
// Set nodes type.
|
|
194
|
-
this.text = VDiv();
|
|
195
|
-
this.loader = loader();
|
|
196
|
-
this.nodes = {
|
|
197
|
-
// @deprecated the `nodes` object is deprecated but keep for backward compatability.
|
|
198
|
-
text: this.text,
|
|
199
|
-
loader: this.loader,
|
|
200
|
-
};
|
|
201
|
-
// Set style.
|
|
202
|
-
this.wrap(false);
|
|
203
|
-
this.center();
|
|
204
|
-
this.center_vertical();
|
|
205
|
-
// Children.
|
|
206
|
-
this.nodes.loader
|
|
207
|
-
.frame(LoaderButtonElement.default_style["--loader-width"], LoaderButtonElement.default_style["--loader-height"])
|
|
208
|
-
.background("white")
|
|
209
|
-
.update()
|
|
210
|
-
.hide()
|
|
211
|
-
.parent(this);
|
|
212
|
-
this.nodes.text
|
|
213
|
-
.text(text)
|
|
214
|
-
.margin(0)
|
|
215
|
-
.padding(0)
|
|
216
|
-
.parent(this);
|
|
217
|
-
// Add children.
|
|
218
|
-
this.append(this.nodes.loader, this.nodes.text);
|
|
219
|
-
}
|
|
220
|
-
styles(style_dict) {
|
|
221
|
-
if (style_dict == null) {
|
|
222
|
-
let styles = super.styles();
|
|
223
|
-
styles["--loader-width"] = this.nodes.loader.style.width || "20px";
|
|
224
|
-
styles["--loader-height"] = this.nodes.loader.style.height || "20px";
|
|
225
|
-
return styles;
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
return super.styles(style_dict);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Sets the default configuration for the LoaderButtonElement by calling the parent method.
|
|
233
|
-
* @returns Returns the instance of the element for chaining.
|
|
234
|
-
* @docs
|
|
235
|
-
*/
|
|
236
|
-
set_default() {
|
|
237
|
-
return super.set_default(LoaderButtonElement);
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Displays the loader and disables the button when clicked.
|
|
241
|
-
* @returns Returns the instance of the element for chaining.
|
|
242
|
-
* @docs
|
|
243
|
-
*/
|
|
244
|
-
show_loader() {
|
|
245
|
-
this.disable();
|
|
246
|
-
this.nodes.text.hide();
|
|
247
|
-
this.nodes.loader.update();
|
|
248
|
-
this.nodes.loader.show();
|
|
249
|
-
return this;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Initiates the loading process by showing the loader.
|
|
253
|
-
* @returns Returns the instance of the element for chaining.
|
|
254
|
-
* @docs
|
|
255
|
-
*/
|
|
256
|
-
// @ts-ignore
|
|
257
|
-
start() {
|
|
258
|
-
return this.show_loader();
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Hides the loader, enables the button, and shows the text on click event.
|
|
262
|
-
* @returns Returns the instance of the element for chaining.
|
|
263
|
-
* @docs
|
|
264
|
-
*/
|
|
265
|
-
hide_loader() {
|
|
266
|
-
this.enable();
|
|
267
|
-
this.nodes.loader.hide();
|
|
268
|
-
this.nodes.text.show();
|
|
269
|
-
return this;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Stops the loading process by hiding the loader (alias of `hide_loader`).
|
|
273
|
-
* @returns Returns the instance of the element for chaining.
|
|
274
|
-
*/
|
|
275
|
-
stop() { return this.hide_loader(); }
|
|
276
|
-
};
|
|
277
|
-
return LoaderButtonElement = _classThis;
|
|
278
|
-
})();
|
|
279
|
-
export { LoaderButtonElement };
|
|
280
|
-
export const LoaderButton = Elements.wrapper(LoaderButtonElement);
|
|
281
|
-
export const NullLoaderButton = Elements.create_null(LoaderButtonElement);
|
|
282
|
-
// -----------------------------------------------------------------------------
|
|
283
|
-
/**
|
|
284
|
-
* The extended button element.
|
|
285
|
-
* Containing a built in loader.
|
|
286
|
-
* And an optional arrow that extends when hovering.
|
|
287
|
-
*/
|
|
288
|
-
// Button.
|
|
289
|
-
let ExtendedButtonElement = (() => {
|
|
290
|
-
let _classDecorators = [Elements.create({
|
|
291
|
-
name: "ExtendedButtonElement",
|
|
292
|
-
})];
|
|
293
|
-
let _classDescriptor;
|
|
294
|
-
let _classExtraInitializers = [];
|
|
295
|
-
let _classThis;
|
|
296
|
-
let _classSuper = AnchorHStackElement;
|
|
297
|
-
var ExtendedButtonElement = class extends _classSuper {
|
|
298
|
-
static { _classThis = this; }
|
|
299
|
-
static {
|
|
300
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
301
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
302
|
-
ExtendedButtonElement = _classThis = _classDescriptor.value;
|
|
303
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
304
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
305
|
-
}
|
|
306
|
-
/** The hover background. */
|
|
307
|
-
_hover_background;
|
|
308
|
-
/** The hover text color. */
|
|
309
|
-
_hover_color;
|
|
310
|
-
/** The hover border color. */
|
|
311
|
-
_hover_border_color;
|
|
312
|
-
/** The minimum wait promise for the show/hide loader. */
|
|
313
|
-
_min_wait;
|
|
314
|
-
/** The nested nodes. */
|
|
315
|
-
nodes;
|
|
316
|
-
/**
|
|
317
|
-
* Initializes the Button element with the provided text.
|
|
318
|
-
* @param text The text to display on the button.
|
|
319
|
-
* @nav Frontend/Buttons
|
|
320
|
-
* @docs
|
|
321
|
-
*/
|
|
322
|
-
constructor(button_text, opts = {}) {
|
|
323
|
-
// Initialize super.
|
|
324
|
-
super();
|
|
325
|
-
this._init({
|
|
326
|
-
derived: ExtendedButtonElement,
|
|
327
|
-
});
|
|
328
|
-
// Unpack options.
|
|
329
|
-
let { size_ratio = 1, hover = undefined, } = opts;
|
|
330
|
-
this._hover_background = hover?.background;
|
|
331
|
-
this._hover_color = hover?.color;
|
|
332
|
-
this._hover_border_color = hover?.border_color;
|
|
333
|
-
// Assign nodes.
|
|
334
|
-
// Assign every property that will be assigned later as `undefined as any` for convenience.
|
|
335
|
-
this.nodes = {
|
|
336
|
-
border: undefined,
|
|
337
|
-
background: undefined,
|
|
338
|
-
hover: undefined,
|
|
339
|
-
text: undefined,
|
|
340
|
-
image: undefined,
|
|
341
|
-
image_stripe: undefined,
|
|
342
|
-
loader: undefined,
|
|
343
|
-
};
|
|
344
|
-
// Local vars.
|
|
345
|
-
const color = "black";
|
|
346
|
-
const background = "transparent";
|
|
347
|
-
const border_radius = 10;
|
|
348
|
-
const image_src = (opts.arrow === false ? undefined : opts.arrow?.source) || "/volt/assets/icons/arrow.v1.webp";
|
|
349
|
-
const image_rotation = (opts.arrow === false
|
|
350
|
-
? undefined
|
|
351
|
-
: typeof opts.arrow?.rotate === "number"
|
|
352
|
-
? `${opts.arrow.rotate}deg`
|
|
353
|
-
: opts.arrow?.rotate) || "0deg";
|
|
354
|
-
const image_animation = opts.arrow === false ? false : (opts.arrow?.animate ?? true);
|
|
355
|
-
let before_hover_color;
|
|
356
|
-
let before_hover_border_color;
|
|
357
|
-
this
|
|
358
|
-
.remove_children()
|
|
359
|
-
// .letter_spacing(UI.letter_spacing_1)
|
|
360
|
-
.append(
|
|
361
|
-
// use a separate bg node so we can set opacity on the background color for gradients.
|
|
362
|
-
this.nodes.background = Frame()
|
|
363
|
-
.position(0, 0, 0, 0)
|
|
364
|
-
.background(background)
|
|
365
|
-
.border_radius(border_radius)
|
|
366
|
-
.transition("background 300ms ease-in-out")
|
|
367
|
-
.z_index(1),
|
|
368
|
-
// gradient border for gradient support.
|
|
369
|
-
this.nodes.border = GradientBorder()
|
|
370
|
-
.position(0, 0, 0, 0)
|
|
371
|
-
.background("transparent")
|
|
372
|
-
.border_radius(border_radius)
|
|
373
|
-
.transition("background 300ms ease-in-out")
|
|
374
|
-
.z_index(2),
|
|
375
|
-
// use a hover node so we can use an opacity color as hover effect over for instance a gradient bg.
|
|
376
|
-
this.nodes.hover = Frame()
|
|
377
|
-
.position(0, 0, 0, 0)
|
|
378
|
-
.border_radius(border_radius)
|
|
379
|
-
.opacity(hover?.opacity ?? 1)
|
|
380
|
-
// we dont transition the opacity, this is purely to edit the color.
|
|
381
|
-
.transition("background 300ms ease-in-out")
|
|
382
|
-
.z_index(2), this.nodes.text = Span(button_text)
|
|
383
|
-
.wrap(false)
|
|
384
|
-
.transition("color 300ms ease-in-out")
|
|
385
|
-
.z_index(3), this.nodes.image = ImageMask(image_src)
|
|
386
|
-
.mask_color(color)
|
|
387
|
-
.frame("0.6em", "0.6em")
|
|
388
|
-
.margin_left("0.6em")
|
|
389
|
-
.position("relative")
|
|
390
|
-
.transition_mask("background 300ms ease-in-out")
|
|
391
|
-
.transform(`rotate(${image_rotation})`)
|
|
392
|
-
.append(this.nodes.image_stripe = Frame()
|
|
393
|
-
.background(color)
|
|
394
|
-
.frame(0, 1)
|
|
395
|
-
.position("calc(50% - (1px / 2))", "25%", null, null)
|
|
396
|
-
.border_radius(2)
|
|
397
|
-
.transition("width 500ms ease-in-out, background 300ms ease-in-out"))
|
|
398
|
-
.z_index(3), this.nodes.loader = RingLoader()
|
|
399
|
-
.background(color)
|
|
400
|
-
.square(20 * size_ratio)
|
|
401
|
-
.update()
|
|
402
|
-
.hide()
|
|
403
|
-
.z_index(3))
|
|
404
|
-
.position("relative")
|
|
405
|
-
.margin(0)
|
|
406
|
-
.hover_brightness(false)
|
|
407
|
-
.font_size(14 * size_ratio)
|
|
408
|
-
.font_weight("500 !important")
|
|
409
|
-
.center()
|
|
410
|
-
.center_vertical()
|
|
411
|
-
.padding(10 * size_ratio, 20 * size_ratio, 10 * size_ratio, 20 * size_ratio)
|
|
412
|
-
.background("transparent")
|
|
413
|
-
.color(color)
|
|
414
|
-
.border_radius(border_radius)
|
|
415
|
-
.border(1, "grey")
|
|
416
|
-
// .shadow(Theme.button_shadow)
|
|
417
|
-
.transition("background 300ms ease-in-out")
|
|
418
|
-
.on_mouse_over_out(e => {
|
|
419
|
-
if (image_animation && this.nodes.image_stripe.parentElement) {
|
|
420
|
-
this.nodes.image_stripe.width(this.nodes.image_stripe.parentElement.clientWidth);
|
|
421
|
-
}
|
|
422
|
-
if (this._hover_background) {
|
|
423
|
-
this.nodes.hover.background(this._hover_background); // use a hover node so we can also use a #FFFFFF90 with opactify as hover bg to hover a gradient background for instance.
|
|
424
|
-
}
|
|
425
|
-
if (this._hover_color) {
|
|
426
|
-
before_hover_color = this.color();
|
|
427
|
-
this.color(this._hover_color);
|
|
428
|
-
}
|
|
429
|
-
if (this._hover_border_color) {
|
|
430
|
-
before_hover_border_color = this.border_color();
|
|
431
|
-
this.border_color(this._hover_border_color);
|
|
432
|
-
}
|
|
433
|
-
// (e as any).__background(hover_bg);
|
|
434
|
-
}, e => {
|
|
435
|
-
if (image_animation) {
|
|
436
|
-
this.nodes.image_stripe.width(0);
|
|
437
|
-
}
|
|
438
|
-
if (this._hover_background) {
|
|
439
|
-
this.nodes.hover.background("transparent");
|
|
440
|
-
}
|
|
441
|
-
if (this._hover_color && before_hover_color) {
|
|
442
|
-
this.color(before_hover_color);
|
|
443
|
-
}
|
|
444
|
-
if (this._hover_border_color && before_hover_border_color) {
|
|
445
|
-
this.border_color(before_hover_border_color);
|
|
446
|
-
}
|
|
447
|
-
// (e as any).__background(bg_color);
|
|
448
|
-
});
|
|
449
|
-
// Hide the image.
|
|
450
|
-
if (opts.arrow === false) {
|
|
451
|
-
this.nodes.image.hide();
|
|
452
|
-
this.nodes.image_stripe.hide();
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
/**
|
|
456
|
-
* {Font size}
|
|
457
|
-
* Specifies the font size of text. The equivalent of CSS attribute `fontSize`.
|
|
458
|
-
* @param value The value to assign. Leave `null` to retrieve the attribute's value.
|
|
459
|
-
* @returns Returns the `VElement` object. Unless parameter `value` is `null`, then the attribute's value is returned.
|
|
460
|
-
* @docs
|
|
461
|
-
*/
|
|
462
|
-
font_size(value) {
|
|
463
|
-
if (value == null) {
|
|
464
|
-
return super.font_size();
|
|
465
|
-
}
|
|
466
|
-
super.font_size(value);
|
|
467
|
-
this.nodes.loader.square(value * (20 / 14)).update();
|
|
468
|
-
return this;
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* Specify the text color when hovering this node.
|
|
472
|
-
* @note This method has no effect if called once already hovering.
|
|
473
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
474
|
-
* @returns Returns the current hover text color when no value is provided, otherwise returns the instance of the element for chaining.
|
|
475
|
-
* @docs
|
|
476
|
-
*/
|
|
477
|
-
hover_color(value) {
|
|
478
|
-
if (value == null) {
|
|
479
|
-
return this._hover_color ?? "";
|
|
480
|
-
}
|
|
481
|
-
this._hover_color = value;
|
|
482
|
-
return this;
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* Specify the background color when hovering this node.
|
|
486
|
-
* @note This method has no effect if called once already hovering.
|
|
487
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
488
|
-
* @returns Returns the current hover background when no value is provided, otherwise returns the instance of the element for chaining.
|
|
489
|
-
* @docs
|
|
490
|
-
*/
|
|
491
|
-
hover_background(value) {
|
|
492
|
-
if (value == null) {
|
|
493
|
-
return this._hover_background ?? "";
|
|
494
|
-
}
|
|
495
|
-
this._hover_background = value;
|
|
496
|
-
return this;
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
* Specify the opacity of the background color when hovering this node.
|
|
500
|
-
* The opacity is not transitioned and is purely to edit the appearance
|
|
501
|
-
* of the background color while hovering.
|
|
502
|
-
* @param value The value to assign [0...1]. Leave `undefined` to retrieve the attribute's value.
|
|
503
|
-
* @returns Returns the current hover opacity when no value is provided, otherwise returns the instance of the element for chaining.
|
|
504
|
-
* @docs
|
|
505
|
-
*/
|
|
506
|
-
hover_opacity(value) {
|
|
507
|
-
if (value == null) {
|
|
508
|
-
return this.nodes.hover.opacity();
|
|
509
|
-
}
|
|
510
|
-
this.nodes.hover.opacity(value);
|
|
511
|
-
return this;
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* Set or get the text content of the element. If no value is provided, it retrieves the current text content.
|
|
515
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
516
|
-
* @returns Returns the text content when no value is provided, otherwise returns the instance of the element for chaining.
|
|
517
|
-
* @docs
|
|
518
|
-
*/
|
|
519
|
-
text(value) {
|
|
520
|
-
if (value == null) {
|
|
521
|
-
return this.nodes.text.text();
|
|
522
|
-
}
|
|
523
|
-
this.nodes.text.text(value);
|
|
524
|
-
return this;
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Set or get the background color of this node.
|
|
528
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
529
|
-
* @returns Returns the instance for chaining unless parameter `value` is `undefined`, then the attribute's value is returned.
|
|
530
|
-
* @docs
|
|
531
|
-
*/
|
|
532
|
-
background(value) {
|
|
533
|
-
if (value == null) {
|
|
534
|
-
return this.nodes.background.background();
|
|
535
|
-
}
|
|
536
|
-
this.nodes.background.background(value);
|
|
537
|
-
return this;
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Set or get the opacity of the background color of this node.
|
|
541
|
-
* @param value The value to assign [0...1]. Leave `undefined` to retrieve the attribute's value.
|
|
542
|
-
* @returns Returns the instance for chaining unless parameter `value` is `undefined`, then the attribute's value is returned.
|
|
543
|
-
* @docs
|
|
544
|
-
*/
|
|
545
|
-
background_opacity(value) {
|
|
546
|
-
if (value == null) {
|
|
547
|
-
return this.nodes.background.opacity();
|
|
548
|
-
}
|
|
549
|
-
this.nodes.background.opacity(value);
|
|
550
|
-
return this;
|
|
551
|
-
}
|
|
552
|
-
/**
|
|
553
|
-
* Assigns the color of text, also supports a `GradientType` element.
|
|
554
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
555
|
-
* @returns Returns the instance for chaining unless parameter `value` is `undefined`, then the attribute's value is returned.
|
|
556
|
-
* @docs
|
|
557
|
-
*/
|
|
558
|
-
color(value) {
|
|
559
|
-
if (value == null) {
|
|
560
|
-
return super.color();
|
|
561
|
-
}
|
|
562
|
-
super.color(value);
|
|
563
|
-
this.nodes.image.mask_color(value);
|
|
564
|
-
this.nodes.image_stripe.background(value);
|
|
565
|
-
this.nodes.loader.background(value).update();
|
|
566
|
-
return this;
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* Assigns the border color of this node, also supports a `GradientType` element.
|
|
570
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
571
|
-
* @returns Returns the instance for chaining unless parameter `value` is `undefined`, then the attribute's value is returned.
|
|
572
|
-
* @docs
|
|
573
|
-
*/
|
|
574
|
-
// @ts-ignore different signature than base.
|
|
575
|
-
border(width, color) {
|
|
576
|
-
if (width == null || color == null) {
|
|
577
|
-
return this.nodes.border.border();
|
|
578
|
-
}
|
|
579
|
-
this.nodes.border.border(width, color);
|
|
580
|
-
return this;
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* Assigns the border color of this node, also supports a `GradientType` element.
|
|
584
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
585
|
-
* @returns Returns the instance for chaining unless parameter `value` is `undefined`, then the attribute's value is returned.
|
|
586
|
-
* @docs
|
|
587
|
-
*/
|
|
588
|
-
border_color(value) {
|
|
589
|
-
if (value == null) {
|
|
590
|
-
return this.nodes.border.border_color();
|
|
591
|
-
}
|
|
592
|
-
this.nodes.border.border_color(value);
|
|
593
|
-
return this;
|
|
594
|
-
}
|
|
595
|
-
/**
|
|
596
|
-
* Assigns the border color of this node, also supports a `GradientType` element.
|
|
597
|
-
* @param value The value to assign. Leave `undefined` to retrieve the attribute's value.
|
|
598
|
-
* @returns Returns the instance for chaining unless parameter `value` is `undefined`, then the attribute's value is returned.
|
|
599
|
-
* @docs
|
|
600
|
-
*/
|
|
601
|
-
border_width(value) {
|
|
602
|
-
if (value == null) {
|
|
603
|
-
return this.nodes.border.border_width();
|
|
604
|
-
}
|
|
605
|
-
this.nodes.border.border_width(value);
|
|
606
|
-
return this;
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* A shorthand property for the four border-radius properties. The equivalent of CSS attribute `borderRadius`.
|
|
610
|
-
* @returns The current instance for chaining.
|
|
611
|
-
* @docs
|
|
612
|
-
*/
|
|
613
|
-
border_radius(value) {
|
|
614
|
-
if (value == null) {
|
|
615
|
-
return super.border_radius();
|
|
616
|
-
}
|
|
617
|
-
super.border_radius(value);
|
|
618
|
-
this.nodes.border.border_radius(value);
|
|
619
|
-
this.nodes.background.border_radius(value);
|
|
620
|
-
this.nodes.hover.border_radius(value);
|
|
621
|
-
return this;
|
|
622
|
-
}
|
|
623
|
-
/**
|
|
624
|
-
* Show the loader, disabling the button and adding an opacity of 0.75 by default.
|
|
625
|
-
* @param opacity The opacity to apply to the button while the loader is shown, this is to indicate the button is disabled.
|
|
626
|
-
* @param min_wait The minimum amount of time in milliseconds to show the loader, this is to improve user experience by ensuring the loader is visible for a minimum duration.
|
|
627
|
-
* @returns The current instance for chaining.
|
|
628
|
-
* @docs
|
|
629
|
-
*/
|
|
630
|
-
show_loader({ opacity = 0.75, min_wait = 500 } = {}) {
|
|
631
|
-
this._min_wait = min_wait ? new Promise(resolve => setTimeout(resolve, min_wait)) : undefined;
|
|
632
|
-
this.disable().opacity(opacity).cursor("auto");
|
|
633
|
-
this.nodes.loader.show();
|
|
634
|
-
this.nodes.text.hide();
|
|
635
|
-
this.nodes.image.hide();
|
|
636
|
-
this.getBoundingClientRect();
|
|
637
|
-
return this;
|
|
638
|
-
}
|
|
639
|
-
/**
|
|
640
|
-
* Hide the loader, restoring the button to its normal state.
|
|
641
|
-
* By default it awaits the `min_wait` duration assigned in {@link show_loader}, before hiding the loader.
|
|
642
|
-
* This is to ensure the loader is visible for a minimum amount of time, improving user experience.
|
|
643
|
-
* @returns The current instance for chaining.
|
|
644
|
-
* @docs
|
|
645
|
-
*/
|
|
646
|
-
async hide_loader() {
|
|
647
|
-
if (this._min_wait) {
|
|
648
|
-
await this._min_wait;
|
|
649
|
-
}
|
|
650
|
-
this.enable().opacity(1).cursor("pointer");
|
|
651
|
-
this.nodes.loader.hide();
|
|
652
|
-
this.nodes.text.show();
|
|
653
|
-
this.nodes.image.show();
|
|
654
|
-
this.getBoundingClientRect();
|
|
655
|
-
return this;
|
|
656
|
-
}
|
|
657
|
-
/**
|
|
658
|
-
* Hide the loader, restoring the button to its normal state.
|
|
659
|
-
* @note This does not await the `min_wait` duration assigned in {@link show_loader}, before hiding the loader.
|
|
660
|
-
* @returns The current instance for chaining.
|
|
661
|
-
* @docs
|
|
662
|
-
*/
|
|
663
|
-
hide_loader_sync() {
|
|
664
|
-
this.enable().opacity(1).cursor("pointer");
|
|
665
|
-
this.nodes.loader.hide();
|
|
666
|
-
this.nodes.text.show();
|
|
667
|
-
this.nodes.image.show();
|
|
668
|
-
this.getBoundingClientRect();
|
|
669
|
-
return this;
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
return ExtendedButtonElement = _classThis;
|
|
673
|
-
})();
|
|
674
|
-
export { ExtendedButtonElement };
|
|
675
|
-
export const ExtendedButton = Elements.wrapper(ExtendedButtonElement);
|
|
676
|
-
export const NullExtendedButton = Elements.create_null(ExtendedButtonElement);
|
|
677
|
-
/**
|
|
678
|
-
* Nested types for the {@link ExtendedButtonElement} class.
|
|
679
|
-
*/
|
|
680
|
-
(function (ExtendedButtonElement) {
|
|
681
|
-
;
|
|
682
|
-
})(ExtendedButtonElement || (ExtendedButtonElement = {}));
|