From fc0eb760cd49c3e0c588c0c827399dc8ce5639da Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 27 Feb 2025 20:52:35 +0000 Subject: [PATCH] [skip ci] Publish @wailsio/runtime v3.0.0-alpha.66 --- .../@wailsio/runtime/dist/application.js | 32 + .../desktop/@wailsio/runtime/dist/browser.js | 20 + .../desktop/@wailsio/runtime/dist/callable.js | 144 + .../desktop/@wailsio/runtime/dist/calls.js | 194 ++ .../@wailsio/runtime/dist/cancellable.js | 792 +++++ .../@wailsio/runtime/dist/clipboard.js | 30 + .../@wailsio/runtime/dist/contextmenu.js | 80 + .../desktop/@wailsio/runtime/dist/create.js | 94 + .../desktop/@wailsio/runtime/dist/dialogs.js | 134 + .../desktop/@wailsio/runtime/dist/drag.js | 222 ++ .../@wailsio/runtime/dist/event_types.js | 229 ++ .../desktop/@wailsio/runtime/dist/events.js | 101 + .../desktop/@wailsio/runtime/dist/flags.js | 23 + .../desktop/@wailsio/runtime/dist/index.js | 38 + .../desktop/@wailsio/runtime/dist/listener.js | 44 + .../desktop/@wailsio/runtime/dist/nanoid.js | 38 + .../desktop/@wailsio/runtime/dist/runtime.js | 63 + .../desktop/@wailsio/runtime/dist/screens.js | 38 + .../desktop/@wailsio/runtime/dist/system.js | 116 + .../desktop/@wailsio/runtime/dist/utils.js | 95 + .../desktop/@wailsio/runtime/dist/window.js | 438 +++ .../desktop/@wailsio/runtime/dist/wml.js | 179 ++ .../@wailsio/runtime/docs/assets/hierarchy.js | 1 + .../runtime/docs/assets/highlight.css | 42 + .../@wailsio/runtime/docs/assets/icons.js | 31 +- .../@wailsio/runtime/docs/assets/icons.svg | 2 +- .../@wailsio/runtime/docs/assets/main.js | 9 +- .../runtime/docs/assets/navigation.js | 2 +- .../@wailsio/runtime/docs/assets/search.js | 2 +- .../@wailsio/runtime/docs/assets/style.css | 2800 +++++++++-------- .../docs/classes/Call.RuntimeError.html | 20 +- .../runtime/docs/classes/CancelError.html | 13 + .../docs/classes/CancellablePromise.html | 263 ++ .../docs/classes/CancelledRejectionError.html | 21 + .../docs/classes/Events.WailsEvent.html | 14 +- .../docs/classes/_internal_.Window.html | 134 + .../docs/functions/Application.Hide.html | 4 +- .../docs/functions/Application.Quit.html | 4 +- .../docs/functions/Application.Show.html | 4 +- .../docs/functions/Browser.OpenURL.html | 6 +- .../runtime/docs/functions/Call.ByID.html | 10 +- .../runtime/docs/functions/Call.ByName.html | 10 +- .../runtime/docs/functions/Call.Call.html | 10 +- .../docs/functions/Clipboard.SetText.html | 8 +- .../docs/functions/Clipboard.Text.html | 6 +- .../runtime/docs/functions/Create.Any.html | 2 - .../runtime/docs/functions/Create.Array.html | 4 - .../docs/functions/Create.ByteSlice.html | 3 - .../runtime/docs/functions/Create.Map.html | 4 - .../docs/functions/Create.Nullable.html | 3 - .../runtime/docs/functions/Create.Struct.html | 3 - .../runtime/docs/functions/Dialogs.Error.html | 9 +- .../runtime/docs/functions/Dialogs.Info.html | 9 +- .../docs/functions/Dialogs.OpenFile.html | 13 +- .../docs/functions/Dialogs.Question.html | 9 +- .../docs/functions/Dialogs.SaveFile.html | 7 +- .../docs/functions/Dialogs.Warning.html | 9 +- .../runtime/docs/functions/Events.Emit.html | 8 +- .../runtime/docs/functions/Events.Off.html | 7 +- .../runtime/docs/functions/Events.OffAll.html | 5 +- .../runtime/docs/functions/Events.On.html | 12 +- .../docs/functions/Events.OnMultiple.html | 10 +- .../runtime/docs/functions/Events.Once.html | 12 +- .../runtime/docs/functions/Events.setup.html | 1 - .../runtime/docs/functions/Flags.GetFlag.html | 10 +- .../docs/functions/Screens.GetAll.html | 6 +- .../docs/functions/Screens.GetCurrent.html | 6 +- .../docs/functions/Screens.GetPrimary.html | 6 +- .../docs/functions/System.Capabilities.html | 7 +- .../docs/functions/System.Environment.html | 8 +- .../docs/functions/System.IsAMD64.html | 4 +- .../runtime/docs/functions/System.IsARM.html | 4 +- .../docs/functions/System.IsARM64.html | 8 +- .../docs/functions/System.IsDarkMode.html | 8 +- .../docs/functions/System.IsDebug.html | 4 +- .../docs/functions/System.IsLinux.html | 4 +- .../runtime/docs/functions/System.IsMac.html | 4 +- .../docs/functions/System.IsWindows.html | 4 +- .../runtime/docs/functions/System.invoke.html | 2 +- .../runtime/docs/functions/WML.Enable.html | 4 +- .../runtime/docs/functions/WML.Reload.html | 4 +- .../@wailsio/runtime/docs/functions/init.html | 1 - .../@wailsio/runtime/docs/hierarchy.html | 1 + .../desktop/@wailsio/runtime/docs/index.html | 8 +- .../docs/interfaces/Call.CallOptions.html | 7 - .../interfaces/CancellablePromiseLike.html | 3 + .../CancellablePromiseWithResolvers.html | 7 + .../docs/interfaces/Dialogs.Button.html | 14 +- .../docs/interfaces/Dialogs.FileFilter.html | 10 +- .../Dialogs.MessageDialogOptions.html | 18 +- .../Dialogs.OpenFileDialogOptions.html | 66 +- .../Dialogs.SaveFileDialogOptions.html | 68 +- .../runtime/docs/interfaces/Screens.Rect.html | 18 +- .../docs/interfaces/Screens.Screen.html | 50 +- .../runtime/docs/interfaces/Screens.Size.html | 10 +- .../interfaces/System.EnvironmentInfo.html | 22 +- .../docs/interfaces/System.OSInfo.html | 18 +- .../_internal_.AddEventListenerOptions.html | 5 + .../_internal_.ArrayBufferView.html | 7 + .../docs/interfaces/_internal_.Blob.html | 17 + .../_internal_.BlobPropertyBag.html | 3 + .../interfaces/_internal_.ErrorOptions.html | 2 + .../docs/interfaces/_internal_.Event.html | 57 + .../docs/interfaces/_internal_.EventInit.html | 4 + .../interfaces/_internal_.EventListener.html | 1 + .../_internal_.EventListenerObject.html | 2 + .../_internal_.EventListenerOptions.html | 2 + .../interfaces/_internal_.EventTarget.html | 18 + .../docs/interfaces/_internal_.Iterable.html | 2 + .../interfaces/_internal_.MediaSource.html | 49 + .../_internal_.MediaSourceEventMap.html | 4 + .../docs/interfaces/_internal_.Position.html | 6 + .../_internal_.PromiseFulfilledResult.html | 3 + .../interfaces/_internal_.PromiseLike.html | 6 + .../_internal_.PromiseRejectedResult.html | 3 + .../_internal_.PromiseWithResolvers.html | 4 + .../_internal_.QueuingStrategy.html | 3 + .../_internal_.QueuingStrategySize.html | 1 + ...nternal_.ReadableByteStreamController.html | 12 + .../interfaces/_internal_.ReadableStream.html | 15 + .../_internal_.ReadableStreamBYOBReader.html | 10 + .../_internal_.ReadableStreamBYOBRequest.html | 8 + ...rnal_.ReadableStreamDefaultController.html | 10 + ...internal_.ReadableStreamDefaultReader.html | 10 + ...internal_.ReadableStreamGenericReader.html | 5 + ...ernal_.ReadableStreamGetReaderOptions.html | 4 + ...nternal_.ReadableStreamReadDoneResult.html | 3 + ...ternal_.ReadableStreamReadValueResult.html | 3 + .../_internal_.ReadableWritablePair.html | 5 + .../docs/interfaces/_internal_.Size.html | 6 + .../interfaces/_internal_.SourceBuffer.html | 53 + .../_internal_.SourceBufferEventMap.html | 6 + .../_internal_.StreamPipeOptions.html | 13 + .../interfaces/_internal_.TimeRanges.html | 14 + .../docs/interfaces/_internal_.URL.html | 30 + .../_internal_.UnderlyingByteSource.html | 6 + .../_internal_.UnderlyingDefaultSource.html | 5 + .../interfaces/_internal_.UnderlyingSink.html | 6 + ...internal_.UnderlyingSinkAbortCallback.html | 1 + ...internal_.UnderlyingSinkCloseCallback.html | 1 + ...internal_.UnderlyingSinkStartCallback.html | 1 + ...internal_.UnderlyingSinkWriteCallback.html | 1 + .../_internal_.UnderlyingSource.html | 6 + ...ernal_.UnderlyingSourceCancelCallback.html | 1 + ...nternal_.UnderlyingSourcePullCallback.html | 1 + ...ternal_.UnderlyingSourceStartCallback.html | 1 + .../interfaces/_internal_.WritableStream.html | 11 + ...rnal_.WritableStreamDefaultController.html | 7 + ...internal_.WritableStreamDefaultWriter.html | 17 + .../@wailsio/runtime/docs/modules.html | 15 +- .../runtime/docs/modules/Application.html | 5 +- .../runtime/docs/modules/Browser.html | 3 +- .../@wailsio/runtime/docs/modules/Call.html | 7 +- .../runtime/docs/modules/Clipboard.html | 4 +- .../@wailsio/runtime/docs/modules/Create.html | 7 - .../runtime/docs/modules/Dialogs.html | 13 +- .../@wailsio/runtime/docs/modules/Events.html | 11 +- .../@wailsio/runtime/docs/modules/Flags.html | 3 +- .../runtime/docs/modules/Screens.html | 8 +- .../@wailsio/runtime/docs/modules/System.html | 15 +- .../@wailsio/runtime/docs/modules/WML.html | 4 +- .../runtime/docs/modules/_internal_.html | 1 + .../runtime/docs/types/Call.CallOptions.html | 9 + .../runtime/docs/types/Events.Callback.html | 2 + .../docs/types/_internal_.AppendMode.html | 1 + .../types/_internal_.ArrayBufferLike.html | 1 + .../docs/types/_internal_.Awaited.html | 2 + .../docs/types/_internal_.BlobPart.html | 1 + .../docs/types/_internal_.BufferSource.html | 1 + ...internal_.CancellablePromiseCanceller.html | 1 + ..._internal_.CancellablePromiseExecutor.html | 1 + ..._internal_.CancellablePromiseRejector.html | 1 + ..._internal_.CancellablePromiseResolver.html | 1 + .../types/_internal_.EndOfStreamError.html | 1 + .../docs/types/_internal_.EndingType.html | 1 + ...l_.EventListenerOrEventListenerObject.html | 1 + .../docs/types/_internal_.Partial.html | 2 + .../_internal_.PromiseSettledResult.html | 1 + .../_internal_.ReadableStreamController.html | 1 + .../_internal_.ReadableStreamReadResult.html | 1 + .../_internal_.ReadableStreamReader.html | 1 + .../docs/types/_internal_.Readonly.html | 2 + .../docs/types/_internal_.ReadyState.html | 1 + .../runtime/docs/types/_internal_.Record.html | 2 + .../runtime/docs/variables/Events.Types.html | 2 +- .../runtime/docs/variables/Window.html | 4 +- .../docs/variables/_internal_.Blob-1.html | 1 + .../docs/variables/_internal_.Event-1.html | 1 + .../variables/_internal_.EventTarget-1.html | 1 + .../variables/_internal_.MediaSource-1.html | 3 + ...ernal_.ReadableByteStreamController-1.html | 1 + .../_internal_.ReadableStream-1.html | 1 + ..._internal_.ReadableStreamBYOBReader-1.html | 1 + ...internal_.ReadableStreamBYOBRequest-1.html | 1 + ...al_.ReadableStreamDefaultController-1.html | 1 + ...ternal_.ReadableStreamDefaultReader-1.html | 1 + .../variables/_internal_.SourceBuffer-1.html | 1 + .../variables/_internal_.TimeRanges-1.html | 1 + .../docs/variables/_internal_.URL-1.html | 5 + .../_internal_.WritableStream-1.html | 1 + ...al_.WritableStreamDefaultController-1.html | 1 + ...ternal_.WritableStreamDefaultWriter-1.html | 1 + .../@wailsio/runtime/package-lock.json | 4 +- .../desktop/@wailsio/runtime/package.json | 2 +- .../@wailsio/runtime/types/application.d.ts | 13 +- .../@wailsio/runtime/types/browser.d.ts | 8 +- .../@wailsio/runtime/types/callable.d.ts | 3 + .../desktop/@wailsio/runtime/types/calls.d.ts | 92 +- .../@wailsio/runtime/types/cancellable.d.ts | 434 +++ .../@wailsio/runtime/types/clipboard.d.ts | 11 +- .../@wailsio/runtime/types/create.d.ts | 33 +- .../@wailsio/runtime/types/dialogs.d.ts | 242 +- .../@wailsio/runtime/types/event_types.d.ts | 437 ++- .../@wailsio/runtime/types/events.d.ts | 295 +- .../desktop/@wailsio/runtime/types/flags.d.ts | 6 +- .../desktop/@wailsio/runtime/types/index.d.ts | 30 +- .../@wailsio/runtime/types/listener.d.ts | 9 + .../@wailsio/runtime/types/nanoid.d.ts | 2 +- .../@wailsio/runtime/types/runtime.d.ts | 44 +- .../@wailsio/runtime/types/screens.d.ts | 134 +- .../@wailsio/runtime/types/system.d.ts | 129 +- .../desktop/@wailsio/runtime/types/utils.d.ts | 23 +- .../@wailsio/runtime/types/window.d.ts | 335 +- .../desktop/@wailsio/runtime/types/wml.d.ts | 8 +- 224 files changed, 7127 insertions(+), 2901 deletions(-) create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/application.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/browser.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/callable.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/calls.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/cancellable.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/clipboard.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/contextmenu.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/create.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/dialogs.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/drag.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/event_types.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/events.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/flags.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/index.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/listener.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/nanoid.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/runtime.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/screens.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/system.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/utils.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/window.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/dist/wml.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/hierarchy.js create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelError.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancellablePromise.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelledRejectionError.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/_internal_.Window.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Any.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Array.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.ByteSlice.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Map.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Nullable.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Struct.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.setup.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/init.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/hierarchy.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Call.CallOptions.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseLike.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseWithResolvers.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.AddEventListenerOptions.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ArrayBufferView.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Blob.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.BlobPropertyBag.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ErrorOptions.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Event.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventInit.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListener.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerObject.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerOptions.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventTarget.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Iterable.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSource.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSourceEventMap.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Position.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseFulfilledResult.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseLike.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseRejectedResult.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseWithResolvers.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategy.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategySize.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableByteStreamController.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStream.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBReader.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBRequest.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultController.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultReader.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGenericReader.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGetReaderOptions.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadDoneResult.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadValueResult.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableWritablePair.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Size.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBuffer.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBufferEventMap.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.StreamPipeOptions.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.TimeRanges.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.URL.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingByteSource.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingDefaultSource.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSink.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkAbortCallback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkCloseCallback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkStartCallback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkWriteCallback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSource.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceCancelCallback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourcePullCallback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceStartCallback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStream.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultController.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultWriter.html delete mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Create.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/_internal_.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Call.CallOptions.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Events.Callback.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.AppendMode.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ArrayBufferLike.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Awaited.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BlobPart.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BufferSource.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseCanceller.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseExecutor.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseRejector.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseResolver.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndOfStreamError.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndingType.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EventListenerOrEventListenerObject.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Partial.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.PromiseSettledResult.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamController.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReadResult.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReader.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Readonly.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadyState.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Record.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Blob-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Event-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.EventTarget-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.MediaSource-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableByteStreamController-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStream-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBReader-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBRequest-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultController-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultReader-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.SourceBuffer-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.TimeRanges-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.URL-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStream-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultController-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultWriter-1.html create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/types/callable.d.ts create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/types/cancellable.d.ts create mode 100644 v3/internal/runtime/desktop/@wailsio/runtime/types/listener.d.ts diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/application.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/application.js new file mode 100644 index 000000000..a017d4aa4 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/application.js @@ -0,0 +1,32 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +const call = newRuntimeCaller(objectNames.Application); +const HideMethod = 0; +const ShowMethod = 1; +const QuitMethod = 2; +/** + * Hides a certain method by calling the HideMethod function. + */ +export function Hide() { + return call(HideMethod); +} +/** + * Calls the ShowMethod and returns the result. + */ +export function Show() { + return call(ShowMethod); +} +/** + * Calls the QuitMethod to terminate the program. + */ +export function Quit() { + return call(QuitMethod); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/browser.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/browser.js new file mode 100644 index 000000000..633989016 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/browser.js @@ -0,0 +1,20 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +const call = newRuntimeCaller(objectNames.Browser); +const BrowserOpenURL = 0; +/** + * Open a browser window to the given URL. + * + * @param url - The URL to open + */ +export function OpenURL(url) { + return call(BrowserOpenURL, { url: url.toString() }); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/callable.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/callable.js new file mode 100644 index 000000000..c38273532 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/callable.js @@ -0,0 +1,144 @@ +// Source: https://github.com/inspect-js/is-callable +// The MIT License (MIT) +// +// Copyright (c) 2015 Jordan Harband +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +var fnToStr = Function.prototype.toString; +var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply; +var badArrayLike; +var isCallableMarker; +if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') { + try { + badArrayLike = Object.defineProperty({}, 'length', { + get: function () { + throw isCallableMarker; + } + }); + isCallableMarker = {}; + // eslint-disable-next-line no-throw-literal + reflectApply(function () { throw 42; }, null, badArrayLike); + } + catch (_) { + if (_ !== isCallableMarker) { + reflectApply = null; + } + } +} +else { + reflectApply = null; +} +var constructorRegex = /^\s*class\b/; +var isES6ClassFn = function isES6ClassFunction(value) { + try { + var fnStr = fnToStr.call(value); + return constructorRegex.test(fnStr); + } + catch (e) { + return false; // not a function + } +}; +var tryFunctionObject = function tryFunctionToStr(value) { + try { + if (isES6ClassFn(value)) { + return false; + } + fnToStr.call(value); + return true; + } + catch (e) { + return false; + } +}; +var toStr = Object.prototype.toString; +var objectClass = '[object Object]'; +var fnClass = '[object Function]'; +var genClass = '[object GeneratorFunction]'; +var ddaClass = '[object HTMLAllCollection]'; // IE 11 +var ddaClass2 = '[object HTML document.all class]'; +var ddaClass3 = '[object HTMLCollection]'; // IE 9-10 +var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag` +var isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing +var isDDA = function isDocumentDotAll() { return false; }; +if (typeof document === 'object') { + // Firefox 3 canonicalizes DDA to undefined when it's not accessed directly + var all = document.all; + if (toStr.call(all) === toStr.call(document.all)) { + isDDA = function isDocumentDotAll(value) { + /* globals document: false */ + // in IE 6-8, typeof document.all is "object" and it's truthy + if ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) { + try { + var str = toStr.call(value); + return (str === ddaClass + || str === ddaClass2 + || str === ddaClass3 // opera 12.16 + || str === objectClass // IE 6-8 + ) && value('') == null; // eslint-disable-line eqeqeq + } + catch (e) { /**/ } + } + return false; + }; + } +} +function isCallableRefApply(value) { + if (isDDA(value)) { + return true; + } + if (!value) { + return false; + } + if (typeof value !== 'function' && typeof value !== 'object') { + return false; + } + try { + reflectApply(value, null, badArrayLike); + } + catch (e) { + if (e !== isCallableMarker) { + return false; + } + } + return !isES6ClassFn(value) && tryFunctionObject(value); +} +function isCallableNoRefApply(value) { + if (isDDA(value)) { + return true; + } + if (!value) { + return false; + } + if (typeof value !== 'function' && typeof value !== 'object') { + return false; + } + if (hasToStringTag) { + return tryFunctionObject(value); + } + if (isES6ClassFn(value)) { + return false; + } + var strClass = toStr.call(value); + if (strClass !== fnClass && strClass !== genClass && !(/^\[object HTML/).test(strClass)) { + return false; + } + return tryFunctionObject(value); +} +; +export default reflectApply ? isCallableRefApply : isCallableNoRefApply; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/calls.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/calls.js new file mode 100644 index 000000000..a6777fa42 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/calls.js @@ -0,0 +1,194 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { CancellablePromise } from "./cancellable.js"; +import { newRuntimeCaller, objectNames } from "./runtime.js"; +import { nanoid } from "./nanoid.js"; +// Setup +window._wails = window._wails || {}; +window._wails.callResultHandler = resultHandler; +window._wails.callErrorHandler = errorHandler; +const call = newRuntimeCaller(objectNames.Call); +const cancelCall = newRuntimeCaller(objectNames.CancelCall); +const callResponses = new Map(); +const CallBinding = 0; +const CancelMethod = 0; +/** + * Exception class that will be thrown in case the bound method returns an error. + * The value of the {@link RuntimeError#name} property is "RuntimeError". + */ +export class RuntimeError extends Error { + /** + * Constructs a new RuntimeError instance. + * @param message - The error message. + * @param options - Options to be forwarded to the Error constructor. + */ + constructor(message, options) { + super(message, options); + this.name = "RuntimeError"; + } +} +/** + * Handles the result of a call request. + * + * @param id - The id of the request to handle the result for. + * @param data - The result data of the request. + * @param isJSON - Indicates whether the data is JSON or not. + */ +function resultHandler(id, data, isJSON) { + const resolvers = getAndDeleteResponse(id); + if (!resolvers) { + return; + } + if (!data) { + resolvers.resolve(undefined); + } + else if (!isJSON) { + resolvers.resolve(data); + } + else { + try { + resolvers.resolve(JSON.parse(data)); + } + catch (err) { + resolvers.reject(new TypeError("could not parse result: " + err.message, { cause: err })); + } + } +} +/** + * Handles the error from a call request. + * + * @param id - The id of the promise handler. + * @param data - The error data to reject the promise handler with. + * @param isJSON - Indicates whether the data is JSON or not. + */ +function errorHandler(id, data, isJSON) { + const resolvers = getAndDeleteResponse(id); + if (!resolvers) { + return; + } + if (!isJSON) { + resolvers.reject(new Error(data)); + } + else { + let error; + try { + error = JSON.parse(data); + } + catch (err) { + resolvers.reject(new TypeError("could not parse error: " + err.message, { cause: err })); + return; + } + let options = {}; + if (error.cause) { + options.cause = error.cause; + } + let exception; + switch (error.kind) { + case "ReferenceError": + exception = new ReferenceError(error.message, options); + break; + case "TypeError": + exception = new TypeError(error.message, options); + break; + case "RuntimeError": + exception = new RuntimeError(error.message, options); + break; + default: + exception = new Error(error.message, options); + break; + } + resolvers.reject(exception); + } +} +/** + * Retrieves and removes the response associated with the given ID from the callResponses map. + * + * @param id - The ID of the response to be retrieved and removed. + * @returns The response object associated with the given ID, if any. + */ +function getAndDeleteResponse(id) { + const response = callResponses.get(id); + callResponses.delete(id); + return response; +} +/** + * Generates a unique ID using the nanoid library. + * + * @returns A unique ID that does not exist in the callResponses set. + */ +function generateID() { + let result; + do { + result = nanoid(); + } while (callResponses.has(result)); + return result; +} +/** + * Call a bound method according to the given call options. + * + * In case of failure, the returned promise will reject with an exception + * among ReferenceError (unknown method), TypeError (wrong argument count or type), + * {@link RuntimeError} (method returned an error), or other (network or internal errors). + * The exception might have a "cause" field with the value returned + * by the application- or service-level error marshaling functions. + * + * @param options - A method call descriptor. + * @returns The result of the call. + */ +export function Call(options) { + const id = generateID(); + const result = CancellablePromise.withResolvers(); + callResponses.set(id, { resolve: result.resolve, reject: result.reject }); + const request = call(CallBinding, Object.assign({ "call-id": id }, options)); + let running = false; + request.then(() => { + running = true; + }, (err) => { + callResponses.delete(id); + result.reject(err); + }); + const cancel = () => { + callResponses.delete(id); + return cancelCall(CancelMethod, { "call-id": id }).catch((err) => { + console.error("Error while requesting binding call cancellation:", err); + }); + }; + result.oncancelled = () => { + if (running) { + return cancel(); + } + else { + return request.then(cancel); + } + }; + return result.promise; +} +/** + * Calls a bound method by name with the specified arguments. + * See {@link Call} for details. + * + * @param methodName - The name of the method in the format 'package.struct.method'. + * @param args - The arguments to pass to the method. + * @returns The result of the method call. + */ +export function ByName(methodName, ...args) { + return Call({ methodName, args }); +} +/** + * Calls a method by its numeric ID with the specified arguments. + * See {@link Call} for details. + * + * @param methodID - The ID of the method to call. + * @param args - The arguments to pass to the method. + * @return The result of the method call. + */ +export function ByID(methodID, ...args) { + return Call({ methodID, args }); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/cancellable.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/cancellable.js new file mode 100644 index 000000000..834cb9412 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/cancellable.js @@ -0,0 +1,792 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +var _a; +import isCallable from "./callable.js"; +/** + * Exception class that will be used as rejection reason + * in case a {@link CancellablePromise} is cancelled successfully. + * + * The value of the {@link name} property is the string `"CancelError"`. + * The value of the {@link cause} property is the cause passed to the cancel method, if any. + */ +export class CancelError extends Error { + /** + * Constructs a new `CancelError` instance. + * @param message - The error message. + * @param options - Options to be forwarded to the Error constructor. + */ + constructor(message, options) { + super(message, options); + this.name = "CancelError"; + } +} +/** + * Exception class that will be reported as an unhandled rejection + * in case a {@link CancellablePromise} rejects after being cancelled, + * or when the `oncancelled` callback throws or rejects. + * + * The value of the {@link name} property is the string `"CancelledRejectionError"`. + * The value of the {@link cause} property is the reason the promise rejected with. + * + * Because the original promise was cancelled, + * a wrapper promise will be passed to the unhandled rejection listener instead. + * The {@link promise} property holds a reference to the original promise. + */ +export class CancelledRejectionError extends Error { + /** + * Constructs a new `CancelledRejectionError` instance. + * @param promise - The promise that caused the error originally. + * @param reason - The rejection reason. + * @param info - An optional informative message specifying the circumstances in which the error was thrown. + * Defaults to the string `"Unhandled rejection in cancelled promise."`. + */ + constructor(promise, reason, info) { + super((info !== null && info !== void 0 ? info : "Unhandled rejection in cancelled promise.") + " Reason: " + errorMessage(reason), { cause: reason }); + this.promise = promise; + this.name = "CancelledRejectionError"; + } +} +// Private field names. +const barrierSym = Symbol("barrier"); +const cancelImplSym = Symbol("cancelImpl"); +const species = (_a = Symbol.species) !== null && _a !== void 0 ? _a : Symbol("speciesPolyfill"); +/** + * A promise with an attached method for cancelling long-running operations (see {@link CancellablePromise#cancel}). + * Cancellation can optionally be bound to an {@link AbortSignal} + * for better composability (see {@link CancellablePromise#cancelOn}). + * + * Cancelling a pending promise will result in an immediate rejection + * with an instance of {@link CancelError} as reason, + * but whoever started the promise will be responsible + * for actually aborting the underlying operation. + * To this purpose, the constructor and all chaining methods + * accept optional cancellation callbacks. + * + * If a `CancellablePromise` still resolves after having been cancelled, + * the result will be discarded. If it rejects, the reason + * will be reported as an unhandled rejection, + * wrapped in a {@link CancelledRejectionError} instance. + * To facilitate the handling of cancellation requests, + * cancelled `CancellablePromise`s will _not_ report unhandled `CancelError`s + * whose `cause` field is the same as the one with which the current promise was cancelled. + * + * All usual promise methods are defined and return a `CancellablePromise` + * whose cancel method will cancel the parent operation as well, propagating the cancellation reason + * upwards through promise chains. + * Conversely, cancelling a promise will not automatically cancel dependent promises downstream: + * ```ts + * let root = new CancellablePromise((resolve, reject) => { ... }); + * let child1 = root.then(() => { ... }); + * let child2 = child1.then(() => { ... }); + * let child3 = root.catch(() => { ... }); + * child1.cancel(); // Cancels child1 and root, but not child2 or child3 + * ``` + * Cancelling a promise that has already settled is safe and has no consequence. + * + * The `cancel` method returns a promise that _always fulfills_ + * after the whole chain has processed the cancel request + * and all attached callbacks up to that moment have run. + * + * All ES2024 promise methods (static and instance) are defined on CancellablePromise, + * but actual availability may vary with OS/webview version. + * + * In line with the proposal at https://github.com/tc39/proposal-rm-builtin-subclassing, + * `CancellablePromise` does not support transparent subclassing. + * Extenders should take care to provide their own method implementations. + * This might be reconsidered in case the proposal is retired. + * + * CancellablePromise is a wrapper around the DOM Promise object + * and is compliant with the [Promises/A+ specification](https://promisesaplus.com/) + * (it passes the [compliance suite](https://github.com/promises-aplus/promises-tests)) + * if so is the underlying implementation. + */ +export class CancellablePromise extends Promise { + /** + * Creates a new `CancellablePromise`. + * + * @param executor - A callback used to initialize the promise. This callback is passed two arguments: + * a `resolve` callback used to resolve the promise with a value + * or the result of another promise (possibly cancellable), + * and a `reject` callback used to reject the promise with a provided reason or error. + * If the value provided to the `resolve` callback is a thenable _and_ cancellable object + * (it has a `then` _and_ a `cancel` method), + * cancellation requests will be forwarded to that object and the oncancelled will not be invoked anymore. + * If any one of the two callbacks is called _after_ the promise has been cancelled, + * the provided values will be cancelled and resolved as usual, + * but their results will be discarded. + * However, if the resolution process ultimately ends up in a rejection + * that is not due to cancellation, the rejection reason + * will be wrapped in a {@link CancelledRejectionError} + * and bubbled up as an unhandled rejection. + * @param oncancelled - It is the caller's responsibility to ensure that any operation + * started by the executor is properly halted upon cancellation. + * This optional callback can be used to that purpose. + * It will be called _synchronously_ with a cancellation cause + * when cancellation is requested, _after_ the promise has already rejected + * with a {@link CancelError}, but _before_ + * any {@link then}/{@link catch}/{@link finally} callback runs. + * If the callback returns a thenable, the promise returned from {@link cancel} + * will only fulfill after the former has settled. + * Unhandled exceptions or rejections from the callback will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as unhandled rejections. + * If the `resolve` callback is called before cancellation with a cancellable promise, + * cancellation requests on this promise will be diverted to that promise, + * and the original `oncancelled` callback will be discarded. + */ + constructor(executor, oncancelled) { + let resolve; + let reject; + super((res, rej) => { resolve = res; reject = rej; }); + if (this.constructor[species] !== Promise) { + throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property."); + } + let promise = { + promise: this, + resolve, + reject, + get oncancelled() { return oncancelled !== null && oncancelled !== void 0 ? oncancelled : null; }, + set oncancelled(cb) { oncancelled = cb !== null && cb !== void 0 ? cb : undefined; } + }; + const state = { + get root() { return state; }, + resolving: false, + settled: false + }; + // Setup cancellation system. + void Object.defineProperties(this, { + [barrierSym]: { + configurable: false, + enumerable: false, + writable: true, + value: null + }, + [cancelImplSym]: { + configurable: false, + enumerable: false, + writable: false, + value: cancellerFor(promise, state) + } + }); + // Run the actual executor. + const rejector = rejectorFor(promise, state); + try { + executor(resolverFor(promise, state), rejector); + } + catch (err) { + if (state.resolving) { + console.log("Unhandled exception in CancellablePromise executor.", err); + } + else { + rejector(err); + } + } + } + /** + * Cancels immediately the execution of the operation associated with this promise. + * The promise rejects with a {@link CancelError} instance as reason, + * with the {@link CancelError#cause} property set to the given argument, if any. + * + * Has no effect if called after the promise has already settled; + * repeated calls in particular are safe, but only the first one + * will set the cancellation cause. + * + * The `CancelError` exception _need not_ be handled explicitly _on the promises that are being cancelled:_ + * cancelling a promise with no attached rejection handler does not trigger an unhandled rejection event. + * Therefore, the following idioms are all equally correct: + * ```ts + * new CancellablePromise((resolve, reject) => { ... }).cancel(); + * new CancellablePromise((resolve, reject) => { ... }).then(...).cancel(); + * new CancellablePromise((resolve, reject) => { ... }).then(...).catch(...).cancel(); + * ``` + * Whenever some cancelled promise in a chain rejects with a `CancelError` + * with the same cancellation cause as itself, the error will be discarded silently. + * However, the `CancelError` _will still be delivered_ to all attached rejection handlers + * added by {@link then} and related methods: + * ```ts + * let cancellable = new CancellablePromise((resolve, reject) => { ... }); + * cancellable.then(() => { ... }).catch(console.log); + * cancellable.cancel(); // A CancelError is printed to the console. + * ``` + * If the `CancelError` is not handled downstream by the time it reaches + * a _non-cancelled_ promise, it _will_ trigger an unhandled rejection event, + * just like normal rejections would: + * ```ts + * let cancellable = new CancellablePromise((resolve, reject) => { ... }); + * let chained = cancellable.then(() => { ... }).then(() => { ... }); // No catch... + * cancellable.cancel(); // Unhandled rejection event on chained! + * ``` + * Therefore, it is important to either cancel whole promise chains from their tail, + * as shown in the correct idioms above, or take care of handling errors everywhere. + * + * @returns A cancellable promise that _fulfills_ after the cancel callback (if any) + * and all handlers attached up to the call to cancel have run. + * If the cancel callback returns a thenable, the promise returned by `cancel` + * will also wait for that thenable to settle. + * This enables callers to wait for the cancelled operation to terminate + * without being forced to handle potential errors at the call site. + * ```ts + * cancellable.cancel().then(() => { + * // Cleanup finished, it's safe to do something else. + * }, (err) => { + * // Unreachable: the promise returned from cancel will never reject. + * }); + * ``` + * Note that the returned promise will _not_ handle implicitly any rejection + * that might have occurred already in the cancelled chain. + * It will just track whether registered handlers have been executed or not. + * Therefore, unhandled rejections will never be silently handled by calling cancel. + */ + cancel(cause) { + return new CancellablePromise((resolve) => { + // INVARIANT: the result of this[cancelImplSym] and the barrier do not ever reject. + // Unfortunately macOS High Sierra does not support Promise.allSettled. + Promise.all([ + this[cancelImplSym](new CancelError("Promise cancelled.", { cause })), + currentBarrier(this) + ]).then(() => resolve(), () => resolve()); + }); + } + /** + * Binds promise cancellation to the abort event of the given {@link AbortSignal}. + * If the signal has already aborted, the promise will be cancelled immediately. + * When either condition is verified, the cancellation cause will be set + * to the signal's abort reason (see {@link AbortSignal#reason}). + * + * Has no effect if called (or if the signal aborts) _after_ the promise has already settled. + * Only the first signal to abort will set the cancellation cause. + * + * For more details about the cancellation process, + * see {@link cancel} and the `CancellablePromise` constructor. + * + * This method enables `await`ing cancellable promises without having + * to store them for future cancellation, e.g.: + * ```ts + * await longRunningOperation().cancelOn(signal); + * ``` + * instead of: + * ```ts + * let promiseToBeCancelled = longRunningOperation(); + * await promiseToBeCancelled; + * ``` + * + * @returns This promise, for method chaining. + */ + cancelOn(signal) { + if (signal.aborted) { + void this.cancel(signal.reason); + } + else { + signal.addEventListener('abort', () => void this.cancel(signal.reason), { capture: true }); + } + return this; + } + /** + * Attaches callbacks for the resolution and/or rejection of the `CancellablePromise`. + * + * The optional `oncancelled` argument will be invoked when the returned promise is cancelled, + * with the same semantics as the `oncancelled` argument of the constructor. + * When the parent promise rejects or is cancelled, the `onrejected` callback will run, + * _even after the returned promise has been cancelled:_ + * in that case, should it reject or throw, the reason will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as an unhandled rejection. + * + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A `CancellablePromise` for the completion of whichever callback is executed. + * The returned promise is hooked up to propagate cancellation requests up the chain, but not down: + * + * - if the parent promise is cancelled, the `onrejected` handler will be invoked with a `CancelError` + * and the returned promise _will resolve regularly_ with its result; + * - conversely, if the returned promise is cancelled, _the parent promise is cancelled too;_ + * the `onrejected` handler will still be invoked with the parent's `CancelError`, + * but its result will be discarded + * and the returned promise will reject with a `CancelError` as well. + * + * The promise returned from {@link cancel} will fulfill only after all attached handlers + * up the entire promise chain have been run. + * + * If either callback returns a cancellable promise, + * cancellation requests will be diverted to it, + * and the specified `oncancelled` callback will be discarded. + */ + then(onfulfilled, onrejected, oncancelled) { + if (!(this instanceof CancellablePromise)) { + throw new TypeError("CancellablePromise.prototype.then called on an invalid object."); + } + // NOTE: TypeScript's built-in type for then is broken, + // as it allows specifying an arbitrary TResult1 != T even when onfulfilled is not a function. + // We cannot fix it if we want to CancellablePromise to implement PromiseLike. + if (!isCallable(onfulfilled)) { + onfulfilled = identity; + } + if (!isCallable(onrejected)) { + onrejected = thrower; + } + if (onfulfilled === identity && onrejected == thrower) { + // Shortcut for trivial arguments. + return new CancellablePromise((resolve) => resolve(this)); + } + const barrier = {}; + this[barrierSym] = barrier; + return new CancellablePromise((resolve, reject) => { + void super.then((value) => { + var _a; + if (this[barrierSym] === barrier) { + this[barrierSym] = null; + } + (_a = barrier.resolve) === null || _a === void 0 ? void 0 : _a.call(barrier); + try { + resolve(onfulfilled(value)); + } + catch (err) { + reject(err); + } + }, (reason) => { + var _a; + if (this[barrierSym] === barrier) { + this[barrierSym] = null; + } + (_a = barrier.resolve) === null || _a === void 0 ? void 0 : _a.call(barrier); + try { + resolve(onrejected(reason)); + } + catch (err) { + reject(err); + } + }); + }, async (cause) => { + //cancelled = true; + try { + return oncancelled === null || oncancelled === void 0 ? void 0 : oncancelled(cause); + } + finally { + await this.cancel(cause); + } + }); + } + /** + * Attaches a callback for only the rejection of the Promise. + * + * The optional `oncancelled` argument will be invoked when the returned promise is cancelled, + * with the same semantics as the `oncancelled` argument of the constructor. + * When the parent promise rejects or is cancelled, the `onrejected` callback will run, + * _even after the returned promise has been cancelled:_ + * in that case, should it reject or throw, the reason will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as an unhandled rejection. + * + * It is equivalent to + * ```ts + * cancellablePromise.then(undefined, onrejected, oncancelled); + * ``` + * and the same caveats apply. + * + * @returns A Promise for the completion of the callback. + * Cancellation requests on the returned promise + * will propagate up the chain to the parent promise, + * but not in the other direction. + * + * The promise returned from {@link cancel} will fulfill only after all attached handlers + * up the entire promise chain have been run. + * + * If `onrejected` returns a cancellable promise, + * cancellation requests will be diverted to it, + * and the specified `oncancelled` callback will be discarded. + * See {@link then} for more details. + */ + catch(onrejected, oncancelled) { + return this.then(undefined, onrejected, oncancelled); + } + /** + * Attaches a callback that is invoked when the CancellablePromise is settled (fulfilled or rejected). The + * resolved value cannot be accessed or modified from the callback. + * The returned promise will settle in the same state as the original one + * after the provided callback has completed execution, + * unless the callback throws or returns a rejecting promise, + * in which case the returned promise will reject as well. + * + * The optional `oncancelled` argument will be invoked when the returned promise is cancelled, + * with the same semantics as the `oncancelled` argument of the constructor. + * Once the parent promise settles, the `onfinally` callback will run, + * _even after the returned promise has been cancelled:_ + * in that case, should it reject or throw, the reason will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as an unhandled rejection. + * + * This method is implemented in terms of {@link then} and the same caveats apply. + * It is polyfilled, hence available in every OS/webview version. + * + * @returns A Promise for the completion of the callback. + * Cancellation requests on the returned promise + * will propagate up the chain to the parent promise, + * but not in the other direction. + * + * The promise returned from {@link cancel} will fulfill only after all attached handlers + * up the entire promise chain have been run. + * + * If `onfinally` returns a cancellable promise, + * cancellation requests will be diverted to it, + * and the specified `oncancelled` callback will be discarded. + * See {@link then} for more details. + */ + finally(onfinally, oncancelled) { + if (!(this instanceof CancellablePromise)) { + throw new TypeError("CancellablePromise.prototype.finally called on an invalid object."); + } + if (!isCallable(onfinally)) { + return this.then(onfinally, onfinally, oncancelled); + } + return this.then((value) => CancellablePromise.resolve(onfinally()).then(() => value), (reason) => CancellablePromise.resolve(onfinally()).then(() => { throw reason; }), oncancelled); + } + /** + * We use the `[Symbol.species]` static property, if available, + * to disable the built-in automatic subclassing features from {@link Promise}. + * It is critical for performance reasons that extenders do not override this. + * Once the proposal at https://github.com/tc39/proposal-rm-builtin-subclassing + * is either accepted or retired, this implementation will have to be revised accordingly. + * + * @ignore + * @internal + */ + static get [species]() { + return Promise; + } + static all(values) { + let collected = Array.from(values); + const promise = collected.length === 0 + ? CancellablePromise.resolve(collected) + : new CancellablePromise((resolve, reject) => { + void Promise.all(collected).then(resolve, reject); + }, (cause) => cancelAll(promise, collected, cause)); + return promise; + } + static allSettled(values) { + let collected = Array.from(values); + const promise = collected.length === 0 + ? CancellablePromise.resolve(collected) + : new CancellablePromise((resolve, reject) => { + void Promise.allSettled(collected).then(resolve, reject); + }, (cause) => cancelAll(promise, collected, cause)); + return promise; + } + static any(values) { + let collected = Array.from(values); + const promise = collected.length === 0 + ? CancellablePromise.resolve(collected) + : new CancellablePromise((resolve, reject) => { + void Promise.any(collected).then(resolve, reject); + }, (cause) => cancelAll(promise, collected, cause)); + return promise; + } + static race(values) { + let collected = Array.from(values); + const promise = new CancellablePromise((resolve, reject) => { + void Promise.race(collected).then(resolve, reject); + }, (cause) => cancelAll(promise, collected, cause)); + return promise; + } + /** + * Creates a new cancelled CancellablePromise for the provided cause. + * + * @group Static Methods + */ + static cancel(cause) { + const p = new CancellablePromise(() => { }); + p.cancel(cause); + return p; + } + /** + * Creates a new CancellablePromise that cancels + * after the specified timeout, with the provided cause. + * + * If the {@link AbortSignal.timeout} factory method is available, + * it is used to base the timeout on _active_ time rather than _elapsed_ time. + * Otherwise, `timeout` falls back to {@link setTimeout}. + * + * @group Static Methods + */ + static timeout(milliseconds, cause) { + const promise = new CancellablePromise(() => { }); + if (AbortSignal && typeof AbortSignal === 'function' && AbortSignal.timeout && typeof AbortSignal.timeout === 'function') { + AbortSignal.timeout(milliseconds).addEventListener('abort', () => void promise.cancel(cause)); + } + else { + setTimeout(() => void promise.cancel(cause), milliseconds); + } + return promise; + } + static sleep(milliseconds, value) { + return new CancellablePromise((resolve) => { + setTimeout(() => resolve(value), milliseconds); + }); + } + /** + * Creates a new rejected CancellablePromise for the provided reason. + * + * @group Static Methods + */ + static reject(reason) { + return new CancellablePromise((_, reject) => reject(reason)); + } + static resolve(value) { + if (value instanceof CancellablePromise) { + // Optimise for cancellable promises. + return value; + } + return new CancellablePromise((resolve) => resolve(value)); + } + /** + * Creates a new CancellablePromise and returns it in an object, along with its resolve and reject functions + * and a getter/setter for the cancellation callback. + * + * This method is polyfilled, hence available in every OS/webview version. + * + * @group Static Methods + */ + static withResolvers() { + let result = { oncancelled: null }; + result.promise = new CancellablePromise((resolve, reject) => { + result.resolve = resolve; + result.reject = reject; + }, (cause) => { var _a; (_a = result.oncancelled) === null || _a === void 0 ? void 0 : _a.call(result, cause); }); + return result; + } +} +/** + * Returns a callback that implements the cancellation algorithm for the given cancellable promise. + * The promise returned from the resulting function does not reject. + */ +function cancellerFor(promise, state) { + let cancellationPromise = undefined; + return (reason) => { + if (!state.settled) { + state.settled = true; + state.reason = reason; + promise.reject(reason); + // Attach an error handler that ignores this specific rejection reason and nothing else. + // In theory, a sane underlying implementation at this point + // should always reject with our cancellation reason, + // hence the handler will never throw. + void Promise.prototype.then.call(promise.promise, undefined, (err) => { + if (err !== reason) { + throw err; + } + }); + } + // If reason is not set, the promise resolved regularly, hence we must not call oncancelled. + // If oncancelled is unset, no need to go any further. + if (!state.reason || !promise.oncancelled) { + return; + } + cancellationPromise = new Promise((resolve) => { + try { + resolve(promise.oncancelled(state.reason.cause)); + } + catch (err) { + Promise.reject(new CancelledRejectionError(promise.promise, err, "Unhandled exception in oncancelled callback.")); + } + }).catch((reason) => { + Promise.reject(new CancelledRejectionError(promise.promise, reason, "Unhandled rejection in oncancelled callback.")); + }); + // Unset oncancelled to prevent repeated calls. + promise.oncancelled = null; + return cancellationPromise; + }; +} +/** + * Returns a callback that implements the resolution algorithm for the given cancellable promise. + */ +function resolverFor(promise, state) { + return (value) => { + if (state.resolving) { + return; + } + state.resolving = true; + if (value === promise.promise) { + if (state.settled) { + return; + } + state.settled = true; + promise.reject(new TypeError("A promise cannot be resolved with itself.")); + return; + } + if (value != null && (typeof value === 'object' || typeof value === 'function')) { + let then; + try { + then = value.then; + } + catch (err) { + state.settled = true; + promise.reject(err); + return; + } + if (isCallable(then)) { + try { + let cancel = value.cancel; + if (isCallable(cancel)) { + const oncancelled = (cause) => { + Reflect.apply(cancel, value, [cause]); + }; + if (state.reason) { + // If already cancelled, propagate cancellation. + // The promise returned from the canceller algorithm does not reject + // so it can be discarded safely. + void cancellerFor(Object.assign(Object.assign({}, promise), { oncancelled }), state)(state.reason); + } + else { + promise.oncancelled = oncancelled; + } + } + } + catch (_a) { } + const newState = { + root: state.root, + resolving: false, + get settled() { return this.root.settled; }, + set settled(value) { this.root.settled = value; }, + get reason() { return this.root.reason; } + }; + const rejector = rejectorFor(promise, newState); + try { + Reflect.apply(then, value, [resolverFor(promise, newState), rejector]); + } + catch (err) { + rejector(err); + } + return; // IMPORTANT! + } + } + if (state.settled) { + return; + } + state.settled = true; + promise.resolve(value); + }; +} +/** + * Returns a callback that implements the rejection algorithm for the given cancellable promise. + */ +function rejectorFor(promise, state) { + return (reason) => { + if (state.resolving) { + return; + } + state.resolving = true; + if (state.settled) { + try { + if (reason instanceof CancelError && state.reason instanceof CancelError && Object.is(reason.cause, state.reason.cause)) { + // Swallow late rejections that are CancelErrors whose cancellation cause is the same as ours. + return; + } + } + catch (_a) { } + void Promise.reject(new CancelledRejectionError(promise.promise, reason)); + } + else { + state.settled = true; + promise.reject(reason); + } + }; +} +/** + * Cancels all values in an array that look like cancellable thenables. + * Returns a promise that fulfills once all cancellation procedures for the given values have settled. + */ +function cancelAll(parent, values, cause) { + const results = []; + for (const value of values) { + let cancel; + try { + if (!isCallable(value.then)) { + continue; + } + cancel = value.cancel; + if (!isCallable(cancel)) { + continue; + } + } + catch (_a) { + continue; + } + let result; + try { + result = Reflect.apply(cancel, value, [cause]); + } + catch (err) { + Promise.reject(new CancelledRejectionError(parent, err, "Unhandled exception in cancel method.")); + continue; + } + if (!result) { + continue; + } + results.push((result instanceof Promise ? result : Promise.resolve(result)).catch((reason) => { + Promise.reject(new CancelledRejectionError(parent, reason, "Unhandled rejection in cancel method.")); + })); + } + return Promise.all(results); +} +/** + * Returns its argument. + */ +function identity(x) { + return x; +} +/** + * Throws its argument. + */ +function thrower(reason) { + throw reason; +} +/** + * Attempts various strategies to convert an error to a string. + */ +function errorMessage(err) { + try { + if (err instanceof Error || typeof err !== 'object' || err.toString !== Object.prototype.toString) { + return "" + err; + } + } + catch (_a) { } + try { + return JSON.stringify(err); + } + catch (_b) { } + try { + return Object.prototype.toString.call(err); + } + catch (_c) { } + return ""; +} +/** + * Gets the current barrier promise for the given cancellable promise. If necessary, initialises the barrier. + */ +function currentBarrier(promise) { + var _a; + let pwr = (_a = promise[barrierSym]) !== null && _a !== void 0 ? _a : {}; + if (!('promise' in pwr)) { + Object.assign(pwr, promiseWithResolvers()); + } + if (promise[barrierSym] == null) { + pwr.resolve(); + promise[barrierSym] = pwr; + } + return pwr.promise; +} +// Polyfill Promise.withResolvers. +let promiseWithResolvers = Promise.withResolvers; +if (promiseWithResolvers && typeof promiseWithResolvers === 'function') { + promiseWithResolvers = promiseWithResolvers.bind(Promise); +} +else { + promiseWithResolvers = function () { + let resolve; + let reject; + const promise = new Promise((res, rej) => { resolve = res; reject = rej; }); + return { promise, resolve, reject }; + }; +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/clipboard.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/clipboard.js new file mode 100644 index 000000000..d579d4bb3 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/clipboard.js @@ -0,0 +1,30 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +const call = newRuntimeCaller(objectNames.Clipboard); +const ClipboardSetText = 0; +const ClipboardText = 1; +/** + * Sets the text to the Clipboard. + * + * @param text - The text to be set to the Clipboard. + * @return A Promise that resolves when the operation is successful. + */ +export function SetText(text) { + return call(ClipboardSetText, { text }); +} +/** + * Get the Clipboard text + * + * @returns A promise that resolves with the text from the Clipboard. + */ +export function Text() { + return call(ClipboardText); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/contextmenu.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/contextmenu.js new file mode 100644 index 000000000..1485c3aea --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/contextmenu.js @@ -0,0 +1,80 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +import { IsDebug } from "./system.js"; +import { eventTarget } from "./utils"; +// setup +window.addEventListener('contextmenu', contextMenuHandler); +const call = newRuntimeCaller(objectNames.ContextMenu); +const ContextMenuOpen = 0; +function openContextMenu(id, x, y, data) { + void call(ContextMenuOpen, { id, x, y, data }); +} +function contextMenuHandler(event) { + const target = eventTarget(event); + // Check for custom context menu + const customContextMenu = window.getComputedStyle(target).getPropertyValue("--custom-contextmenu").trim(); + if (customContextMenu) { + event.preventDefault(); + const data = window.getComputedStyle(target).getPropertyValue("--custom-contextmenu-data"); + openContextMenu(customContextMenu, event.clientX, event.clientY, data); + } + else { + processDefaultContextMenu(event, target); + } +} +/* +--default-contextmenu: auto; (default) will show the default context menu if contentEditable is true OR text has been selected OR element is input or textarea +--default-contextmenu: show; will always show the default context menu +--default-contextmenu: hide; will always hide the default context menu + +This rule is inherited like normal CSS rules, so nesting works as expected +*/ +function processDefaultContextMenu(event, target) { + // Debug builds always show the menu + if (IsDebug()) { + return; + } + // Process default context menu + switch (window.getComputedStyle(target).getPropertyValue("--default-contextmenu").trim()) { + case 'show': + return; + case 'hide': + event.preventDefault(); + return; + } + // Check if contentEditable is true + if (target.isContentEditable) { + return; + } + // Check if text has been selected + const selection = window.getSelection(); + const hasSelection = selection && selection.toString().length > 0; + if (hasSelection) { + for (let i = 0; i < selection.rangeCount; i++) { + const range = selection.getRangeAt(i); + const rects = range.getClientRects(); + for (let j = 0; j < rects.length; j++) { + const rect = rects[j]; + if (document.elementFromPoint(rect.left, rect.top) === target) { + return; + } + } + } + } + // Check if tag is input or textarea. + if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) { + if (hasSelection || (!target.readOnly && !target.disabled)) { + return; + } + } + // hide default context menu + event.preventDefault(); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/create.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/create.js new file mode 100644 index 000000000..610362500 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/create.js @@ -0,0 +1,94 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +/** + * Any is a dummy creation function for simple or unknown types. + */ +export function Any(source) { + return source; +} +/** + * ByteSlice is a creation function that replaces + * null strings with empty strings. + */ +export function ByteSlice(source) { + return ((source == null) ? "" : source); +} +/** + * Array takes a creation function for an arbitrary type + * and returns an in-place creation function for an array + * whose elements are of that type. + */ +export function Array(element) { + if (element === Any) { + return (source) => (source === null ? [] : source); + } + return (source) => { + if (source === null) { + return []; + } + for (let i = 0; i < source.length; i++) { + source[i] = element(source[i]); + } + return source; + }; +} +/** + * Map takes creation functions for two arbitrary types + * and returns an in-place creation function for an object + * whose keys and values are of those types. + */ +export function Map(key, value) { + if (value === Any) { + return (source) => (source === null ? {} : source); + } + return (source) => { + if (source === null) { + return {}; + } + for (const key in source) { + source[key] = value(source[key]); + } + return source; + }; +} +/** + * Nullable takes a creation function for an arbitrary type + * and returns a creation function for a nullable value of that type. + */ +export function Nullable(element) { + if (element === Any) { + return Any; + } + return (source) => (source === null ? null : element(source)); +} +/** + * Struct takes an object mapping field names to creation functions + * and returns an in-place creation function for a struct. + */ +export function Struct(createField) { + let allAny = true; + for (const name in createField) { + if (createField[name] !== Any) { + allAny = false; + break; + } + } + if (allAny) { + return Any; + } + return (source) => { + for (const name in createField) { + if (name in source) { + source[name] = createField[name](source[name]); + } + } + return source; + }; +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/dialogs.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/dialogs.js new file mode 100644 index 000000000..2cfa4751d --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/dialogs.js @@ -0,0 +1,134 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +import { nanoid } from './nanoid.js'; +// setup +window._wails = window._wails || {}; +window._wails.dialogErrorCallback = dialogErrorCallback; +window._wails.dialogResultCallback = dialogResultCallback; +const call = newRuntimeCaller(objectNames.Dialog); +const dialogResponses = new Map(); +// Define constants from the `methods` object in Title Case +const DialogInfo = 0; +const DialogWarning = 1; +const DialogError = 2; +const DialogQuestion = 3; +const DialogOpenFile = 4; +const DialogSaveFile = 5; +/** + * Handles the result of a dialog request. + * + * @param id - The id of the request to handle the result for. + * @param data - The result data of the request. + * @param isJSON - Indicates whether the data is JSON or not. + */ +function dialogResultCallback(id, data, isJSON) { + let resolvers = getAndDeleteResponse(id); + if (!resolvers) { + return; + } + if (isJSON) { + try { + resolvers.resolve(JSON.parse(data)); + } + catch (err) { + resolvers.reject(new TypeError("could not parse result: " + err.message, { cause: err })); + } + } + else { + resolvers.resolve(data); + } +} +/** + * Handles the error from a dialog request. + * + * @param id - The id of the promise handler. + * @param message - An error message. + */ +function dialogErrorCallback(id, message) { + var _a; + (_a = getAndDeleteResponse(id)) === null || _a === void 0 ? void 0 : _a.reject(new window.Error(message)); +} +/** + * Retrieves and removes the response associated with the given ID from the dialogResponses map. + * + * @param id - The ID of the response to be retrieved and removed. + * @returns The response object associated with the given ID, if any. + */ +function getAndDeleteResponse(id) { + const response = dialogResponses.get(id); + dialogResponses.delete(id); + return response; +} +/** + * Generates a unique ID using the nanoid library. + * + * @returns A unique ID that does not exist in the dialogResponses set. + */ +function generateID() { + let result; + do { + result = nanoid(); + } while (dialogResponses.has(result)); + return result; +} +/** + * Presents a dialog of specified type with the given options. + * + * @param type - Dialog type. + * @param options - Options for the dialog. + * @returns A promise that resolves with result of dialog. + */ +function dialog(type, options = {}) { + const id = generateID(); + return new Promise((resolve, reject) => { + dialogResponses.set(id, { resolve, reject }); + call(type, Object.assign({ "dialog-id": id }, options)).catch((err) => { + dialogResponses.delete(id); + reject(err); + }); + }); +} +/** + * Presents an info dialog. + * + * @param options - Dialog options + * @returns A promise that resolves with the label of the chosen button. + */ +export function Info(options) { return dialog(DialogInfo, options); } +/** + * Presents a warning dialog. + * + * @param options - Dialog options. + * @returns A promise that resolves with the label of the chosen button. + */ +export function Warning(options) { return dialog(DialogWarning, options); } +/** + * Presents an error dialog. + * + * @param options - Dialog options. + * @returns A promise that resolves with the label of the chosen button. + */ +export function Error(options) { return dialog(DialogError, options); } +/** + * Presents a question dialog. + * + * @param options - Dialog options. + * @returns A promise that resolves with the label of the chosen button. + */ +export function Question(options) { return dialog(DialogQuestion, options); } +export function OpenFile(options) { var _a; return (_a = dialog(DialogOpenFile, options)) !== null && _a !== void 0 ? _a : []; } +/** + * Presents a file selection dialog to pick a file to save. + * + * @param options - Dialog options. + * @returns Selected file, or a blank string if no file has been selected. + */ +export function SaveFile(options) { return dialog(DialogSaveFile, options); } diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/drag.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/drag.js new file mode 100644 index 000000000..ae4ecc364 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/drag.js @@ -0,0 +1,222 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { invoke, IsWindows } from "./system.js"; +import { GetFlag } from "./flags.js"; +import { canTrackButtons, eventTarget } from "./utils.js"; +// Setup +let canDrag = false; +let dragging = false; +let resizable = false; +let canResize = false; +let resizing = false; +let resizeEdge = ""; +let defaultCursor = "auto"; +let buttons = 0; +const buttonsTracked = canTrackButtons(); +window._wails = window._wails || {}; +window._wails.setResizable = (value) => { + resizable = value; + if (!resizable) { + // Stop resizing if in progress. + canResize = resizing = false; + setResize(); + } +}; +window.addEventListener('mousedown', update, { capture: true }); +window.addEventListener('mousemove', update, { capture: true }); +window.addEventListener('mouseup', update, { capture: true }); +for (const ev of ['click', 'contextmenu', 'dblclick']) { + window.addEventListener(ev, suppressEvent, { capture: true }); +} +function suppressEvent(event) { + // Suppress click events while resizing or dragging. + if (dragging || resizing) { + event.stopImmediatePropagation(); + event.stopPropagation(); + event.preventDefault(); + } +} +// Use constants to avoid comparing strings multiple times. +const MouseDown = 0; +const MouseUp = 1; +const MouseMove = 2; +function update(event) { + // Windows suppresses mouse events at the end of dragging or resizing, + // so we need to be smart and synthesize button events. + let eventType, eventButtons = event.buttons; + switch (event.type) { + case 'mousedown': + eventType = MouseDown; + if (!buttonsTracked) { + eventButtons = buttons | (1 << event.button); + } + break; + case 'mouseup': + eventType = MouseUp; + if (!buttonsTracked) { + eventButtons = buttons & ~(1 << event.button); + } + break; + default: + eventType = MouseMove; + if (!buttonsTracked) { + eventButtons = buttons; + } + break; + } + let released = buttons & ~eventButtons; + let pressed = eventButtons & ~buttons; + buttons = eventButtons; + // Synthesize a release-press sequence if we detect a press of an already pressed button. + if (eventType === MouseDown && !(pressed & event.button)) { + released |= (1 << event.button); + pressed |= (1 << event.button); + } + // Suppress all button events during dragging and resizing, + // unless this is a mouseup event that is ending a drag action. + if (eventType !== MouseMove // Fast path for mousemove + && resizing + || (dragging + && (eventType === MouseDown + || event.button !== 0))) { + event.stopImmediatePropagation(); + event.stopPropagation(); + event.preventDefault(); + } + // Handle releases + if (released & 1) { + primaryUp(event); + } + // Handle presses + if (pressed & 1) { + primaryDown(event); + } + // Handle mousemove + if (eventType === MouseMove) { + onMouseMove(event); + } + ; +} +function primaryDown(event) { + // Reset readiness state. + canDrag = false; + canResize = false; + // Ignore repeated clicks on macOS and Linux. + if (!IsWindows()) { + if (event.type === 'mousedown' && event.button === 0 && event.detail !== 1) { + return; + } + } + if (resizeEdge) { + // Ready to resize if the primary button was pressed for the first time. + canResize = true; + // Do not start drag operations when on resize edges. + return; + } + // Retrieve target element + const target = eventTarget(event); + // Ready to drag if the primary button was pressed for the first time on a draggable element. + // Ignore clicks on the scrollbar. + const style = window.getComputedStyle(target); + canDrag = (style.getPropertyValue("--wails-draggable").trim() === "drag" + && (event.offsetX - parseFloat(style.paddingLeft) < target.clientWidth + && event.offsetY - parseFloat(style.paddingTop) < target.clientHeight)); +} +function primaryUp(event) { + // Stop dragging and resizing. + canDrag = false; + dragging = false; + canResize = false; + resizing = false; +} +const cursorForEdge = Object.freeze({ + "se-resize": "nwse-resize", + "sw-resize": "nesw-resize", + "nw-resize": "nwse-resize", + "ne-resize": "nesw-resize", + "w-resize": "ew-resize", + "n-resize": "ns-resize", + "s-resize": "ns-resize", + "e-resize": "ew-resize", +}); +function setResize(edge) { + if (edge) { + if (!resizeEdge) { + defaultCursor = document.body.style.cursor; + } + document.body.style.cursor = cursorForEdge[edge]; + } + else if (!edge && resizeEdge) { + document.body.style.cursor = defaultCursor; + } + resizeEdge = edge || ""; +} +function onMouseMove(event) { + if (canResize && resizeEdge) { + // Start resizing. + resizing = true; + invoke("wails:resize:" + resizeEdge); + } + else if (canDrag) { + // Start dragging. + dragging = true; + invoke("wails:drag"); + } + if (dragging || resizing) { + // Either drag or resize is ongoing, + // reset readiness and stop processing. + canDrag = canResize = false; + return; + } + if (!resizable || !IsWindows()) { + if (resizeEdge) { + setResize(); + } + return; + } + const resizeHandleHeight = GetFlag("system.resizeHandleHeight") || 5; + const resizeHandleWidth = GetFlag("system.resizeHandleWidth") || 5; + // Extra pixels for the corner areas. + const cornerExtra = GetFlag("resizeCornerExtra") || 10; + const rightBorder = (window.outerWidth - event.clientX) < resizeHandleWidth; + const leftBorder = event.clientX < resizeHandleWidth; + const topBorder = event.clientY < resizeHandleHeight; + const bottomBorder = (window.outerHeight - event.clientY) < resizeHandleHeight; + // Adjust for corner areas. + const rightCorner = (window.outerWidth - event.clientX) < (resizeHandleWidth + cornerExtra); + const leftCorner = event.clientX < (resizeHandleWidth + cornerExtra); + const topCorner = event.clientY < (resizeHandleHeight + cornerExtra); + const bottomCorner = (window.outerHeight - event.clientY) < (resizeHandleHeight + cornerExtra); + if (!leftCorner && !topCorner && !bottomCorner && !rightCorner) { + // Optimisation: out of all corner areas implies out of borders. + setResize(); + } + // Detect corners. + else if (rightCorner && bottomCorner) + setResize("se-resize"); + else if (leftCorner && bottomCorner) + setResize("sw-resize"); + else if (leftCorner && topCorner) + setResize("nw-resize"); + else if (topCorner && rightCorner) + setResize("ne-resize"); + // Detect borders. + else if (leftBorder) + setResize("w-resize"); + else if (topBorder) + setResize("n-resize"); + else if (bottomBorder) + setResize("s-resize"); + else if (rightBorder) + setResize("e-resize"); + // Out of border area. + else + setResize(); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/event_types.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/event_types.js new file mode 100644 index 000000000..6cf95d629 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/event_types.js @@ -0,0 +1,229 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL +// This file is automatically generated. DO NOT EDIT +export const Types = Object.freeze({ + Windows: Object.freeze({ + APMPowerSettingChange: "windows:APMPowerSettingChange", + APMPowerStatusChange: "windows:APMPowerStatusChange", + APMResumeAutomatic: "windows:APMResumeAutomatic", + APMResumeSuspend: "windows:APMResumeSuspend", + APMSuspend: "windows:APMSuspend", + ApplicationStarted: "windows:ApplicationStarted", + SystemThemeChanged: "windows:SystemThemeChanged", + WebViewNavigationCompleted: "windows:WebViewNavigationCompleted", + WindowActive: "windows:WindowActive", + WindowBackgroundErase: "windows:WindowBackgroundErase", + WindowClickActive: "windows:WindowClickActive", + WindowClosing: "windows:WindowClosing", + WindowDidMove: "windows:WindowDidMove", + WindowDidResize: "windows:WindowDidResize", + WindowDPIChanged: "windows:WindowDPIChanged", + WindowDragDrop: "windows:WindowDragDrop", + WindowDragEnter: "windows:WindowDragEnter", + WindowDragLeave: "windows:WindowDragLeave", + WindowDragOver: "windows:WindowDragOver", + WindowEndMove: "windows:WindowEndMove", + WindowEndResize: "windows:WindowEndResize", + WindowFullscreen: "windows:WindowFullscreen", + WindowHide: "windows:WindowHide", + WindowInactive: "windows:WindowInactive", + WindowKeyDown: "windows:WindowKeyDown", + WindowKeyUp: "windows:WindowKeyUp", + WindowKillFocus: "windows:WindowKillFocus", + WindowNonClientHit: "windows:WindowNonClientHit", + WindowNonClientMouseDown: "windows:WindowNonClientMouseDown", + WindowNonClientMouseLeave: "windows:WindowNonClientMouseLeave", + WindowNonClientMouseMove: "windows:WindowNonClientMouseMove", + WindowNonClientMouseUp: "windows:WindowNonClientMouseUp", + WindowPaint: "windows:WindowPaint", + WindowRestore: "windows:WindowRestore", + WindowSetFocus: "windows:WindowSetFocus", + WindowShow: "windows:WindowShow", + WindowStartMove: "windows:WindowStartMove", + WindowStartResize: "windows:WindowStartResize", + WindowUnFullscreen: "windows:WindowUnFullscreen", + WindowZOrderChanged: "windows:WindowZOrderChanged", + WindowMinimise: "windows:WindowMinimise", + WindowUnMinimise: "windows:WindowUnMinimise", + WindowMaximise: "windows:WindowMaximise", + WindowUnMaximise: "windows:WindowUnMaximise", + }), + Mac: Object.freeze({ + ApplicationDidBecomeActive: "mac:ApplicationDidBecomeActive", + ApplicationDidChangeBackingProperties: "mac:ApplicationDidChangeBackingProperties", + ApplicationDidChangeEffectiveAppearance: "mac:ApplicationDidChangeEffectiveAppearance", + ApplicationDidChangeIcon: "mac:ApplicationDidChangeIcon", + ApplicationDidChangeOcclusionState: "mac:ApplicationDidChangeOcclusionState", + ApplicationDidChangeScreenParameters: "mac:ApplicationDidChangeScreenParameters", + ApplicationDidChangeStatusBarFrame: "mac:ApplicationDidChangeStatusBarFrame", + ApplicationDidChangeStatusBarOrientation: "mac:ApplicationDidChangeStatusBarOrientation", + ApplicationDidChangeTheme: "mac:ApplicationDidChangeTheme", + ApplicationDidFinishLaunching: "mac:ApplicationDidFinishLaunching", + ApplicationDidHide: "mac:ApplicationDidHide", + ApplicationDidResignActive: "mac:ApplicationDidResignActive", + ApplicationDidUnhide: "mac:ApplicationDidUnhide", + ApplicationDidUpdate: "mac:ApplicationDidUpdate", + ApplicationShouldHandleReopen: "mac:ApplicationShouldHandleReopen", + ApplicationWillBecomeActive: "mac:ApplicationWillBecomeActive", + ApplicationWillFinishLaunching: "mac:ApplicationWillFinishLaunching", + ApplicationWillHide: "mac:ApplicationWillHide", + ApplicationWillResignActive: "mac:ApplicationWillResignActive", + ApplicationWillTerminate: "mac:ApplicationWillTerminate", + ApplicationWillUnhide: "mac:ApplicationWillUnhide", + ApplicationWillUpdate: "mac:ApplicationWillUpdate", + MenuDidAddItem: "mac:MenuDidAddItem", + MenuDidBeginTracking: "mac:MenuDidBeginTracking", + MenuDidClose: "mac:MenuDidClose", + MenuDidDisplayItem: "mac:MenuDidDisplayItem", + MenuDidEndTracking: "mac:MenuDidEndTracking", + MenuDidHighlightItem: "mac:MenuDidHighlightItem", + MenuDidOpen: "mac:MenuDidOpen", + MenuDidPopUp: "mac:MenuDidPopUp", + MenuDidRemoveItem: "mac:MenuDidRemoveItem", + MenuDidSendAction: "mac:MenuDidSendAction", + MenuDidSendActionToItem: "mac:MenuDidSendActionToItem", + MenuDidUpdate: "mac:MenuDidUpdate", + MenuWillAddItem: "mac:MenuWillAddItem", + MenuWillBeginTracking: "mac:MenuWillBeginTracking", + MenuWillDisplayItem: "mac:MenuWillDisplayItem", + MenuWillEndTracking: "mac:MenuWillEndTracking", + MenuWillHighlightItem: "mac:MenuWillHighlightItem", + MenuWillOpen: "mac:MenuWillOpen", + MenuWillPopUp: "mac:MenuWillPopUp", + MenuWillRemoveItem: "mac:MenuWillRemoveItem", + MenuWillSendAction: "mac:MenuWillSendAction", + MenuWillSendActionToItem: "mac:MenuWillSendActionToItem", + MenuWillUpdate: "mac:MenuWillUpdate", + WebViewDidCommitNavigation: "mac:WebViewDidCommitNavigation", + WebViewDidFinishNavigation: "mac:WebViewDidFinishNavigation", + WebViewDidReceiveServerRedirectForProvisionalNavigation: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation", + WebViewDidStartProvisionalNavigation: "mac:WebViewDidStartProvisionalNavigation", + WindowDidBecomeKey: "mac:WindowDidBecomeKey", + WindowDidBecomeMain: "mac:WindowDidBecomeMain", + WindowDidBeginSheet: "mac:WindowDidBeginSheet", + WindowDidChangeAlpha: "mac:WindowDidChangeAlpha", + WindowDidChangeBackingLocation: "mac:WindowDidChangeBackingLocation", + WindowDidChangeBackingProperties: "mac:WindowDidChangeBackingProperties", + WindowDidChangeCollectionBehavior: "mac:WindowDidChangeCollectionBehavior", + WindowDidChangeEffectiveAppearance: "mac:WindowDidChangeEffectiveAppearance", + WindowDidChangeOcclusionState: "mac:WindowDidChangeOcclusionState", + WindowDidChangeOrderingMode: "mac:WindowDidChangeOrderingMode", + WindowDidChangeScreen: "mac:WindowDidChangeScreen", + WindowDidChangeScreenParameters: "mac:WindowDidChangeScreenParameters", + WindowDidChangeScreenProfile: "mac:WindowDidChangeScreenProfile", + WindowDidChangeScreenSpace: "mac:WindowDidChangeScreenSpace", + WindowDidChangeScreenSpaceProperties: "mac:WindowDidChangeScreenSpaceProperties", + WindowDidChangeSharingType: "mac:WindowDidChangeSharingType", + WindowDidChangeSpace: "mac:WindowDidChangeSpace", + WindowDidChangeSpaceOrderingMode: "mac:WindowDidChangeSpaceOrderingMode", + WindowDidChangeTitle: "mac:WindowDidChangeTitle", + WindowDidChangeToolbar: "mac:WindowDidChangeToolbar", + WindowDidDeminiaturize: "mac:WindowDidDeminiaturize", + WindowDidEndSheet: "mac:WindowDidEndSheet", + WindowDidEnterFullScreen: "mac:WindowDidEnterFullScreen", + WindowDidEnterVersionBrowser: "mac:WindowDidEnterVersionBrowser", + WindowDidExitFullScreen: "mac:WindowDidExitFullScreen", + WindowDidExitVersionBrowser: "mac:WindowDidExitVersionBrowser", + WindowDidExpose: "mac:WindowDidExpose", + WindowDidFocus: "mac:WindowDidFocus", + WindowDidMiniaturize: "mac:WindowDidMiniaturize", + WindowDidMove: "mac:WindowDidMove", + WindowDidOrderOffScreen: "mac:WindowDidOrderOffScreen", + WindowDidOrderOnScreen: "mac:WindowDidOrderOnScreen", + WindowDidResignKey: "mac:WindowDidResignKey", + WindowDidResignMain: "mac:WindowDidResignMain", + WindowDidResize: "mac:WindowDidResize", + WindowDidUpdate: "mac:WindowDidUpdate", + WindowDidUpdateAlpha: "mac:WindowDidUpdateAlpha", + WindowDidUpdateCollectionBehavior: "mac:WindowDidUpdateCollectionBehavior", + WindowDidUpdateCollectionProperties: "mac:WindowDidUpdateCollectionProperties", + WindowDidUpdateShadow: "mac:WindowDidUpdateShadow", + WindowDidUpdateTitle: "mac:WindowDidUpdateTitle", + WindowDidUpdateToolbar: "mac:WindowDidUpdateToolbar", + WindowDidZoom: "mac:WindowDidZoom", + WindowFileDraggingEntered: "mac:WindowFileDraggingEntered", + WindowFileDraggingExited: "mac:WindowFileDraggingExited", + WindowFileDraggingPerformed: "mac:WindowFileDraggingPerformed", + WindowHide: "mac:WindowHide", + WindowMaximise: "mac:WindowMaximise", + WindowUnMaximise: "mac:WindowUnMaximise", + WindowMinimise: "mac:WindowMinimise", + WindowUnMinimise: "mac:WindowUnMinimise", + WindowShouldClose: "mac:WindowShouldClose", + WindowShow: "mac:WindowShow", + WindowWillBecomeKey: "mac:WindowWillBecomeKey", + WindowWillBecomeMain: "mac:WindowWillBecomeMain", + WindowWillBeginSheet: "mac:WindowWillBeginSheet", + WindowWillChangeOrderingMode: "mac:WindowWillChangeOrderingMode", + WindowWillClose: "mac:WindowWillClose", + WindowWillDeminiaturize: "mac:WindowWillDeminiaturize", + WindowWillEnterFullScreen: "mac:WindowWillEnterFullScreen", + WindowWillEnterVersionBrowser: "mac:WindowWillEnterVersionBrowser", + WindowWillExitFullScreen: "mac:WindowWillExitFullScreen", + WindowWillExitVersionBrowser: "mac:WindowWillExitVersionBrowser", + WindowWillFocus: "mac:WindowWillFocus", + WindowWillMiniaturize: "mac:WindowWillMiniaturize", + WindowWillMove: "mac:WindowWillMove", + WindowWillOrderOffScreen: "mac:WindowWillOrderOffScreen", + WindowWillOrderOnScreen: "mac:WindowWillOrderOnScreen", + WindowWillResignMain: "mac:WindowWillResignMain", + WindowWillResize: "mac:WindowWillResize", + WindowWillUnfocus: "mac:WindowWillUnfocus", + WindowWillUpdate: "mac:WindowWillUpdate", + WindowWillUpdateAlpha: "mac:WindowWillUpdateAlpha", + WindowWillUpdateCollectionBehavior: "mac:WindowWillUpdateCollectionBehavior", + WindowWillUpdateCollectionProperties: "mac:WindowWillUpdateCollectionProperties", + WindowWillUpdateShadow: "mac:WindowWillUpdateShadow", + WindowWillUpdateTitle: "mac:WindowWillUpdateTitle", + WindowWillUpdateToolbar: "mac:WindowWillUpdateToolbar", + WindowWillUpdateVisibility: "mac:WindowWillUpdateVisibility", + WindowWillUseStandardFrame: "mac:WindowWillUseStandardFrame", + WindowZoomIn: "mac:WindowZoomIn", + WindowZoomOut: "mac:WindowZoomOut", + WindowZoomReset: "mac:WindowZoomReset", + }), + Linux: Object.freeze({ + ApplicationStartup: "linux:ApplicationStartup", + SystemThemeChanged: "linux:SystemThemeChanged", + WindowDeleteEvent: "linux:WindowDeleteEvent", + WindowDidMove: "linux:WindowDidMove", + WindowDidResize: "linux:WindowDidResize", + WindowFocusIn: "linux:WindowFocusIn", + WindowFocusOut: "linux:WindowFocusOut", + WindowLoadChanged: "linux:WindowLoadChanged", + }), + Common: Object.freeze({ + ApplicationOpenedWithFile: "common:ApplicationOpenedWithFile", + ApplicationStarted: "common:ApplicationStarted", + ThemeChanged: "common:ThemeChanged", + WindowClosing: "common:WindowClosing", + WindowDidMove: "common:WindowDidMove", + WindowDidResize: "common:WindowDidResize", + WindowDPIChanged: "common:WindowDPIChanged", + WindowFilesDropped: "common:WindowFilesDropped", + WindowFocus: "common:WindowFocus", + WindowFullscreen: "common:WindowFullscreen", + WindowHide: "common:WindowHide", + WindowLostFocus: "common:WindowLostFocus", + WindowMaximise: "common:WindowMaximise", + WindowMinimise: "common:WindowMinimise", + WindowRestore: "common:WindowRestore", + WindowRuntimeReady: "common:WindowRuntimeReady", + WindowShow: "common:WindowShow", + WindowUnFullscreen: "common:WindowUnFullscreen", + WindowUnMaximise: "common:WindowUnMaximise", + WindowUnMinimise: "common:WindowUnMinimise", + WindowZoom: "common:WindowZoom", + WindowZoomIn: "common:WindowZoomIn", + WindowZoomOut: "common:WindowZoomOut", + WindowZoomReset: "common:WindowZoomReset", + }), +}); diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/events.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/events.js new file mode 100644 index 000000000..ba8b2d36c --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/events.js @@ -0,0 +1,101 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +import { eventListeners, Listener, listenerOff } from "./listener.js"; +// Setup +window._wails = window._wails || {}; +window._wails.dispatchWailsEvent = dispatchWailsEvent; +const call = newRuntimeCaller(objectNames.Events); +const EmitMethod = 0; +export { Types } from "./event_types.js"; +/** + * Represents a system event or a custom event emitted through wails-provided facilities. + */ +export class WailsEvent { + constructor(name, data = null) { + this.name = name; + this.data = data; + } +} +function dispatchWailsEvent(event) { + let listeners = eventListeners.get(event.name); + if (!listeners) { + return; + } + let wailsEvent = new WailsEvent(event.name, event.data); + if ('sender' in event) { + wailsEvent.sender = event.sender; + } + listeners = listeners.filter(listener => !listener.dispatch(wailsEvent)); + if (listeners.length === 0) { + eventListeners.delete(event.name); + } + else { + eventListeners.set(event.name, listeners); + } +} +/** + * Register a callback function to be called multiple times for a specific event. + * + * @param eventName - The name of the event to register the callback for. + * @param callback - The callback function to be called when the event is triggered. + * @param maxCallbacks - The maximum number of times the callback can be called for the event. Once the maximum number is reached, the callback will no longer be called. + * @returns A function that, when called, will unregister the callback from the event. + */ +export function OnMultiple(eventName, callback, maxCallbacks) { + let listeners = eventListeners.get(eventName) || []; + const thisListener = new Listener(eventName, callback, maxCallbacks); + listeners.push(thisListener); + eventListeners.set(eventName, listeners); + return () => listenerOff(thisListener); +} +/** + * Registers a callback function to be executed when the specified event occurs. + * + * @param eventName - The name of the event to register the callback for. + * @param callback - The callback function to be called when the event is triggered. + * @returns A function that, when called, will unregister the callback from the event. + */ +export function On(eventName, callback) { + return OnMultiple(eventName, callback, -1); +} +/** + * Registers a callback function to be executed only once for the specified event. + * + * @param eventName - The name of the event to register the callback for. + * @param callback - The callback function to be called when the event is triggered. + * @returns A function that, when called, will unregister the callback from the event. + */ +export function Once(eventName, callback) { + return OnMultiple(eventName, callback, 1); +} +/** + * Removes event listeners for the specified event names. + * + * @param eventNames - The name of the events to remove listeners for. + */ +export function Off(...eventNames) { + eventNames.forEach(eventName => eventListeners.delete(eventName)); +} +/** + * Removes all event listeners. + */ +export function OffAll() { + eventListeners.clear(); +} +/** + * Emits the given event. + * + * @param event - The name of the event to emit. + * @returns A promise that will be fulfilled once the event has been emitted. + */ +export function Emit(event) { + return call(EmitMethod, event); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/flags.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/flags.js new file mode 100644 index 000000000..31071c28d --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/flags.js @@ -0,0 +1,23 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +/** + * Retrieves the value associated with the specified key from the flag map. + * + * @param key - The key to retrieve the value for. + * @return The value associated with the specified key. + */ +export function GetFlag(key) { + try { + return window._wails.flags[key]; + } + catch (e) { + throw new Error("Unable to retrieve flag '" + key + "': " + e, { cause: e }); + } +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/index.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/index.js new file mode 100644 index 000000000..34f741b89 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/index.js @@ -0,0 +1,38 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +// Setup +window._wails = window._wails || {}; +import "./contextmenu.js"; +import "./drag.js"; +// Re-export public API +import * as Application from "./application.js"; +import * as Browser from "./browser.js"; +import * as Call from "./calls.js"; +import * as Clipboard from "./clipboard.js"; +import * as Create from "./create.js"; +import * as Dialogs from "./dialogs.js"; +import * as Events from "./events.js"; +import * as Flags from "./flags.js"; +import * as Screens from "./screens.js"; +import * as System from "./system.js"; +import Window from "./window.js"; +import * as WML from "./wml.js"; +export { Application, Browser, Call, Clipboard, Dialogs, Events, Flags, Screens, System, Window, WML }; +/** + * An internal utility consumed by the binding generator. + * + * @ignore + * @internal + */ +export { Create }; +export * from "./cancellable.js"; +// Notify backend +window._wails.invoke = System.invoke; +System.invoke("wails:runtime:ready"); diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/listener.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/listener.js new file mode 100644 index 000000000..960408867 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/listener.js @@ -0,0 +1,44 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +// The following utilities have been factored out of ./events.ts +// for testing purposes. +export const eventListeners = new Map(); +export class Listener { + constructor(eventName, callback, maxCallbacks) { + this.eventName = eventName; + this.callback = callback; + this.maxCallbacks = maxCallbacks || -1; + } + dispatch(data) { + try { + this.callback(data); + } + catch (err) { + console.error(err); + } + if (this.maxCallbacks === -1) + return false; + this.maxCallbacks -= 1; + return this.maxCallbacks === 0; + } +} +export function listenerOff(listener) { + let listeners = eventListeners.get(listener.eventName); + if (!listeners) { + return; + } + listeners = listeners.filter(l => l !== listener); + if (listeners.length === 0) { + eventListeners.delete(listener.eventName); + } + else { + eventListeners.set(listener.eventName, listeners); + } +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/nanoid.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/nanoid.js new file mode 100644 index 000000000..c0d5e2411 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/nanoid.js @@ -0,0 +1,38 @@ +// Source: https://github.com/ai/nanoid +// The MIT License (MIT) +// +// Copyright 2017 Andrey Sitnik +// +// Permission is hereby granted, free of charge, to any person obtaining a copy of +// this software and associated documentation files (the "Software"), to deal in +// the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do so, +// subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// This alphabet uses `A-Za-z0-9_-` symbols. +// The order of characters is optimized for better gzip and brotli compression. +// References to the same file (works both for gzip and brotli): +// `'use`, `andom`, and `rict'` +// References to the brotli default dictionary: +// `-26T`, `1983`, `40px`, `75px`, `bush`, `jack`, `mind`, `very`, and `wolf` +const urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'; +export function nanoid(size = 21) { + let id = ''; + // A compact alternative for `for (var i = 0; i < step; i++)`. + let i = size | 0; + while (i--) { + // `| 0` is more compact and faster than `Math.floor()`. + id += urlAlphabet[(Math.random() * 64) | 0]; + } + return id; +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/runtime.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/runtime.js new file mode 100644 index 000000000..f11df1c2e --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/runtime.js @@ -0,0 +1,63 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { nanoid } from './nanoid.js'; +const runtimeURL = window.location.origin + "/wails/runtime"; +// Object Names +export const objectNames = Object.freeze({ + Call: 0, + Clipboard: 1, + Application: 2, + Events: 3, + ContextMenu: 4, + Dialog: 5, + Window: 6, + Screens: 7, + System: 8, + Browser: 9, + CancelCall: 10, +}); +export let clientId = nanoid(); +/** + * Creates a new runtime caller with specified ID. + * + * @param object - The object to invoke the method on. + * @param windowName - The name of the window. + * @return The new runtime caller function. + */ +export function newRuntimeCaller(object, windowName = '') { + return function (method, args = null) { + return runtimeCallWithID(object, method, windowName, args); + }; +} +async function runtimeCallWithID(objectID, method, windowName, args) { + var _a, _b; + let url = new URL(runtimeURL); + url.searchParams.append("object", objectID.toString()); + url.searchParams.append("method", method.toString()); + if (args) { + url.searchParams.append("args", JSON.stringify(args)); + } + let headers = { + ["x-wails-client-id"]: clientId + }; + if (windowName) { + headers["x-wails-window-name"] = windowName; + } + let response = await fetch(url, { headers }); + if (!response.ok) { + throw new Error(await response.text()); + } + if (((_b = (_a = response.headers.get("Content-Type")) === null || _a === void 0 ? void 0 : _a.indexOf("application/json")) !== null && _b !== void 0 ? _b : -1) !== -1) { + return response.json(); + } + else { + return response.text(); + } +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/screens.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/screens.js new file mode 100644 index 000000000..b09dc581d --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/screens.js @@ -0,0 +1,38 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +const call = newRuntimeCaller(objectNames.Screens); +const getAll = 0; +const getPrimary = 1; +const getCurrent = 2; +/** + * Gets all screens. + * + * @returns A promise that resolves to an array of Screen objects. + */ +export function GetAll() { + return call(getAll); +} +/** + * Gets the primary screen. + * + * @returns A promise that resolves to the primary screen. + */ +export function GetPrimary() { + return call(getPrimary); +} +/** + * Gets the current active screen. + * + * @returns A promise that resolves with the current active screen. + */ +export function GetCurrent() { + return call(getCurrent); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/system.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/system.js new file mode 100644 index 000000000..4d51cf8a4 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/system.js @@ -0,0 +1,116 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +const call = newRuntimeCaller(objectNames.System); +const SystemIsDarkMode = 0; +const SystemEnvironment = 1; +const _invoke = (function () { + var _a, _b, _c, _d, _e; + try { + if ((_b = (_a = window.chrome) === null || _a === void 0 ? void 0 : _a.webview) === null || _b === void 0 ? void 0 : _b.postMessage) { + return window.chrome.webview.postMessage.bind(window.chrome.webview); + } + else if ((_e = (_d = (_c = window.webkit) === null || _c === void 0 ? void 0 : _c.messageHandlers) === null || _d === void 0 ? void 0 : _d['external']) === null || _e === void 0 ? void 0 : _e.postMessage) { + return window.webkit.messageHandlers['external'].postMessage.bind(window.webkit.messageHandlers['external']); + } + } + catch (e) { } + console.warn('\n%c⚠️ Browser Environment Detected %c\n\n%cOnly UI previews are available in the browser. For full functionality, please run the application in desktop mode.\nMore information at: https://v3.wails.io/learn/build/#using-a-browser-for-development\n', 'background: #ffffff; color: #000000; font-weight: bold; padding: 4px 8px; border-radius: 4px; border: 2px solid #000000;', 'background: transparent;', 'color: #ffffff; font-style: italic; font-weight: bold;'); + return null; +})(); +export function invoke(msg) { + _invoke === null || _invoke === void 0 ? void 0 : _invoke(msg); +} +/** + * Retrieves the system dark mode status. + * + * @returns A promise that resolves to a boolean value indicating if the system is in dark mode. + */ +export function IsDarkMode() { + return call(SystemIsDarkMode); +} +/** + * Fetches the capabilities of the application from the server. + * + * @returns A promise that resolves to an object containing the capabilities. + */ +export async function Capabilities() { + let response = await fetch("/wails/capabilities"); + if (response.ok) { + return response.json(); + } + else { + throw new Error("could not fetch capabilities: " + response.statusText); + } +} +/** + * Retrieves environment details. + * + * @returns A promise that resolves to an object containing OS and system architecture. + */ +export function Environment() { + return call(SystemEnvironment); +} +/** + * Checks if the current operating system is Windows. + * + * @return True if the operating system is Windows, otherwise false. + */ +export function IsWindows() { + return window._wails.environment.OS === "windows"; +} +/** + * Checks if the current operating system is Linux. + * + * @returns Returns true if the current operating system is Linux, false otherwise. + */ +export function IsLinux() { + return window._wails.environment.OS === "linux"; +} +/** + * Checks if the current environment is a macOS operating system. + * + * @returns True if the environment is macOS, false otherwise. + */ +export function IsMac() { + return window._wails.environment.OS === "darwin"; +} +/** + * Checks if the current environment architecture is AMD64. + * + * @returns True if the current environment architecture is AMD64, false otherwise. + */ +export function IsAMD64() { + return window._wails.environment.Arch === "amd64"; +} +/** + * Checks if the current architecture is ARM. + * + * @returns True if the current architecture is ARM, false otherwise. + */ +export function IsARM() { + return window._wails.environment.Arch === "arm"; +} +/** + * Checks if the current environment is ARM64 architecture. + * + * @returns Returns true if the environment is ARM64 architecture, otherwise returns false. + */ +export function IsARM64() { + return window._wails.environment.Arch === "arm64"; +} +/** + * Reports whether the app is being run in debug mode. + * + * @returns True if the app is being run in debug mode. + */ +export function IsDebug() { + return Boolean(window._wails.environment.Debug); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/utils.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/utils.js new file mode 100644 index 000000000..4752828c8 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/utils.js @@ -0,0 +1,95 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +/** + * Logs a message to the console with custom formatting. + * + * @param message - The message to be logged. + */ +export function debugLog(message) { + // eslint-disable-next-line + console.log('%c wails3 %c ' + message + ' ', 'background: #aa0000; color: #fff; border-radius: 3px 0px 0px 3px; padding: 1px; font-size: 0.7rem', 'background: #009900; color: #fff; border-radius: 0px 3px 3px 0px; padding: 1px; font-size: 0.7rem'); +} +/** + * Checks whether the webview supports the {@link MouseEvent#buttons} property. + * Looking at you macOS High Sierra! + */ +export function canTrackButtons() { + return (new MouseEvent('mousedown')).buttons === 0; +} +/** + * Checks whether the browser supports removing listeners by triggering an AbortSignal + * (see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#signal). + */ +export function canAbortListeners() { + if (!EventTarget || !AbortSignal || !AbortController) + return false; + let result = true; + const target = new EventTarget(); + const controller = new AbortController(); + target.addEventListener('test', () => { result = false; }, { signal: controller.signal }); + controller.abort(); + target.dispatchEvent(new CustomEvent('test')); + return result; +} +/** + * Resolves the closest HTMLElement ancestor of an event's target. + */ +export function eventTarget(event) { + var _a; + if (event.target instanceof HTMLElement) { + return event.target; + } + else if (!(event.target instanceof HTMLElement) && event.target instanceof Node) { + return (_a = event.target.parentElement) !== null && _a !== void 0 ? _a : document.body; + } + else { + return document.body; + } +} +/*** + This technique for proper load detection is taken from HTMX: + + BSD 2-Clause License + + Copyright (c) 2020, Big Sky Software + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ***/ +let isReady = false; +document.addEventListener('DOMContentLoaded', () => { isReady = true; }); +export function whenReady(callback) { + if (isReady || document.readyState === 'complete') { + callback(); + } + else { + document.addEventListener('DOMContentLoaded', callback); + } +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/window.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/window.js new file mode 100644 index 000000000..c44d1ee71 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/window.js @@ -0,0 +1,438 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { newRuntimeCaller, objectNames } from "./runtime.js"; +const PositionMethod = 0; +const CenterMethod = 1; +const CloseMethod = 2; +const DisableSizeConstraintsMethod = 3; +const EnableSizeConstraintsMethod = 4; +const FocusMethod = 5; +const ForceReloadMethod = 6; +const FullscreenMethod = 7; +const GetScreenMethod = 8; +const GetZoomMethod = 9; +const HeightMethod = 10; +const HideMethod = 11; +const IsFocusedMethod = 12; +const IsFullscreenMethod = 13; +const IsMaximisedMethod = 14; +const IsMinimisedMethod = 15; +const MaximiseMethod = 16; +const MinimiseMethod = 17; +const NameMethod = 18; +const OpenDevToolsMethod = 19; +const RelativePositionMethod = 20; +const ReloadMethod = 21; +const ResizableMethod = 22; +const RestoreMethod = 23; +const SetPositionMethod = 24; +const SetAlwaysOnTopMethod = 25; +const SetBackgroundColourMethod = 26; +const SetFramelessMethod = 27; +const SetFullscreenButtonEnabledMethod = 28; +const SetMaxSizeMethod = 29; +const SetMinSizeMethod = 30; +const SetRelativePositionMethod = 31; +const SetResizableMethod = 32; +const SetSizeMethod = 33; +const SetTitleMethod = 34; +const SetZoomMethod = 35; +const ShowMethod = 36; +const SizeMethod = 37; +const ToggleFullscreenMethod = 38; +const ToggleMaximiseMethod = 39; +const UnFullscreenMethod = 40; +const UnMaximiseMethod = 41; +const UnMinimiseMethod = 42; +const WidthMethod = 43; +const ZoomMethod = 44; +const ZoomInMethod = 45; +const ZoomOutMethod = 46; +const ZoomResetMethod = 47; +// Private field names. +const callerSym = Symbol("caller"); +class Window { + /** + * Initialises a window object with the specified name. + * + * @private + * @param name - The name of the target window. + */ + constructor(name = '') { + this[callerSym] = newRuntimeCaller(objectNames.Window, name); + // bind instance method to make them easily usable in event handlers + for (const method of Object.getOwnPropertyNames(Window.prototype)) { + if (method !== "constructor" + && typeof this[method] === "function") { + this[method] = this[method].bind(this); + } + } + } + /** + * Gets the specified window. + * + * @param name - The name of the window to get. + * @returns The corresponding window object. + */ + Get(name) { + return new Window(name); + } + /** + * Returns the absolute position of the window. + * + * @returns The current absolute position of the window. + */ + Position() { + return this[callerSym](PositionMethod); + } + /** + * Centers the window on the screen. + */ + Center() { + return this[callerSym](CenterMethod); + } + /** + * Closes the window. + */ + Close() { + return this[callerSym](CloseMethod); + } + /** + * Disables min/max size constraints. + */ + DisableSizeConstraints() { + return this[callerSym](DisableSizeConstraintsMethod); + } + /** + * Enables min/max size constraints. + */ + EnableSizeConstraints() { + return this[callerSym](EnableSizeConstraintsMethod); + } + /** + * Focuses the window. + */ + Focus() { + return this[callerSym](FocusMethod); + } + /** + * Forces the window to reload the page assets. + */ + ForceReload() { + return this[callerSym](ForceReloadMethod); + } + /** + * Switches the window to fullscreen mode. + */ + Fullscreen() { + return this[callerSym](FullscreenMethod); + } + /** + * Returns the screen that the window is on. + * + * @returns The screen the window is currently on. + */ + GetScreen() { + return this[callerSym](GetScreenMethod); + } + /** + * Returns the current zoom level of the window. + * + * @returns The current zoom level. + */ + GetZoom() { + return this[callerSym](GetZoomMethod); + } + /** + * Returns the height of the window. + * + * @returns The current height of the window. + */ + Height() { + return this[callerSym](HeightMethod); + } + /** + * Hides the window. + */ + Hide() { + return this[callerSym](HideMethod); + } + /** + * Returns true if the window is focused. + * + * @returns Whether the window is currently focused. + */ + IsFocused() { + return this[callerSym](IsFocusedMethod); + } + /** + * Returns true if the window is fullscreen. + * + * @returns Whether the window is currently fullscreen. + */ + IsFullscreen() { + return this[callerSym](IsFullscreenMethod); + } + /** + * Returns true if the window is maximised. + * + * @returns Whether the window is currently maximised. + */ + IsMaximised() { + return this[callerSym](IsMaximisedMethod); + } + /** + * Returns true if the window is minimised. + * + * @returns Whether the window is currently minimised. + */ + IsMinimised() { + return this[callerSym](IsMinimisedMethod); + } + /** + * Maximises the window. + */ + Maximise() { + return this[callerSym](MaximiseMethod); + } + /** + * Minimises the window. + */ + Minimise() { + return this[callerSym](MinimiseMethod); + } + /** + * Returns the name of the window. + * + * @returns The name of the window. + */ + Name() { + return this[callerSym](NameMethod); + } + /** + * Opens the development tools pane. + */ + OpenDevTools() { + return this[callerSym](OpenDevToolsMethod); + } + /** + * Returns the relative position of the window to the screen. + * + * @returns The current relative position of the window. + */ + RelativePosition() { + return this[callerSym](RelativePositionMethod); + } + /** + * Reloads the page assets. + */ + Reload() { + return this[callerSym](ReloadMethod); + } + /** + * Returns true if the window is resizable. + * + * @returns Whether the window is currently resizable. + */ + Resizable() { + return this[callerSym](ResizableMethod); + } + /** + * Restores the window to its previous state if it was previously minimised, maximised or fullscreen. + */ + Restore() { + return this[callerSym](RestoreMethod); + } + /** + * Sets the absolute position of the window. + * + * @param x - The desired horizontal absolute position of the window. + * @param y - The desired vertical absolute position of the window. + */ + SetPosition(x, y) { + return this[callerSym](SetPositionMethod, { x, y }); + } + /** + * Sets the window to be always on top. + * + * @param alwaysOnTop - Whether the window should stay on top. + */ + SetAlwaysOnTop(alwaysOnTop) { + return this[callerSym](SetAlwaysOnTopMethod, { alwaysOnTop }); + } + /** + * Sets the background colour of the window. + * + * @param r - The desired red component of the window background. + * @param g - The desired green component of the window background. + * @param b - The desired blue component of the window background. + * @param a - The desired alpha component of the window background. + */ + SetBackgroundColour(r, g, b, a) { + return this[callerSym](SetBackgroundColourMethod, { r, g, b, a }); + } + /** + * Removes the window frame and title bar. + * + * @param frameless - Whether the window should be frameless. + */ + SetFrameless(frameless) { + return this[callerSym](SetFramelessMethod, { frameless }); + } + /** + * Disables the system fullscreen button. + * + * @param enabled - Whether the fullscreen button should be enabled. + */ + SetFullscreenButtonEnabled(enabled) { + return this[callerSym](SetFullscreenButtonEnabledMethod, { enabled }); + } + /** + * Sets the maximum size of the window. + * + * @param width - The desired maximum width of the window. + * @param height - The desired maximum height of the window. + */ + SetMaxSize(width, height) { + return this[callerSym](SetMaxSizeMethod, { width, height }); + } + /** + * Sets the minimum size of the window. + * + * @param width - The desired minimum width of the window. + * @param height - The desired minimum height of the window. + */ + SetMinSize(width, height) { + return this[callerSym](SetMinSizeMethod, { width, height }); + } + /** + * Sets the relative position of the window to the screen. + * + * @param x - The desired horizontal relative position of the window. + * @param y - The desired vertical relative position of the window. + */ + SetRelativePosition(x, y) { + return this[callerSym](SetRelativePositionMethod, { x, y }); + } + /** + * Sets whether the window is resizable. + * + * @param resizable - Whether the window should be resizable. + */ + SetResizable(resizable) { + return this[callerSym](SetResizableMethod, { resizable }); + } + /** + * Sets the size of the window. + * + * @param width - The desired width of the window. + * @param height - The desired height of the window. + */ + SetSize(width, height) { + return this[callerSym](SetSizeMethod, { width, height }); + } + /** + * Sets the title of the window. + * + * @param title - The desired title of the window. + */ + SetTitle(title) { + return this[callerSym](SetTitleMethod, { title }); + } + /** + * Sets the zoom level of the window. + * + * @param zoom - The desired zoom level. + */ + SetZoom(zoom) { + return this[callerSym](SetZoomMethod, { zoom }); + } + /** + * Shows the window. + */ + Show() { + return this[callerSym](ShowMethod); + } + /** + * Returns the size of the window. + * + * @returns The current size of the window. + */ + Size() { + return this[callerSym](SizeMethod); + } + /** + * Toggles the window between fullscreen and normal. + */ + ToggleFullscreen() { + return this[callerSym](ToggleFullscreenMethod); + } + /** + * Toggles the window between maximised and normal. + */ + ToggleMaximise() { + return this[callerSym](ToggleMaximiseMethod); + } + /** + * Un-fullscreens the window. + */ + UnFullscreen() { + return this[callerSym](UnFullscreenMethod); + } + /** + * Un-maximises the window. + */ + UnMaximise() { + return this[callerSym](UnMaximiseMethod); + } + /** + * Un-minimises the window. + */ + UnMinimise() { + return this[callerSym](UnMinimiseMethod); + } + /** + * Returns the width of the window. + * + * @returns The current width of the window. + */ + Width() { + return this[callerSym](WidthMethod); + } + /** + * Zooms the window. + */ + Zoom() { + return this[callerSym](ZoomMethod); + } + /** + * Increases the zoom level of the webview content. + */ + ZoomIn() { + return this[callerSym](ZoomInMethod); + } + /** + * Decreases the zoom level of the webview content. + */ + ZoomOut() { + return this[callerSym](ZoomOutMethod); + } + /** + * Resets the zoom level of the webview content. + */ + ZoomReset() { + return this[callerSym](ZoomResetMethod); + } +} +/** + * The window within which the script is running. + */ +const thisWindow = new Window(''); +export default thisWindow; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/dist/wml.js b/v3/internal/runtime/desktop/@wailsio/runtime/dist/wml.js new file mode 100644 index 000000000..993928237 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/dist/wml.js @@ -0,0 +1,179 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ +import { OpenURL } from "./browser.js"; +import { Question } from "./dialogs.js"; +import { Emit, WailsEvent } from "./events.js"; +import { canAbortListeners, whenReady } from "./utils.js"; +import Window from "./window.js"; +/** + * Sends an event with the given name and optional data. + * + * @param eventName - - The name of the event to send. + * @param [data=null] - - Optional data to send along with the event. + */ +function sendEvent(eventName, data = null) { + Emit(new WailsEvent(eventName, data)); +} +/** + * Calls a method on a specified window. + * + * @param windowName - The name of the window to call the method on. + * @param methodName - The name of the method to call. + */ +function callWindowMethod(windowName, methodName) { + const targetWindow = Window.Get(windowName); + const method = targetWindow[methodName]; + if (typeof method !== "function") { + console.error(`Window method '${methodName}' not found`); + return; + } + try { + method.call(targetWindow); + } + catch (e) { + console.error(`Error calling window method '${methodName}': `, e); + } +} +/** + * Responds to a triggering event by running appropriate WML actions for the current target. + */ +function onWMLTriggered(ev) { + const element = ev.currentTarget; + function runEffect(choice = "Yes") { + if (choice !== "Yes") + return; + const eventType = element.getAttribute('wml-event') || element.getAttribute('data-wml-event'); + const targetWindow = element.getAttribute('wml-target-window') || element.getAttribute('data-wml-target-window') || ""; + const windowMethod = element.getAttribute('wml-window') || element.getAttribute('data-wml-window'); + const url = element.getAttribute('wml-openurl') || element.getAttribute('data-wml-openurl'); + if (eventType !== null) + sendEvent(eventType); + if (windowMethod !== null) + callWindowMethod(targetWindow, windowMethod); + if (url !== null) + void OpenURL(url); + } + const confirm = element.getAttribute('wml-confirm') || element.getAttribute('data-wml-confirm'); + if (confirm) { + Question({ + Title: "Confirm", + Message: confirm, + Detached: false, + Buttons: [ + { Label: "Yes" }, + { Label: "No", IsDefault: true } + ] + }).then(runEffect); + } + else { + runEffect(); + } +} +// Private field names. +const controllerSym = Symbol("controller"); +const triggerMapSym = Symbol("triggerMap"); +const elementCountSym = Symbol("elementCount"); +/** + * AbortControllerRegistry does not actually remember active event listeners: instead + * it ties them to an AbortSignal and uses an AbortController to remove them all at once. + */ +class AbortControllerRegistry { + constructor() { + this[controllerSym] = new AbortController(); + } + /** + * Returns an options object for addEventListener that ties the listener + * to the AbortSignal from the current AbortController. + * + * @param element - An HTML element + * @param triggers - The list of active WML trigger events for the specified elements + */ + set(element, triggers) { + return { signal: this[controllerSym].signal }; + } + /** + * Removes all registered event listeners and resets the registry. + */ + reset() { + this[controllerSym].abort(); + this[controllerSym] = new AbortController(); + } +} +/** + * WeakMapRegistry maps active trigger events to each DOM element through a WeakMap. + * This ensures that the mapping remains private to this module, while still allowing garbage + * collection of the involved elements. + */ +class WeakMapRegistry { + constructor() { + this[triggerMapSym] = new WeakMap(); + this[elementCountSym] = 0; + } + /** + * Sets active triggers for the specified element. + * + * @param element - An HTML element + * @param triggers - The list of active WML trigger events for the specified element + */ + set(element, triggers) { + if (!this[triggerMapSym].has(element)) { + this[elementCountSym]++; + } + this[triggerMapSym].set(element, triggers); + return {}; + } + /** + * Removes all registered event listeners. + */ + reset() { + if (this[elementCountSym] <= 0) + return; + for (const element of document.body.querySelectorAll('*')) { + if (this[elementCountSym] <= 0) + break; + const triggers = this[triggerMapSym].get(element); + if (triggers != null) { + this[elementCountSym]--; + } + for (const trigger of triggers || []) + element.removeEventListener(trigger, onWMLTriggered); + } + this[triggerMapSym] = new WeakMap(); + this[elementCountSym] = 0; + } +} +const triggerRegistry = canAbortListeners() ? new AbortControllerRegistry() : new WeakMapRegistry(); +/** + * Adds event listeners to the specified element. + */ +function addWMLListeners(element) { + const triggerRegExp = /\S+/g; + const triggerAttr = (element.getAttribute('wml-trigger') || element.getAttribute('data-wml-trigger') || "click"); + const triggers = []; + let match; + while ((match = triggerRegExp.exec(triggerAttr)) !== null) + triggers.push(match[0]); + const options = triggerRegistry.set(element, triggers); + for (const trigger of triggers) + element.addEventListener(trigger, onWMLTriggered, options); +} +/** + * Schedules an automatic reload of WML to be performed as soon as the document is fully loaded. + */ +export function Enable() { + whenReady(Reload); +} +/** + * Reloads the WML page by adding necessary event listeners and browser listeners. + */ +export function Reload() { + triggerRegistry.reset(); + document.body.querySelectorAll('[wml-event], [wml-window], [wml-openurl], [data-wml-event], [data-wml-window], [data-wml-openurl]').forEach(addWMLListeners); +} diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/hierarchy.js b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/hierarchy.js new file mode 100644 index 000000000..6eb336562 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/hierarchy.js @@ -0,0 +1 @@ +window.hierarchyData = "eJylk09PAjEQxb/LnAvSsv/Ym6jxgsGIF2MIqbuz0tDtmrZ4IfvdTSGSYljThVObNm/m9+a1O9BNYw3k7zGLCKWThNBRPCIZSwgdp9mSgMZKYmFFowzkO4hZ5BbFa4Qc7rgqUEr+IfFZN7UwOBMbBAIboUrIWZwQ2GoJOQhlUVe8QHNzXjRc21oCgUJyYyAHa8qBqzI4Kt3lWshSo3LAUbpsCcRR+i/PkYWy7Jdl3+IsSCfE4aAlkLHE6xduerXfKy5Xw+tNTxj1IJ6wFHzRbHXRA8ITBUC0BNy78Jo+fKOyr1x/og1v6on6Op8wSiilI2ffrR7KwcV0W1Wow1l8VeAE6MRve1uWez8zYSwq1POvwycJJugoEAyT/I3jYpILMU4CctPZh8Mif0ovyEv3wRZWI6+nb/OpO+kTVFeFwDmxOO3EuceKb6W9juikSCDUOM06oR5dCKK4DuqkSO8oWTQibnDLtm1/AIRmEWo=" \ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/highlight.css b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/highlight.css index 5674cf392..878117697 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/highlight.css +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/highlight.css @@ -1,22 +1,64 @@ :root { + --light-hl-0: #0000FF; + --dark-hl-0: #569CD6; + --light-hl-1: #000000; + --dark-hl-1: #D4D4D4; + --light-hl-2: #001080; + --dark-hl-2: #9CDCFE; + --light-hl-3: #795E26; + --dark-hl-3: #DCDCAA; + --light-hl-4: #008000; + --dark-hl-4: #6A9955; + --light-hl-5: #AF00DB; + --dark-hl-5: #C586C0; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @media (prefers-color-scheme: light) { :root { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); --code-background: var(--light-code-background); } } @media (prefers-color-scheme: dark) { :root { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); --code-background: var(--dark-code-background); } } :root[data-theme='light'] { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); --code-background: var(--light-code-background); } :root[data-theme='dark'] { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); --code-background: var(--dark-code-background); } +.hl-0 { color: var(--hl-0); } +.hl-1 { color: var(--hl-1); } +.hl-2 { color: var(--hl-2); } +.hl-3 { color: var(--hl-3); } +.hl-4 { color: var(--hl-4); } +.hl-5 { color: var(--hl-5); } pre, code { background: var(--code-background); } diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.js b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.js index b79c9e89f..58882d76d 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.js @@ -1,15 +1,18 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.svg b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.svg index 7dead6118..50ad5799d 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.svg +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/icons.svg @@ -1 +1 @@ - \ No newline at end of file +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/main.js b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/main.js index 1daeb6900..2363f64c2 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/main.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/main.js @@ -1,8 +1,9 @@ "use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.scrollToHash(),this.updateIndexVisibility())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.scrollToHash(),this.updateIndexVisibility())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings.","hierarchy_expand":"Expand","hierarchy_collapse":"Collapse","folder":"Folder","kind_1":"Project","kind_2":"Module","kind_4":"Namespace","kind_8":"Enumeration","kind_16":"Enumeration Member","kind_32":"Variable","kind_64":"Function","kind_128":"Class","kind_256":"Interface","kind_512":"Constructor","kind_1024":"Property","kind_2048":"Method","kind_4096":"Call Signature","kind_8192":"Index Signature","kind_16384":"Constructor Signature","kind_32768":"Parameter","kind_65536":"Type Literal","kind_131072":"Type Parameter","kind_262144":"Accessor","kind_524288":"Get Signature","kind_1048576":"Set Signature","kind_2097152":"Type Alias","kind_4194304":"Reference","kind_8388608":"Document"}; +"use strict";(()=>{var De=Object.create;var le=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var qe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var je=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ne(e))!Be.call(t,i)&&i!==n&&le(t,i,{get:()=>e[i],enumerable:!(r=Fe(e,i))||r.enumerable});return t};var $e=(t,e,n)=>(n=t!=null?De(Ve(t)):{},je(e||!t||!t.__esModule?le(n,"default",{value:t,enumerable:!0}):n,t));var pe=qe((de,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,c],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[c+1]*i[d+1],c+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var c=s.node.edges["*"];else{var c=new t.TokenSet;s.node.edges["*"]=c}s.str.length==1&&(c.final=!0),i.push({node:c,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof de=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});window.translations||={copy:"Copy",copied:"Copied!",normally_hidden:"This member is normally hidden due to your filter settings.",hierarchy_expand:"Expand",hierarchy_collapse:"Collapse",folder:"Folder",kind_1:"Project",kind_2:"Module",kind_4:"Namespace",kind_8:"Enumeration",kind_16:"Enumeration Member",kind_32:"Variable",kind_64:"Function",kind_128:"Class",kind_256:"Interface",kind_512:"Constructor",kind_1024:"Property",kind_2048:"Method",kind_4096:"Call Signature",kind_8192:"Index Signature",kind_16384:"Constructor Signature",kind_32768:"Parameter",kind_65536:"Type Literal",kind_131072:"Type Parameter",kind_262144:"Accessor",kind_524288:"Get Signature",kind_1048576:"Set Signature",kind_2097152:"Type Alias",kind_4194304:"Reference",kind_8388608:"Document"};var ce=[];function G(t,e){ce.push({selector:e,constructor:t})}var J=class{alwaysVisibleMember=null;constructor(){this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){ce.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!ze(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function ze(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var ue=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var ge=$e(pe(),1);async function A(t){let e=Uint8Array.from(atob(t),s=>s.charCodeAt(0)),r=new Blob([e]).stream().pipeThrough(new DecompressionStream("deflate")),i=await new Response(r).text();return JSON.parse(i)}async function fe(t,e){if(!window.searchData)return;let n=await A(window.searchData);t.data=n,t.index=ge.Index.load(n.index),e.classList.remove("loading"),e.classList.add("ready")}function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:document.documentElement.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{fe(e,t)}),fe(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{re(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),We(t,i,r,e)}function We(t,e,n,r){n.addEventListener("input",ue(()=>{Ue(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Je(e,t):i.key=="ArrowUp"?(me(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(me(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),re(t))})}function re(t){t.classList.remove("has-focus")}function Ue(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ye(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ye(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=c+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function me(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Je(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),re(e)}}function ye(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ne(t.substring(s,o)),`${ne(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ne(t.substring(s))),i.join("")}var Ge={"&":"&","<":"<",">":">","'":"'",'"':"""};function ne(t){return t.replace(/[&<>"'"]/g,e=>Ge[e])}var I=class{el;app;constructor(e){this.el=e.el,this.app=e.app}};var H="mousedown",Ee="mousemove",B="mouseup",X={x:0,y:0},xe=!1,ie=!1,Xe=!1,D=!1,be=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(be?"is-mobile":"not-mobile");be&&"ontouchstart"in document.documentElement&&(Xe=!0,H="touchstart",Ee="touchmove",B="touchend");document.addEventListener(H,t=>{ie=!0,D=!1;let e=H=="touchstart"?t.targetTouches[0]:t;X.y=e.pageY||0,X.x=e.pageX||0});document.addEventListener(Ee,t=>{if(ie&&!D){let e=H=="touchstart"?t.targetTouches[0]:t,n=X.x-(e.pageX||0),r=X.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ie=!1});document.addEventListener("click",t=>{xe&&(t.preventDefault(),t.stopImmediatePropagation(),xe=!1)});var Y=class extends I{active;className;constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(H,n=>this.onDocumentPointerDown(n)),document.addEventListener(B,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var se;try{se=localStorage}catch{se={getItem(){return null},setItem(){}}}var C=se;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var Z=class extends I{key;value;constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),Le.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=C.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){C.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var oe=new Map,ae=class{open;accordions=[];key;constructor(e,n){this.key=e,this.open=n}add(e){this.accordions.push(e),e.open=this.open,e.addEventListener("toggle",()=>{this.toggle(e.open)})}toggle(e){for(let n of this.accordions)n.open=e;C.setItem(this.key,e.toString())}},K=class extends I{constructor(e){super(e);let n=this.el.querySelector("summary"),r=n.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)});let i=`tsd-accordion-${n.dataset.key??n.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`,s;if(oe.has(i))s=oe.get(i);else{let o=C.getItem(i),a=o?o==="true":this.el.open;s=new ae(i,a),oe.set(i,s)}s.add(this.el)}};function Se(t){let e=C.getItem("tsd-theme")||"os";t.value=e,we(e),t.addEventListener("change",()=>{C.setItem("tsd-theme",t.value),we(t.value)})}function we(t){document.documentElement.dataset.theme=t}var ee;function Ce(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Te),Te())}async function Te(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let e=await A(window.navigationData);ee=document.documentElement.dataset.base,ee.endsWith("/")||(ee+="/"),t.innerHTML="";for(let n of e)Ie(n,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Ie(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',ke(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let c of t.children)Ie(c,l,i)}else ke(t,r,t.class)}function ke(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));if(r.href=ee+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind){let i=window.translations[`kind_${t.kind}`].replaceAll('"',""");r.innerHTML=``}r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span")),i=window.translations.folder.replaceAll('"',""");r.innerHTML=``,r.appendChild(document.createElement("span")).textContent=t.text}}var te=document.documentElement.dataset.base;te.endsWith("/")||(te+="/");function Pe(){document.querySelector(".tsd-full-hierarchy")?Ye():document.querySelector(".tsd-hierarchy")&&Ze()}function Ye(){document.addEventListener("click",r=>{let i=r.target;for(;i.parentElement&&i.parentElement.tagName!="LI";)i=i.parentElement;i.dataset.dropdown&&(i.dataset.dropdown=String(i.dataset.dropdown!=="true"))});let t=new Map,e=new Set;for(let r of document.querySelectorAll(".tsd-full-hierarchy [data-refl]")){let i=r.querySelector("ul");t.has(r.dataset.refl)?e.add(r.dataset.refl):i&&t.set(r.dataset.refl,i)}for(let r of e)n(r);function n(r){let i=t.get(r).cloneNode(!0);i.querySelectorAll("[id]").forEach(s=>{s.removeAttribute("id")}),i.querySelectorAll("[data-dropdown]").forEach(s=>{s.dataset.dropdown="false"});for(let s of document.querySelectorAll(`[data-refl="${r}"]`)){let o=tt(),a=s.querySelector("ul");s.insertBefore(o,a),o.dataset.dropdown=String(!!a),a||s.appendChild(i.cloneNode(!0))}}}function Ze(){let t=document.getElementById("tsd-hierarchy-script");t&&(t.addEventListener("load",Qe),Qe())}async function Qe(){let t=document.querySelector(".tsd-panel.tsd-hierarchy:has(h4 a)");if(!t||!window.hierarchyData)return;let e=+t.dataset.refl,n=await A(window.hierarchyData),r=t.querySelector("ul"),i=document.createElement("ul");if(i.classList.add("tsd-hierarchy"),Ke(i,n,e),r.querySelectorAll("li").length==i.querySelectorAll("li").length)return;let s=document.createElement("span");s.classList.add("tsd-hierarchy-toggle"),s.textContent=window.translations.hierarchy_expand,t.querySelector("h4 a")?.insertAdjacentElement("afterend",s),s.insertAdjacentText("beforebegin",", "),s.addEventListener("click",()=>{s.textContent===window.translations.hierarchy_expand?(r.insertAdjacentElement("afterend",i),r.remove(),s.textContent=window.translations.hierarchy_collapse):(i.insertAdjacentElement("afterend",r),i.remove(),s.textContent=window.translations.hierarchy_expand)})}function Ke(t,e,n){let r=e.roots.filter(i=>et(e,i,n));for(let i of r)t.appendChild(_e(e,i,n))}function _e(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let i=t.reflections[e],s=document.createElement("li");if(s.classList.add("tsd-hierarchy-item"),e===n){let o=s.appendChild(document.createElement("span"));o.textContent=i.name,o.classList.add("tsd-hierarchy-target")}else{for(let a of i.uniqueNameParents||[]){let l=t.reflections[a],c=s.appendChild(document.createElement("a"));c.textContent=l.name,c.href=te+l.url,c.className=l.class+" tsd-signature-type",s.append(document.createTextNode("."))}let o=s.appendChild(document.createElement("a"));o.textContent=t.reflections[e].name,o.href=te+i.url,o.className=i.class+" tsd-signature-type"}if(i.children){let o=s.appendChild(document.createElement("ul"));o.classList.add("tsd-hierarchy");for(let a of i.children){let l=_e(t,a,n,r);l&&o.appendChild(l)}}return r.delete(e),s}function et(t,e,n){if(e===n)return!0;let r=new Set,i=[t.reflections[e]];for(;i.length;){let s=i.pop();if(!r.has(s)){r.add(s);for(let o of s.children||[]){if(o===n)return!0;i.push(t.reflections[o])}}}return!1}function tt(){let t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("width","20"),t.setAttribute("height","20"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.innerHTML='',t}G(Y,"a[data-toggle]");G(K,".tsd-accordion");G(Z,".tsd-filter-item input[type=checkbox]");var Oe=document.getElementById("tsd-theme");Oe&&Se(Oe);var nt=new J;Object.defineProperty(window,"app",{value:nt});ve();Ce();Pe();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/navigation.js b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/navigation.js index afd558a28..671dd0d8a 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/navigation.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA5WYUU/bMBDHv0ue0aYxhibeCgWGRGBrN/UB7cFNr2DhOJHjFMq07z45jlOnOf7NnkC5//18Pp/vDA9/EkuvNjlLJmWpZCasLHRylJTCPiVnSV6sakXVx8j44cnmKjlKnqVeJWcnR0n2JNXKkE7OHjrYN7miHWVd68y59jlO04ednvw96hA/amkPIZwGIOZPxcshhNMMEL8jyLkpXioyw5y0hlH5uC9J/5rdcsEETCuBsVwIpYaBuK+jopjV2sqcLo0pov1kSlRVwMSSPvPT8de9SO7LZgc7ktSWzFpkARaJ+qzjL6dxhrc3Uy4zDcMZwRGfb+9EzpZa6+3MwL+f0T3vYWL3z0PJclkIs2IOJZhGncyc7E/3GxdJB2pFYDeHGSygtyVDwhKzn+b7qM1M9JYNwhMmegt2MDFGQG9nh/Vgaa5kxpeEZ3QawElFCQipKIHvXa2UWCoUQpCg5mVNnfGn6RleAA9zKoUqHqvhabaGUcd5Xlsbz4TolgeMl6A7fiUVXUll40bKgHYyBEupqsQjeSfUhQKWc0ALuF7sQhm/AuuBlpiLDf3fEqwHWmKvz+8KKBCZLt8rwRu9LpC/swP3kBOECBr4EKCq/yoZYoIG3ac2fQgTNACzEEZL/YgorQTezMsNactcTP991L1cCKmqRj+c5S1mJ0Gz/Oe2pCiUjTDS9aaO0tj7gM/H8V5y/qXWujszqpL1Gjjfr9fYd8LP7537hJnhEYEtq+CN6ulep7WysuQrqiMEESTx46pjwElVka3ZWdW6N3ZYi1dKcDOi+TyqEq/JOjEXhIe0AhjFPDNEmomjNYx74VI8MqMmGiBOANtyo4MI/xNC5BthhHwjBLgm+05dB4JXgLK4JntRG9PrDiymVWHUdyNzYdiHWYRqVfiYt5WlnDnl5vuoQ77UG2kKnZO2/QkVZ9rj9qRw5s8PwbwCMS5EKZZSSSvjhhrlyoNiGch7FDyARSo0yqtJOj09AZxWgRmzFBNm6SH/QzE4BWRMhXlOC/7fCx0miDCJljXbtHYYp4CMW6nrV8hoFJCRigwSUpFB/4XUq+IFFVynARypN8UzyqoXwMu9SG+HN3uR3o681u/90eQI3grin5EqxOo9d2/FwTcp4t5B3gJeQFLzLyD3fbjmP+Wr38F0EwAA" \ No newline at end of file +window.navigationData = "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" \ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/search.js b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/search.js index ba19b9dbf..075d3a4de 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/search.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,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"; \ No newline at end of file +window.searchData = "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"; \ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/style.css b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/style.css index 072daed85..2ab8b836e 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/style.css +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/style.css @@ -1,87 +1,247 @@ -:root { - /* Light */ - --light-color-background: #f2f4f8; - --light-color-background-secondary: #eff0f1; - --light-color-warning-text: #222; - --light-color-background-warning: #e6e600; - --light-color-icon-background: var(--light-color-background); - --light-color-accent: #c5c7c9; - --light-color-active-menu-item: var(--light-color-accent); - --light-color-text: #222; - --light-color-text-aside: #6e6e6e; - --light-color-link: #1f70c2; - - --light-color-ts-keyword: #056bd6; - --light-color-ts-project: #b111c9; - --light-color-ts-module: var(--light-color-ts-project); - --light-color-ts-namespace: var(--light-color-ts-project); - --light-color-ts-enum: #7e6f15; - --light-color-ts-enum-member: var(--light-color-ts-enum); - --light-color-ts-variable: #4760ec; - --light-color-ts-function: #572be7; - --light-color-ts-class: #1f70c2; - --light-color-ts-interface: #108024; - --light-color-ts-constructor: var(--light-color-ts-class); - --light-color-ts-property: var(--light-color-ts-variable); - --light-color-ts-method: var(--light-color-ts-function); - --light-color-ts-call-signature: var(--light-color-ts-method); - --light-color-ts-index-signature: var(--light-color-ts-property); - --light-color-ts-constructor-signature: var(--light-color-ts-constructor); - --light-color-ts-parameter: var(--light-color-ts-variable); - /* type literal not included as links will never be generated to it */ - --light-color-ts-type-parameter: #a55c0e; - --light-color-ts-accessor: var(--light-color-ts-property); - --light-color-ts-get-signature: var(--light-color-ts-accessor); - --light-color-ts-set-signature: var(--light-color-ts-accessor); - --light-color-ts-type-alias: #d51270; - /* reference not included as links will be colored with the kind that it points to */ - - --light-external-icon: url("data:image/svg+xml;utf8,"); - --light-color-scheme: light; - - /* Dark */ - --dark-color-background: #2b2e33; - --dark-color-background-secondary: #1e2024; - --dark-color-background-warning: #bebe00; - --dark-color-warning-text: #222; - --dark-color-icon-background: var(--dark-color-background-secondary); - --dark-color-accent: #9096a2; - --dark-color-active-menu-item: #5d5d6a; - --dark-color-text: #f5f5f5; - --dark-color-text-aside: #dddddd; - --dark-color-link: #00aff4; - - --dark-color-ts-keyword: #3399ff; - --dark-color-ts-project: #e358ff; - --dark-color-ts-module: var(--dark-color-ts-project); - --dark-color-ts-namespace: var(--dark-color-ts-project); - --dark-color-ts-enum: #f4d93e; - --dark-color-ts-enum-member: var(--dark-color-ts-enum); - --dark-color-ts-variable: #798dff; - --dark-color-ts-function: #a280ff; - --dark-color-ts-class: #8ac4ff; - --dark-color-ts-interface: #6cff87; - --dark-color-ts-constructor: var(--dark-color-ts-class); - --dark-color-ts-property: var(--dark-color-ts-variable); - --dark-color-ts-method: var(--dark-color-ts-function); - --dark-color-ts-call-signature: var(--dark-color-ts-method); - --dark-color-ts-index-signature: var(--dark-color-ts-property); - --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); - --dark-color-ts-parameter: var(--dark-color-ts-variable); - /* type literal not included as links will never be generated to it */ - --dark-color-ts-type-parameter: #e07d13; - --dark-color-ts-accessor: var(--dark-color-ts-property); - --dark-color-ts-get-signature: var(--dark-color-ts-accessor); - --dark-color-ts-set-signature: var(--dark-color-ts-accessor); - --dark-color-ts-type-alias: #ff6492; - /* reference not included as links will be colored with the kind that it points to */ - - --dark-external-icon: url("data:image/svg+xml;utf8,"); - --dark-color-scheme: dark; -} - -@media (prefers-color-scheme: light) { +@layer typedoc { :root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + + --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; + + --light-color-ts-keyword: #056bd6; + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: #9f5f30; + --light-color-ts-method: #be3989; + --light-color-ts-reference: #ff4d82; + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var( + --light-color-ts-constructor + ); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: #a55c0e; + --light-color-ts-accessor: #c73c3c; + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; + + --light-color-alert-note: #0969d9; + --light-color-alert-tip: #1a7f37; + --light-color-alert-important: #8250df; + --light-color-alert-warning: #9a6700; + --light-color-alert-caution: #cf222e; + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + + --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; + + --dark-color-ts-keyword: #3399ff; + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: #e07d13; + --dark-color-ts-accessor: #ff6060; + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; + + --dark-color-alert-note: #0969d9; + --dark-color-alert-tip: #1a7f37; + --dark-color-alert-important: #8250df; + --dark-color-alert-warning: #9a6700; + --dark-color-alert-caution: #cf222e; + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; + } + + @media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var( + --light-color-background-secondary + ); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --color-alert-note: var(--light-color-alert-note); + --color-alert-tip: var(--light-color-alert-tip); + --color-alert-important: var(--light-color-alert-important); + --color-alert-warning: var(--light-color-alert-warning); + --color-alert-caution: var(--light-color-alert-caution); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } + } + + @media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var( + --dark-color-background-secondary + ); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --color-alert-note: var(--dark-color-alert-note); + --color-alert-tip: var(--dark-color-alert-tip); + --color-alert-important: var(--dark-color-alert-important); + --color-alert-warning: var(--dark-color-alert-warning); + --color-alert-caution: var(--dark-color-alert-caution); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } + } + + html { + color-scheme: var(--color-scheme); + } + + body { + margin: 0; + } + + :root[data-theme="light"] { --color-background: var(--light-color-background); --color-background-secondary: var(--light-color-background-secondary); --color-background-warning: var(--light-color-background-warning); @@ -91,9 +251,16 @@ --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-enum: var(--light-color-ts-enum); @@ -105,6 +272,7 @@ --color-ts-constructor: var(--light-color-ts-constructor); --color-ts-property: var(--light-color-ts-property); --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); --color-ts-call-signature: var(--light-color-ts-call-signature); --color-ts-index-signature: var(--light-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -116,14 +284,19 @@ --color-ts-get-signature: var(--light-color-ts-get-signature); --color-ts-set-signature: var(--light-color-ts-set-signature); --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --color-note: var(--light-color-note); + --color-tip: var(--light-color-tip); + --color-important: var(--light-color-important); + --color-warning: var(--light-color-warning); + --color-caution: var(--light-color-caution); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); } -} -@media (prefers-color-scheme: dark) { - :root { + :root[data-theme="dark"] { --color-background: var(--dark-color-background); --color-background-secondary: var(--dark-color-background-secondary); --color-background-warning: var(--dark-color-background-warning); @@ -133,9 +306,16 @@ --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); @@ -147,6 +327,7 @@ --color-ts-constructor: var(--dark-color-ts-constructor); --color-ts-property: var(--dark-color-ts-property); --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); --color-ts-call-signature: var(--dark-color-ts-call-signature); --color-ts-index-signature: var(--dark-color-ts-index-signature); --color-ts-constructor-signature: var( @@ -158,1258 +339,1273 @@ --color-ts-get-signature: var(--dark-color-ts-get-signature); --color-ts-set-signature: var(--dark-color-ts-set-signature); --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --color-note: var(--dark-color-note); + --color-tip: var(--dark-color-tip); + --color-important: var(--dark-color-important); + --color-warning: var(--dark-color-warning); + --color-caution: var(--dark-color-caution); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } -} -html { - color-scheme: var(--color-scheme); -} - -body { - margin: 0; -} - -:root[data-theme="light"] { - --color-background: var(--light-color-background); - --color-background-secondary: var(--light-color-background-secondary); - --color-background-warning: var(--light-color-background-warning); - --color-warning-text: var(--light-color-warning-text); - --color-icon-background: var(--light-color-icon-background); - --color-accent: var(--light-color-accent); - --color-active-menu-item: var(--light-color-active-menu-item); - --color-text: var(--light-color-text); - --color-text-aside: var(--light-color-text-aside); - --color-link: var(--light-color-link); - - --color-ts-keyword: var(--light-color-ts-keyword); - --color-ts-module: var(--light-color-ts-module); - --color-ts-namespace: var(--light-color-ts-namespace); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-enum-member: var(--light-color-ts-enum-member); - --color-ts-variable: var(--light-color-ts-variable); - --color-ts-function: var(--light-color-ts-function); - --color-ts-class: var(--light-color-ts-class); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-constructor: var(--light-color-ts-constructor); - --color-ts-property: var(--light-color-ts-property); - --color-ts-method: var(--light-color-ts-method); - --color-ts-call-signature: var(--light-color-ts-call-signature); - --color-ts-index-signature: var(--light-color-ts-index-signature); - --color-ts-constructor-signature: var( - --light-color-ts-constructor-signature - ); - --color-ts-parameter: var(--light-color-ts-parameter); - --color-ts-type-parameter: var(--light-color-ts-type-parameter); - --color-ts-accessor: var(--light-color-ts-accessor); - --color-ts-get-signature: var(--light-color-ts-get-signature); - --color-ts-set-signature: var(--light-color-ts-set-signature); - --color-ts-type-alias: var(--light-color-ts-type-alias); - - --external-icon: var(--light-external-icon); - --color-scheme: var(--light-color-scheme); -} - -:root[data-theme="dark"] { - --color-background: var(--dark-color-background); - --color-background-secondary: var(--dark-color-background-secondary); - --color-background-warning: var(--dark-color-background-warning); - --color-warning-text: var(--dark-color-warning-text); - --color-icon-background: var(--dark-color-icon-background); - --color-accent: var(--dark-color-accent); - --color-active-menu-item: var(--dark-color-active-menu-item); - --color-text: var(--dark-color-text); - --color-text-aside: var(--dark-color-text-aside); - --color-link: var(--dark-color-link); - - --color-ts-keyword: var(--dark-color-ts-keyword); - --color-ts-module: var(--dark-color-ts-module); - --color-ts-namespace: var(--dark-color-ts-namespace); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-enum-member: var(--dark-color-ts-enum-member); - --color-ts-variable: var(--dark-color-ts-variable); - --color-ts-function: var(--dark-color-ts-function); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-constructor: var(--dark-color-ts-constructor); - --color-ts-property: var(--dark-color-ts-property); - --color-ts-method: var(--dark-color-ts-method); - --color-ts-call-signature: var(--dark-color-ts-call-signature); - --color-ts-index-signature: var(--dark-color-ts-index-signature); - --color-ts-constructor-signature: var( - --dark-color-ts-constructor-signature - ); - --color-ts-parameter: var(--dark-color-ts-parameter); - --color-ts-type-parameter: var(--dark-color-ts-type-parameter); - --color-ts-accessor: var(--dark-color-ts-accessor); - --color-ts-get-signature: var(--dark-color-ts-get-signature); - --color-ts-set-signature: var(--dark-color-ts-set-signature); - --color-ts-type-alias: var(--dark-color-ts-type-alias); - - --external-icon: var(--dark-external-icon); - --color-scheme: var(--dark-color-scheme); -} - -.always-visible, -.always-visible .tsd-signatures { - display: inherit !important; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - line-height: 1.2; -} - -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - -h1 { - font-size: 1.875rem; - margin: 0.67rem 0; -} - -h2 { - font-size: 1.5rem; - margin: 0.83rem 0; -} - -h3 { - font-size: 1.25rem; - margin: 1rem 0; -} - -h4 { - font-size: 1.05rem; - margin: 1.33rem 0; -} - -h5 { - font-size: 1rem; - margin: 1.5rem 0; -} - -h6 { - font-size: 0.875rem; - margin: 2.33rem 0; -} - -.uppercase { - text-transform: uppercase; -} - -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -.container { - max-width: 1700px; - padding: 0 2rem; -} - -/* Footer */ -.tsd-generator { - border-top: 1px solid var(--color-accent); - padding-top: 1rem; - padding-bottom: 1rem; - max-height: 3.5rem; -} - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; -} - -.container-main { - margin: 0 auto; - /* toolbar, footer, margin */ - min-height: calc(100vh - 41px - 56px - 4rem); -} - -@keyframes fade-in { - from { - opacity: 0; + *:focus-visible, + .tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); } - to { + + .always-visible, + .always-visible .tsd-signatures { + display: inherit !important; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + line-height: 1.2; + } + + h1 { + font-size: 1.875rem; + margin: 0.67rem 0; + } + + h2 { + font-size: 1.5rem; + margin: 0.83rem 0; + } + + h3 { + font-size: 1.25rem; + margin: 1rem 0; + } + + h4 { + font-size: 1.05rem; + margin: 1.33rem 0; + } + + h5 { + font-size: 1rem; + margin: 1.5rem 0; + } + + h6 { + font-size: 0.875rem; + margin: 2.33rem 0; + } + + dl, + menu, + ol, + ul { + margin: 1em 0; + } + + dd { + margin: 0 0 0 34px; + } + + .container { + max-width: 1700px; + padding: 0 2rem; + } + + /* Footer */ + footer { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; + } + footer > p { + margin: 0 1em; + } + + .container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); + } + + @keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + @keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } + } + @keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } + } + @keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } + } + @keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } + } + @keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } + } + body { + background: var(--color-background); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + font-size: 16px; + color: var(--color-text); + } + + a { + color: var(--color-link); + text-decoration: none; + } + a:hover { + text-decoration: underline; + } + a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; + } + a.tsd-anchor-link { + color: var(--color-text); + } + + code, + pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; + } + + pre { + position: relative; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); + margin-bottom: 8px; + } + pre code { + padding: 0; + font-size: 100%; + } + pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; + } + pre:hover > button, + pre > button.visible { opacity: 1; } -} -@keyframes fade-out { - from { - opacity: 1; - visibility: visible; + + blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; } - to { + + .tsd-typography { + line-height: 1.333em; + } + .tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; + } + .tsd-typography .tsd-index-panel h3, + .tsd-index-panel .tsd-typography h3, + .tsd-typography h4, + .tsd-typography h5, + .tsd-typography h6 { + font-size: 1em; + } + .tsd-typography h5, + .tsd-typography h6 { + font-weight: normal; + } + .tsd-typography p, + .tsd-typography ul, + .tsd-typography ol { + margin: 1em 0; + } + .tsd-typography table { + border-collapse: collapse; + border: none; + } + .tsd-typography td, + .tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); + } + .tsd-typography thead, + .tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); + } + + .tsd-alert { + padding: 8px 16px; + margin-bottom: 16px; + border-left: 0.25em solid var(--alert-color); + } + .tsd-alert blockquote > :last-child, + .tsd-alert > :last-child { + margin-bottom: 0; + } + .tsd-alert-title { + color: var(--alert-color); + display: inline-flex; + align-items: center; + } + .tsd-alert-title span { + margin-left: 4px; + } + + .tsd-alert-note { + --alert-color: var(--color-alert-note); + } + .tsd-alert-tip { + --alert-color: var(--color-alert-tip); + } + .tsd-alert-important { + --alert-color: var(--color-alert-important); + } + .tsd-alert-warning { + --alert-color: var(--color-alert-warning); + } + .tsd-alert-caution { + --alert-color: var(--color-alert-caution); + } + + .tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); + } + .tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; + } + .tsd-breadcrumb a:hover { + text-decoration: underline; + } + .tsd-breadcrumb li { + display: inline; + } + .tsd-breadcrumb li:after { + content: " / "; + } + + .tsd-comment-tags { + display: flex; + flex-direction: column; + } + dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; + } + dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; + } + dl.tsd-comment-tag-group dd { + margin: 0; + } + code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; + } + h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; + } + + dl.tsd-comment-tag-group dd:before, + dl.tsd-comment-tag-group dd:after { + content: " "; + } + dl.tsd-comment-tag-group dd pre, + dl.tsd-comment-tag-group dd:after { + clear: both; + } + dl.tsd-comment-tag-group p { + margin: 0; + } + + .tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; + } + .tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; + } + + .tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; + } + .tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; + } + .tsd-filter-input { + display: flex; + width: -moz-fit-content; + width: fit-content; + align-items: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; + } + .tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; opacity: 0; } -} -@keyframes fade-in-delayed { - 0% { - opacity: 0; + .tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; } - 33% { - opacity: 0; - } - 100% { - opacity: 1; - } -} -@keyframes fade-out-delayed { - 0% { - opacity: 1; - visibility: visible; - } - 66% { - opacity: 0; - } - 100% { - opacity: 0; - } -} -@keyframes pop-in-from-right { - from { - transform: translate(100%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-out-to-right { - from { - transform: translate(0, 0); - visibility: visible; - } - to { - transform: translate(100%, 0); - } -} -body { - background: var(--color-background); - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", - Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; - font-size: 16px; - color: var(--color-text); -} - -a { - color: var(--color-link); - text-decoration: none; -} -a:hover { - text-decoration: underline; -} -a.external[target="_blank"] { - background-image: var(--external-icon); - background-position: top 3px right; - background-repeat: no-repeat; - padding-right: 13px; -} - -code, -pre { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - padding: 0.2em; - margin: 0; - font-size: 0.875rem; - border-radius: 0.8em; -} - -pre { - position: relative; - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; - padding: 10px; - border: 1px solid var(--color-accent); -} -pre code { - padding: 0; - font-size: 100%; -} -pre > button { - position: absolute; - top: 10px; - right: 10px; - opacity: 0; - transition: opacity 0.1s; - box-sizing: border-box; -} -pre:hover > button, -pre > button.visible { - opacity: 1; -} - -blockquote { - margin: 1em 0; - padding-left: 1em; - border-left: 4px solid gray; -} - -.tsd-typography { - line-height: 1.333em; -} -.tsd-typography ul { - list-style: square; - padding: 0 0 0 20px; - margin: 0; -} -.tsd-typography .tsd-index-panel h3, -.tsd-index-panel .tsd-typography h3, -.tsd-typography h4, -.tsd-typography h5, -.tsd-typography h6 { - font-size: 1em; -} -.tsd-typography h5, -.tsd-typography h6 { - font-weight: normal; -} -.tsd-typography p, -.tsd-typography ul, -.tsd-typography ol { - margin: 1em 0; -} -.tsd-typography table { - border-collapse: collapse; - border: none; -} -.tsd-typography td, -.tsd-typography th { - padding: 6px 13px; - border: 1px solid var(--color-accent); -} -.tsd-typography thead, -.tsd-typography tr:nth-child(even) { - background-color: var(--color-background-secondary); -} - -.tsd-breadcrumb { - margin: 0; - padding: 0; - color: var(--color-text-aside); -} -.tsd-breadcrumb a { - color: var(--color-text-aside); - text-decoration: none; -} -.tsd-breadcrumb a:hover { - text-decoration: underline; -} -.tsd-breadcrumb li { - display: inline; -} -.tsd-breadcrumb li:after { - content: " / "; -} - -.tsd-comment-tags { - display: flex; - flex-direction: column; -} -dl.tsd-comment-tag-group { - display: flex; - align-items: center; - overflow: hidden; - margin: 0.5em 0; -} -dl.tsd-comment-tag-group dt { - display: flex; - margin-right: 0.5em; - font-size: 0.875em; - font-weight: normal; -} -dl.tsd-comment-tag-group dd { - margin: 0; -} -code.tsd-tag { - padding: 0.25em 0.4em; - border: 0.1em solid var(--color-accent); - margin-right: 0.25em; - font-size: 70%; -} -h1 code.tsd-tag:first-of-type { - margin-left: 0.25em; -} - -dl.tsd-comment-tag-group dd:before, -dl.tsd-comment-tag-group dd:after { - content: " "; -} -dl.tsd-comment-tag-group dd pre, -dl.tsd-comment-tag-group dd:after { - clear: both; -} -dl.tsd-comment-tag-group p { - margin: 0; -} - -.tsd-panel.tsd-comment .lead { - font-size: 1.1em; - line-height: 1.333em; - margin-bottom: 2em; -} -.tsd-panel.tsd-comment .lead:last-child { - margin-bottom: 0; -} - -.tsd-filter-visibility h4 { - font-size: 1rem; - padding-top: 0.75rem; - padding-bottom: 0.5rem; - margin: 0; -} -.tsd-filter-item:not(:last-child) { - margin-bottom: 0.5rem; -} -.tsd-filter-input { - display: flex; - width: fit-content; - width: -moz-fit-content; - align-items: center; - user-select: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - cursor: pointer; -} -.tsd-filter-input input[type="checkbox"] { - cursor: pointer; - position: absolute; - width: 1.5em; - height: 1.5em; - opacity: 0; -} -.tsd-filter-input input[type="checkbox"]:disabled { - pointer-events: none; -} -.tsd-filter-input svg { - cursor: pointer; - width: 1.5em; - height: 1.5em; - margin-right: 0.5em; - border-radius: 0.33em; - /* Leaving this at full opacity breaks event listeners on Firefox. + .tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. Don't remove unless you know what you're doing. */ - opacity: 0.99; -} -.tsd-filter-input input[type="checkbox"]:focus + svg { - transform: scale(0.95); -} -.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { - transform: scale(1); -} -.tsd-checkbox-background { - fill: var(--color-accent); -} -input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { - stroke: var(--color-text); -} -.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { - fill: var(--color-background); - stroke: var(--color-accent); - stroke-width: 0.25rem; -} -.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { - stroke: var(--color-accent); -} - -.tsd-theme-toggle { - padding-top: 0.75rem; -} -.tsd-theme-toggle > h4 { - display: inline; - vertical-align: middle; - margin-right: 0.75rem; -} - -.tsd-hierarchy { - list-style: square; - margin: 0; -} -.tsd-hierarchy .target { - font-weight: bold; -} - -.tsd-full-hierarchy:not(:last-child) { - margin-bottom: 1em; - padding-bottom: 1em; - border-bottom: 1px solid var(--color-accent); -} -.tsd-full-hierarchy, -.tsd-full-hierarchy ul { - list-style: none; - margin: 0; - padding: 0; -} -.tsd-full-hierarchy ul { - padding-left: 1.5rem; -} -.tsd-full-hierarchy a { - padding: 0.25rem 0 !important; - font-size: 1rem; - display: inline-flex; - align-items: center; - color: var(--color-text); -} - -.tsd-panel-group.tsd-index-group { - margin-bottom: 0; -} -.tsd-index-panel .tsd-index-list { - list-style: none; - line-height: 1.333em; - margin: 0; - padding: 0.25rem 0 0 0; - overflow: hidden; - display: grid; - grid-template-columns: repeat(3, 1fr); - column-gap: 1rem; - grid-template-rows: auto; -} -@media (max-width: 1024px) { - .tsd-index-panel .tsd-index-list { - grid-template-columns: repeat(2, 1fr); + opacity: 0.99; } -} -@media (max-width: 768px) { - .tsd-index-panel .tsd-index-list { - grid-template-columns: repeat(1, 1fr); + .tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); + } + .tsd-checkbox-background { + fill: var(--color-accent); + } + input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); + } + .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; + } + .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); } -} -.tsd-index-panel .tsd-index-list li { - -webkit-page-break-inside: avoid; - -moz-page-break-inside: avoid; - -ms-page-break-inside: avoid; - -o-page-break-inside: avoid; - page-break-inside: avoid; -} -.tsd-flag { - display: inline-block; - padding: 0.25em 0.4em; - border-radius: 4px; - color: var(--color-comment-tag-text); - background-color: var(--color-comment-tag); - text-indent: 0; - font-size: 75%; - line-height: 1; - font-weight: normal; -} - -.tsd-anchor { - position: relative; - top: -100px; -} - -.tsd-member { - position: relative; -} -.tsd-member .tsd-anchor + h3 { - display: flex; - align-items: center; - margin-top: 0; - margin-bottom: 0; - border-bottom: none; -} - -.tsd-navigation.settings { - margin: 1rem 0; -} -.tsd-navigation > a, -.tsd-navigation .tsd-accordion-summary { - width: calc(100% - 0.25rem); - display: flex; - align-items: center; -} -.tsd-navigation a, -.tsd-navigation summary > span, -.tsd-page-navigation a { - display: flex; - width: calc(100% - 0.25rem); - align-items: center; - padding: 0.25rem; - color: var(--color-text); - text-decoration: none; - box-sizing: border-box; -} -.tsd-navigation a.current, -.tsd-page-navigation a.current { - background: var(--color-active-menu-item); -} -.tsd-navigation a:hover, -.tsd-page-navigation a:hover { - text-decoration: underline; -} -.tsd-navigation ul, -.tsd-page-navigation ul { - margin-top: 0; - margin-bottom: 0; - padding: 0; - list-style: none; -} -.tsd-navigation li, -.tsd-page-navigation li { - padding: 0; - max-width: 100%; -} -.tsd-nested-navigation { - margin-left: 3rem; -} -.tsd-nested-navigation > li > details { - margin-left: -1.5rem; -} -.tsd-small-nested-navigation { - margin-left: 1.5rem; -} -.tsd-small-nested-navigation > li > details { - margin-left: -1.5rem; -} - -.tsd-page-navigation ul { - padding-left: 1.75rem; -} - -#tsd-sidebar-links a { - margin-top: 0; - margin-bottom: 0.5rem; - line-height: 1.25rem; -} -#tsd-sidebar-links a:last-of-type { - margin-bottom: 0; -} - -a.tsd-index-link { - padding: 0.25rem 0 !important; - font-size: 1rem; - line-height: 1.25rem; - display: inline-flex; - align-items: center; - color: var(--color-text); -} -.tsd-accordion-summary { - list-style-type: none; /* hide marker on non-safari */ - outline: none; /* broken on safari, so just hide it */ -} -.tsd-accordion-summary::-webkit-details-marker { - display: none; /* hide marker on safari */ -} -.tsd-accordion-summary, -.tsd-accordion-summary a { - user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - - cursor: pointer; -} -.tsd-accordion-summary a { - width: calc(100% - 1.5rem); -} -.tsd-accordion-summary > * { - margin-top: 0; - margin-bottom: 0; - padding-top: 0; - padding-bottom: 0; -} -.tsd-index-accordion .tsd-accordion-summary > svg { - margin-left: 0.25rem; -} -.tsd-index-content > :not(:first-child) { - margin-top: 0.75rem; -} -.tsd-index-heading { - margin-top: 1.5rem; - margin-bottom: 0.75rem; -} - -.tsd-kind-icon { - margin-right: 0.5rem; - width: 1.25rem; - height: 1.25rem; - min-width: 1.25rem; - min-height: 1.25rem; -} -.tsd-kind-icon path { - transform-origin: center; - transform: scale(1.1); -} -.tsd-signature > .tsd-kind-icon { - margin-right: 0.8rem; -} - -.tsd-panel { - margin-bottom: 2.5rem; -} -.tsd-panel.tsd-member { - margin-bottom: 4rem; -} -.tsd-panel:empty { - display: none; -} -.tsd-panel > h1, -.tsd-panel > h2, -.tsd-panel > h3 { - margin: 1.5rem -1.5rem 0.75rem -1.5rem; - padding: 0 1.5rem 0.75rem 1.5rem; -} -.tsd-panel > h1.tsd-before-signature, -.tsd-panel > h2.tsd-before-signature, -.tsd-panel > h3.tsd-before-signature { - margin-bottom: 0; - border-bottom: none; -} - -.tsd-panel-group { - margin: 4rem 0; -} -.tsd-panel-group.tsd-index-group { - margin: 2rem 0; -} -.tsd-panel-group.tsd-index-group details { - margin: 2rem 0; -} - -#tsd-search { - transition: background-color 0.2s; -} -#tsd-search .title { - position: relative; - z-index: 2; -} -#tsd-search .field { - position: absolute; - left: 0; - top: 0; - right: 2.5rem; - height: 100%; -} -#tsd-search .field input { - box-sizing: border-box; - position: relative; - top: -50px; - z-index: 1; - width: 100%; - padding: 0 10px; - opacity: 0; - outline: 0; - border: 0; - background: transparent; - color: var(--color-text); -} -#tsd-search .field label { - position: absolute; - overflow: hidden; - right: -40px; -} -#tsd-search .field input, -#tsd-search .title, -#tsd-toolbar-links a { - transition: opacity 0.2s; -} -#tsd-search .results { - position: absolute; - visibility: hidden; - top: 40px; - width: 100%; - margin: 0; - padding: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); -} -#tsd-search .results li { - background-color: var(--color-background); - line-height: initial; - padding: 4px; -} -#tsd-search .results li:nth-child(even) { - background-color: var(--color-background-secondary); -} -#tsd-search .results li.state { - display: none; -} -#tsd-search .results li.current:not(.no-results), -#tsd-search .results li:hover:not(.no-results) { - background-color: var(--color-accent); -} -#tsd-search .results a { - display: flex; - align-items: center; - padding: 0.25rem; - box-sizing: border-box; -} -#tsd-search .results a:before { - top: 10px; -} -#tsd-search .results span.parent { - color: var(--color-text-aside); - font-weight: normal; -} -#tsd-search.has-focus { - background-color: var(--color-accent); -} -#tsd-search.has-focus .field input { - top: 0; - opacity: 1; -} -#tsd-search.has-focus .title, -#tsd-search.has-focus #tsd-toolbar-links a { - z-index: 0; - opacity: 0; -} -#tsd-search.has-focus .results { - visibility: visible; -} -#tsd-search.loading .results li.state.loading { - display: block; -} -#tsd-search.failure .results li.state.failure { - display: block; -} - -#tsd-toolbar-links { - position: absolute; - top: 0; - right: 2rem; - height: 100%; - display: flex; - align-items: center; - justify-content: flex-end; -} -#tsd-toolbar-links a { - margin-left: 1.5rem; -} -#tsd-toolbar-links a:hover { - text-decoration: underline; -} - -.tsd-signature { - margin: 0 0 1rem 0; - padding: 1rem 0.5rem; - border: 1px solid var(--color-accent); - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - font-size: 14px; - overflow-x: auto; -} - -.tsd-signature-keyword { - color: var(--color-ts-keyword); - font-weight: normal; -} - -.tsd-signature-symbol { - color: var(--color-text-aside); - font-weight: normal; -} - -.tsd-signature-type { - font-style: italic; - font-weight: normal; -} - -.tsd-signatures { - padding: 0; - margin: 0 0 1em 0; - list-style-type: none; -} -.tsd-signatures .tsd-signature { - margin: 0; - border-color: var(--color-accent); - border-width: 1px 0; - transition: background-color 0.1s; -} -.tsd-description .tsd-signatures .tsd-signature { - border-width: 1px; -} - -ul.tsd-parameter-list, -ul.tsd-type-parameter-list { - list-style: square; - margin: 0; - padding-left: 20px; -} -ul.tsd-parameter-list > li.tsd-parameter-signature, -ul.tsd-type-parameter-list > li.tsd-parameter-signature { - list-style: none; - margin-left: -20px; -} -ul.tsd-parameter-list h5, -ul.tsd-type-parameter-list h5 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} -.tsd-sources { - margin-top: 1rem; - font-size: 0.875em; -} -.tsd-sources a { - color: var(--color-text-aside); - text-decoration: underline; -} -.tsd-sources ul { - list-style: none; - padding: 0; -} - -.tsd-page-toolbar { - position: sticky; - z-index: 1; - top: 0; - left: 0; - width: 100%; - color: var(--color-text); - background: var(--color-background-secondary); - border-bottom: 1px var(--color-accent) solid; - transition: transform 0.3s ease-in-out; -} -.tsd-page-toolbar a { - color: var(--color-text); - text-decoration: none; -} -.tsd-page-toolbar a.title { - font-weight: bold; -} -.tsd-page-toolbar a.title:hover { - text-decoration: underline; -} -.tsd-page-toolbar .tsd-toolbar-contents { - display: flex; - justify-content: space-between; - height: 2.5rem; - margin: 0 auto; -} -.tsd-page-toolbar .table-cell { - position: relative; - white-space: nowrap; - line-height: 40px; -} -.tsd-page-toolbar .table-cell:first-child { - width: 100%; -} -.tsd-page-toolbar .tsd-toolbar-icon { - box-sizing: border-box; - line-height: 0; - padding: 12px 0; -} - -.tsd-widget { - display: inline-block; - overflow: hidden; - opacity: 0.8; - height: 40px; - transition: - opacity 0.1s, - background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-widget:hover { - opacity: 0.9; -} -.tsd-widget.active { - opacity: 1; - background-color: var(--color-accent); -} -.tsd-widget.no-caption { - width: 40px; -} -.tsd-widget.no-caption:before { - margin: 0; -} - -.tsd-widget.options, -.tsd-widget.menu { - display: none; -} -input[type="checkbox"] + .tsd-widget:before { - background-position: -120px 0; -} -input[type="checkbox"]:checked + .tsd-widget:before { - background-position: -160px 0; -} - -img { - max-width: 100%; -} - -.tsd-anchor-icon { - display: inline-flex; - align-items: center; - margin-left: 0.5rem; - vertical-align: middle; - color: var(--color-text); -} - -.tsd-anchor-icon svg { - width: 1em; - height: 1em; - visibility: hidden; -} - -.tsd-anchor-link:hover > .tsd-anchor-icon svg { - visibility: visible; -} - -.deprecated { - text-decoration: line-through !important; -} - -.warning { - padding: 1rem; - color: var(--color-warning-text); - background: var(--color-background-warning); -} - -.tsd-kind-project { - color: var(--color-ts-project); -} -.tsd-kind-module { - color: var(--color-ts-module); -} -.tsd-kind-namespace { - color: var(--color-ts-namespace); -} -.tsd-kind-enum { - color: var(--color-ts-enum); -} -.tsd-kind-enum-member { - color: var(--color-ts-enum-member); -} -.tsd-kind-variable { - color: var(--color-ts-variable); -} -.tsd-kind-function { - color: var(--color-ts-function); -} -.tsd-kind-class { - color: var(--color-ts-class); -} -.tsd-kind-interface { - color: var(--color-ts-interface); -} -.tsd-kind-constructor { - color: var(--color-ts-constructor); -} -.tsd-kind-property { - color: var(--color-ts-property); -} -.tsd-kind-method { - color: var(--color-ts-method); -} -.tsd-kind-call-signature { - color: var(--color-ts-call-signature); -} -.tsd-kind-index-signature { - color: var(--color-ts-index-signature); -} -.tsd-kind-constructor-signature { - color: var(--color-ts-constructor-signature); -} -.tsd-kind-parameter { - color: var(--color-ts-parameter); -} -.tsd-kind-type-literal { - color: var(--color-ts-type-literal); -} -.tsd-kind-type-parameter { - color: var(--color-ts-type-parameter); -} -.tsd-kind-accessor { - color: var(--color-ts-accessor); -} -.tsd-kind-get-signature { - color: var(--color-ts-get-signature); -} -.tsd-kind-set-signature { - color: var(--color-ts-set-signature); -} -.tsd-kind-type-alias { - color: var(--color-ts-type-alias); -} - -/* if we have a kind icon, don't color the text by kind */ -.tsd-kind-icon ~ span { - color: var(--color-text); -} - -* { - scrollbar-width: thin; - scrollbar-color: var(--color-accent) var(--color-icon-background); -} - -*::-webkit-scrollbar { - width: 0.75rem; -} - -*::-webkit-scrollbar-track { - background: var(--color-icon-background); -} - -*::-webkit-scrollbar-thumb { - background-color: var(--color-accent); - border-radius: 999rem; - border: 0.25rem solid var(--color-icon-background); -} - -/* mobile */ -@media (max-width: 769px) { - .tsd-widget.options, - .tsd-widget.menu { + .settings-label { + font-weight: bold; + text-transform: uppercase; display: inline-block; } - .container-main { + .tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; + } + + .tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; + } + + .tsd-hierarchy h4 label:hover span { + text-decoration: underline; + } + + .tsd-hierarchy { + list-style: square; + margin: 0; + } + .tsd-hierarchy-target { + font-weight: bold; + } + .tsd-hierarchy-toggle { + color: var(--color-link); + cursor: pointer; + } + + .tsd-full-hierarchy:not(:last-child) { + margin-bottom: 1em; + padding-bottom: 1em; + border-bottom: 1px solid var(--color-accent); + } + .tsd-full-hierarchy, + .tsd-full-hierarchy ul { + list-style: none; + margin: 0; + padding: 0; + } + .tsd-full-hierarchy ul { + padding-left: 1.5rem; + } + .tsd-full-hierarchy a { + padding: 0.25rem 0 !important; + font-size: 1rem; + display: inline-flex; + align-items: center; + color: var(--color-text); + } + .tsd-full-hierarchy svg[data-dropdown] { + cursor: pointer; + } + .tsd-full-hierarchy svg[data-dropdown="false"] { + transform: rotate(-90deg); + } + .tsd-full-hierarchy svg[data-dropdown="false"] ~ ul { + display: none; + } + + .tsd-panel-group.tsd-index-group { + margin-bottom: 0; + } + .tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; + } + @media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } + } + @media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } + } + .tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; + } + + .tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; + } + + .tsd-anchor { + position: relative; + top: -100px; + } + + .tsd-member { + position: relative; + } + .tsd-member .tsd-anchor + h3 { display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; } - html .col-content { - float: none; + + .tsd-navigation.settings { + margin: 1rem 0; + } + .tsd-navigation > a, + .tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.25rem); + display: flex; + align-items: center; + } + .tsd-navigation a, + .tsd-navigation summary > span, + .tsd-page-navigation a { + display: flex; + width: calc(100% - 0.25rem); + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; + } + .tsd-navigation a.current, + .tsd-page-navigation a.current { + background: var(--color-active-menu-item); + } + .tsd-navigation a:hover, + .tsd-page-navigation a:hover { + text-decoration: underline; + } + .tsd-navigation ul, + .tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; + } + .tsd-navigation li, + .tsd-page-navigation li { + padding: 0; max-width: 100%; + } + .tsd-navigation .tsd-nav-link { + display: none; + } + .tsd-nested-navigation { + margin-left: 3rem; + } + .tsd-nested-navigation > li > details { + margin-left: -1.5rem; + } + .tsd-small-nested-navigation { + margin-left: 1.5rem; + } + .tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; + } + + .tsd-page-navigation-section { + margin-left: 10px; + } + .tsd-page-navigation-section > summary { + padding: 0.25rem; + } + .tsd-page-navigation-section > div { + margin-left: 20px; + } + .tsd-page-navigation ul { + padding-left: 1.75rem; + } + + #tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; + } + #tsd-sidebar-links a:last-of-type { + margin-bottom: 0; + } + + a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); + } + .tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ + } + .tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ + } + .tsd-accordion-summary, + .tsd-accordion-summary a { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; + + cursor: pointer; + } + .tsd-accordion-summary a { + width: calc(100% - 1.5rem); + } + .tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; + } + .tsd-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; + vertical-align: text-top; + } + /* + * We need to be careful to target the arrow indicating whether the accordion + * is open, but not any other SVGs included in the details element. + */ + .tsd-accordion:not([open]) > .tsd-accordion-summary > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h1 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h2 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h3 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h4 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h5 > svg:first-child { + transform: rotate(-90deg); + } + .tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; + } + .tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; + } + + .tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + } + .tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; + } + .tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; + } + + .tsd-panel { + margin-bottom: 2.5rem; + } + .tsd-panel.tsd-member { + margin-bottom: 4rem; + } + .tsd-panel:empty { + display: none; + } + .tsd-panel > h1, + .tsd-panel > h2, + .tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; + } + .tsd-panel > h1.tsd-before-signature, + .tsd-panel > h2.tsd-before-signature, + .tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; + } + + .tsd-panel-group { + margin: 2rem 0; + } + .tsd-panel-group.tsd-index-group { + margin: 2rem 0; + } + .tsd-panel-group.tsd-index-group details { + margin: 2rem 0; + } + .tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; + } + + #tsd-search { + transition: background-color 0.2s; + } + #tsd-search .title { + position: relative; + z-index: 2; + } + #tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 2.5rem; + height: 100%; + } + #tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); } - html .col-sidebar { - position: fixed !important; - overflow-y: auto; - -webkit-overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - padding: 1.5rem 1.5rem 0 0; - width: 75vw; + #tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; + } + #tsd-search .field input, + #tsd-search .title, + #tsd-toolbar-links a { + transition: opacity 0.2s; + } + #tsd-search .results { + position: absolute; visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + } + #tsd-search .results li { background-color: var(--color-background); - transform: translate(100%, 0); + line-height: initial; + padding: 4px; } - html .col-sidebar > *:last-child { - padding-bottom: 20px; + #tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); } - html .overlay { - content: ""; + #tsd-search .results li.state { + display: none; + } + #tsd-search .results li.current:not(.no-results), + #tsd-search .results li:hover:not(.no-results) { + background-color: var(--color-accent); + } + #tsd-search .results a { + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; + } + #tsd-search .results a:before { + top: 10px; + } + #tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; + } + #tsd-search.has-focus { + background-color: var(--color-accent); + } + #tsd-search.has-focus .field input { + top: 0; + opacity: 1; + } + #tsd-search.has-focus .title, + #tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; + } + #tsd-search.has-focus .results { + visibility: visible; + } + #tsd-search.loading .results li.state.loading { display: block; - position: fixed; - z-index: 1023; + } + #tsd-search.failure .results li.state.failure { + display: block; + } + + #tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; + } + #tsd-toolbar-links a { + margin-left: 1.5rem; + } + #tsd-toolbar-links a:hover { + text-decoration: underline; + } + + .tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; + } + + .tsd-signature-keyword { + color: var(--color-ts-keyword); + font-weight: normal; + } + + .tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; + } + + .tsd-signature-type { + font-style: italic; + font-weight: normal; + } + + .tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; + } + .tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; + } + .tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; + } + .tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; + } + .tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; + } + + ul.tsd-parameter-list, + ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; + } + ul.tsd-parameter-list > li.tsd-parameter-signature, + ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; + } + ul.tsd-parameter-list h5, + ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; + } + .tsd-sources { + margin-top: 1rem; + font-size: 0.875em; + } + .tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; + } + .tsd-sources ul { + list-style: none; + padding: 0; + } + + .tsd-page-toolbar { + position: sticky; + z-index: 1; top: 0; left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; + } + .tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; + } + .tsd-page-toolbar a.title { + font-weight: bold; + } + .tsd-page-toolbar a.title:hover { + text-decoration: underline; + } + .tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; + } + .tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; + } + .tsd-page-toolbar .table-cell:first-child { + width: 100%; + } + .tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; + } + + .tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: + opacity 0.1s, + background-color 0.2s; + vertical-align: bottom; + cursor: pointer; + } + .tsd-widget:hover { + opacity: 0.9; + } + .tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); + } + .tsd-widget.no-caption { + width: 40px; + } + .tsd-widget.no-caption:before { + margin: 0; + } + + .tsd-widget.options, + .tsd-widget.menu { + display: none; + } + input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; + } + input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; + } + + img { + max-width: 100%; + } + + .tsd-member-summary-name { + display: inline-flex; + align-items: center; + padding: 0.25rem; + text-decoration: none; + } + + .tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + color: var(--color-text); + } + + .tsd-anchor-icon svg { + width: 1em; + height: 1em; visibility: hidden; } - .to-has-menu .overlay { - animation: fade-in 0.4s; - } - - .to-has-menu .col-sidebar { - animation: pop-in-from-right 0.4s; - } - - .from-has-menu .overlay { - animation: fade-out 0.4s; - } - - .from-has-menu .col-sidebar { - animation: pop-out-to-right 0.4s; - } - - .has-menu body { - overflow: hidden; - } - .has-menu .overlay { + .tsd-member-summary-name:hover > .tsd-anchor-icon svg, + .tsd-anchor-link:hover > .tsd-anchor-icon svg { visibility: visible; } - .has-menu .col-sidebar { - visibility: visible; - transform: translate(0, 0); - display: flex; - flex-direction: column; - gap: 1.5rem; - max-height: 100vh; - padding: 1rem 2rem; + + .deprecated { + text-decoration: line-through !important; } - .has-menu .tsd-navigation { - max-height: 100%; - } -} - -/* one sidebar */ -@media (min-width: 770px) { - .container-main { - display: grid; - grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); - grid-template-areas: "sidebar content"; - margin: 2rem auto; - } - - .col-sidebar { - grid-area: sidebar; - } - .col-content { - grid-area: content; - padding: 0 1rem; - } -} -@media (min-width: 770px) and (max-width: 1399px) { - .col-sidebar { - max-height: calc(100vh - 2rem - 42px); - overflow: auto; - position: sticky; - top: 42px; - padding-top: 1rem; - } - .site-menu { - margin-top: 1rem; - } -} - -/* two sidebars */ -@media (min-width: 1200px) { - .container-main { - grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); - grid-template-areas: "sidebar content toc"; - } - - .col-sidebar { - display: contents; - } - - .page-menu { - grid-area: toc; - padding-left: 1rem; - } - .site-menu { - grid-area: sidebar; - } - - .site-menu { - margin-top: 1rem 0; - } - - .page-menu, - .site-menu { - max-height: calc(100vh - 2rem - 42px); - overflow: auto; - position: sticky; - top: 42px; + + .warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); + } + + .tsd-kind-project { + color: var(--color-ts-project); + } + .tsd-kind-module { + color: var(--color-ts-module); + } + .tsd-kind-namespace { + color: var(--color-ts-namespace); + } + .tsd-kind-enum { + color: var(--color-ts-enum); + } + .tsd-kind-enum-member { + color: var(--color-ts-enum-member); + } + .tsd-kind-variable { + color: var(--color-ts-variable); + } + .tsd-kind-function { + color: var(--color-ts-function); + } + .tsd-kind-class { + color: var(--color-ts-class); + } + .tsd-kind-interface { + color: var(--color-ts-interface); + } + .tsd-kind-constructor { + color: var(--color-ts-constructor); + } + .tsd-kind-property { + color: var(--color-ts-property); + } + .tsd-kind-method { + color: var(--color-ts-method); + } + .tsd-kind-reference { + color: var(--color-ts-reference); + } + .tsd-kind-call-signature { + color: var(--color-ts-call-signature); + } + .tsd-kind-index-signature { + color: var(--color-ts-index-signature); + } + .tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); + } + .tsd-kind-parameter { + color: var(--color-ts-parameter); + } + .tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); + } + .tsd-kind-accessor { + color: var(--color-ts-accessor); + } + .tsd-kind-get-signature { + color: var(--color-ts-get-signature); + } + .tsd-kind-set-signature { + color: var(--color-ts-set-signature); + } + .tsd-kind-type-alias { + color: var(--color-ts-type-alias); + } + + /* if we have a kind icon, don't color the text by kind */ + .tsd-kind-icon ~ span { + color: var(--color-text); + } + + * { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); + } + + *::-webkit-scrollbar { + width: 0.75rem; + } + + *::-webkit-scrollbar-track { + background: var(--color-icon-background); + } + + *::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); + } + + /* mobile */ + @media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } + } + + /* one sidebar */ + @media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } + } + @media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } + } + + /* two sidebars */ + @media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax( + 0, + 20rem + ); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } } } diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Call.RuntimeError.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Call.RuntimeError.html index 0d9e1bcc2..ca5cfd551 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Call.RuntimeError.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Call.RuntimeError.html @@ -1,11 +1,11 @@ -RuntimeError | @wailsio/runtime

Exception class that will be thrown in case the bound method returns an error. +RuntimeError | @wailsio/runtime

Exception class that will be thrown in case the bound method returns an error. The value of the RuntimeError#name property is "RuntimeError".

-

Hierarchy

  • Error
    • RuntimeError

Constructors

Properties

Constructors

  • Constructs a new RuntimeError instance.

    -

    Parameters

    • message: string

      The error message.

      -
    • Rest ...args: any[]

      Optional arguments for the Error constructor.

      -

    Returns RuntimeError

Properties

cause?: unknown
message: string
name: string
stack?: string

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Constructors

Properties

Constructors

  • Constructs a new RuntimeError instance.

    +

    Parameters

    • Optionalmessage: string

      The error message.

      +
    • Optionaloptions: ErrorOptions

      Options to be forwarded to the Error constructor.

      +

    Returns RuntimeError

Properties

cause?: unknown
message: string
name: string
stack?: string
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelError.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelError.html new file mode 100644 index 000000000..f58023ef1 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelError.html @@ -0,0 +1,13 @@ +CancelError | @wailsio/runtime

Exception class that will be used as rejection reason +in case a CancellablePromise is cancelled successfully.

+

The value of the name property is the string "CancelError". +The value of the cause property is the cause passed to the cancel method, if any.

+

Hierarchy

Constructors

Properties

Constructors

Properties

cause?: unknown
message: string
name: string
stack?: string
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancellablePromise.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancellablePromise.html new file mode 100644 index 000000000..3d6cdb828 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancellablePromise.html @@ -0,0 +1,263 @@ +CancellablePromise | @wailsio/runtime

Class CancellablePromise<T>

A promise with an attached method for cancelling long-running operations (see CancellablePromise#cancel). +Cancellation can optionally be bound to an AbortSignal +for better composability (see CancellablePromise#cancelOn).

+

Cancelling a pending promise will result in an immediate rejection +with an instance of CancelError as reason, +but whoever started the promise will be responsible +for actually aborting the underlying operation. +To this purpose, the constructor and all chaining methods +accept optional cancellation callbacks.

+

If a CancellablePromise still resolves after having been cancelled, +the result will be discarded. If it rejects, the reason +will be reported as an unhandled rejection, +wrapped in a CancelledRejectionError instance. +To facilitate the handling of cancellation requests, +cancelled CancellablePromises will not report unhandled CancelErrors +whose cause field is the same as the one with which the current promise was cancelled.

+

All usual promise methods are defined and return a CancellablePromise +whose cancel method will cancel the parent operation as well, propagating the cancellation reason +upwards through promise chains. +Conversely, cancelling a promise will not automatically cancel dependent promises downstream:

+
let root = new CancellablePromise((resolve, reject) => { ... });
let child1 = root.then(() => { ... });
let child2 = child1.then(() => { ... });
let child3 = root.catch(() => { ... });
child1.cancel(); // Cancels child1 and root, but not child2 or child3 +
+ +

Cancelling a promise that has already settled is safe and has no consequence.

+

The cancel method returns a promise that always fulfills +after the whole chain has processed the cancel request +and all attached callbacks up to that moment have run.

+

All ES2024 promise methods (static and instance) are defined on CancellablePromise, +but actual availability may vary with OS/webview version.

+

In line with the proposal at https://github.com/tc39/proposal-rm-builtin-subclassing, +CancellablePromise does not support transparent subclassing. +Extenders should take care to provide their own method implementations. +This might be reconsidered in case the proposal is retired.

+

CancellablePromise is a wrapper around the DOM Promise object +and is compliant with the Promises/A+ specification +(it passes the compliance suite) +if so is the underlying implementation.

+

Type Parameters

  • T

Hierarchy

Implements

Constructors

  • Creates a new CancellablePromise.

    +

    Type Parameters

    • T

    Parameters

    • executor: CancellablePromiseExecutor<T>

      A callback used to initialize the promise. This callback is passed two arguments: +a resolve callback used to resolve the promise with a value +or the result of another promise (possibly cancellable), +and a reject callback used to reject the promise with a provided reason or error. +If the value provided to the resolve callback is a thenable and cancellable object +(it has a then and a cancel method), +cancellation requests will be forwarded to that object and the oncancelled will not be invoked anymore. +If any one of the two callbacks is called after the promise has been cancelled, +the provided values will be cancelled and resolved as usual, +but their results will be discarded. +However, if the resolution process ultimately ends up in a rejection +that is not due to cancellation, the rejection reason +will be wrapped in a CancelledRejectionError +and bubbled up as an unhandled rejection.

      +
    • Optionaloncancelled: CancellablePromiseCanceller

      It is the caller's responsibility to ensure that any operation +started by the executor is properly halted upon cancellation. +This optional callback can be used to that purpose. +It will be called synchronously with a cancellation cause +when cancellation is requested, after the promise has already rejected +with a CancelError, but before +any then/catch/finally callback runs. +If the callback returns a thenable, the promise returned from cancel +will only fulfill after the former has settled. +Unhandled exceptions or rejections from the callback will be wrapped +in a CancelledRejectionError and bubbled up as unhandled rejections. +If the resolve callback is called before cancellation with a cancellable promise, +cancellation requests on this promise will be diverted to that promise, +and the original oncancelled callback will be discarded.

      +

    Returns CancellablePromise<T>

Properties

"[toStringTag]": string
"[species]": PromiseConstructor

Methods

  • Cancels immediately the execution of the operation associated with this promise. +The promise rejects with a CancelError instance as reason, +with the CancelError#cause property set to the given argument, if any.

    +

    Has no effect if called after the promise has already settled; +repeated calls in particular are safe, but only the first one +will set the cancellation cause.

    +

    The CancelError exception need not be handled explicitly on the promises that are being cancelled: +cancelling a promise with no attached rejection handler does not trigger an unhandled rejection event. +Therefore, the following idioms are all equally correct:

    +
    new CancellablePromise((resolve, reject) => { ... }).cancel();
    new CancellablePromise((resolve, reject) => { ... }).then(...).cancel();
    new CancellablePromise((resolve, reject) => { ... }).then(...).catch(...).cancel(); +
    + +

    Whenever some cancelled promise in a chain rejects with a CancelError +with the same cancellation cause as itself, the error will be discarded silently. +However, the CancelError will still be delivered to all attached rejection handlers +added by then and related methods:

    +
    let cancellable = new CancellablePromise((resolve, reject) => { ... });
    cancellable.then(() => { ... }).catch(console.log);
    cancellable.cancel(); // A CancelError is printed to the console. +
    + +

    If the CancelError is not handled downstream by the time it reaches +a non-cancelled promise, it will trigger an unhandled rejection event, +just like normal rejections would:

    +
    let cancellable = new CancellablePromise((resolve, reject) => { ... });
    let chained = cancellable.then(() => { ... }).then(() => { ... }); // No catch...
    cancellable.cancel(); // Unhandled rejection event on chained! +
    + +

    Therefore, it is important to either cancel whole promise chains from their tail, +as shown in the correct idioms above, or take care of handling errors everywhere.

    +

    Parameters

    • Optionalcause: any

    Returns CancellablePromise<void>

    A cancellable promise that fulfills after the cancel callback (if any) +and all handlers attached up to the call to cancel have run. +If the cancel callback returns a thenable, the promise returned by cancel +will also wait for that thenable to settle. +This enables callers to wait for the cancelled operation to terminate +without being forced to handle potential errors at the call site.

    +
    cancellable.cancel().then(() => {
    // Cleanup finished, it's safe to do something else.
    }, (err) => {
    // Unreachable: the promise returned from cancel will never reject.
    }); +
    + +

    Note that the returned promise will not handle implicitly any rejection +that might have occurred already in the cancelled chain. +It will just track whether registered handlers have been executed or not. +Therefore, unhandled rejections will never be silently handled by calling cancel.

    +
  • Binds promise cancellation to the abort event of the given AbortSignal. +If the signal has already aborted, the promise will be cancelled immediately. +When either condition is verified, the cancellation cause will be set +to the signal's abort reason (see AbortSignal.reason).

    +

    Has no effect if called (or if the signal aborts) after the promise has already settled. +Only the first signal to abort will set the cancellation cause.

    +

    For more details about the cancellation process, +see cancel and the CancellablePromise constructor.

    +

    This method enables awaiting cancellable promises without having +to store them for future cancellation, e.g.:

    +
    await longRunningOperation().cancelOn(signal);
    +
    + +

    instead of:

    +
    let promiseToBeCancelled = longRunningOperation();
    await promiseToBeCancelled; +
    + +

    Parameters

    Returns CancellablePromise<T>

    This promise, for method chaining.

    +
  • Attaches a callback for only the rejection of the Promise.

    +

    The optional oncancelled argument will be invoked when the returned promise is cancelled, +with the same semantics as the oncancelled argument of the constructor. +When the parent promise rejects or is cancelled, the onrejected callback will run, +even after the returned promise has been cancelled: +in that case, should it reject or throw, the reason will be wrapped +in a CancelledRejectionError and bubbled up as an unhandled rejection.

    +

    It is equivalent to

    +
    cancellablePromise.then(undefined, onrejected, oncancelled);
    +
    + +

    and the same caveats apply.

    +

    Type Parameters

    • TResult = never

    Parameters

    Returns CancellablePromise<T | TResult>

    A Promise for the completion of the callback. +Cancellation requests on the returned promise +will propagate up the chain to the parent promise, +but not in the other direction.

    +

    The promise returned from cancel will fulfill only after all attached handlers +up the entire promise chain have been run.

    +

    If onrejected returns a cancellable promise, +cancellation requests will be diverted to it, +and the specified oncancelled callback will be discarded. +See then for more details.

    +
  • Attaches a callback that is invoked when the CancellablePromise is settled (fulfilled or rejected). The +resolved value cannot be accessed or modified from the callback. +The returned promise will settle in the same state as the original one +after the provided callback has completed execution, +unless the callback throws or returns a rejecting promise, +in which case the returned promise will reject as well.

    +

    The optional oncancelled argument will be invoked when the returned promise is cancelled, +with the same semantics as the oncancelled argument of the constructor. +Once the parent promise settles, the onfinally callback will run, +even after the returned promise has been cancelled: +in that case, should it reject or throw, the reason will be wrapped +in a CancelledRejectionError and bubbled up as an unhandled rejection.

    +

    This method is implemented in terms of then and the same caveats apply. +It is polyfilled, hence available in every OS/webview version.

    +

    Parameters

    Returns CancellablePromise<T>

    A Promise for the completion of the callback. +Cancellation requests on the returned promise +will propagate up the chain to the parent promise, +but not in the other direction.

    +

    The promise returned from cancel will fulfill only after all attached handlers +up the entire promise chain have been run.

    +

    If onfinally returns a cancellable promise, +cancellation requests will be diverted to it, +and the specified oncancelled callback will be discarded. +See then for more details.

    +
  • Attaches callbacks for the resolution and/or rejection of the CancellablePromise.

    +

    The optional oncancelled argument will be invoked when the returned promise is cancelled, +with the same semantics as the oncancelled argument of the constructor. +When the parent promise rejects or is cancelled, the onrejected callback will run, +even after the returned promise has been cancelled: +in that case, should it reject or throw, the reason will be wrapped +in a CancelledRejectionError and bubbled up as an unhandled rejection.

    +

    Type Parameters

    • TResult1 = T
    • TResult2 = never

    Parameters

    Returns CancellablePromise<TResult1 | TResult2>

    A CancellablePromise for the completion of whichever callback is executed. +The returned promise is hooked up to propagate cancellation requests up the chain, but not down:

    +
      +
    • if the parent promise is cancelled, the onrejected handler will be invoked with a CancelError +and the returned promise will resolve regularly with its result;
    • +
    • conversely, if the returned promise is cancelled, the parent promise is cancelled too; +the onrejected handler will still be invoked with the parent's CancelError, +but its result will be discarded +and the returned promise will reject with a CancelError as well.
    • +
    +

    The promise returned from cancel will fulfill only after all attached handlers +up the entire promise chain have been run.

    +

    If either callback returns a cancellable promise, +cancellation requests will be diverted to it, +and the specified oncancelled callback will be discarded.

    +

Static Methods

  • Creates a CancellablePromise that is resolved with an array of results +when all of the provided Promises resolve, or rejected when any Promise is rejected.

    +

    Every one of the provided objects that is a thenable and cancellable object +will be cancelled when the returned promise is cancelled, with the same cause.

    +

    Type Parameters

    • T

    Parameters

    Returns CancellablePromise<Awaited<T>[]>

  • Creates a Promise that is resolved with an array of results when all of the provided Promises +resolve, or rejected when any Promise is rejected.

    +

    Type Parameters

    • T extends [] | readonly unknown[]

    Parameters

    • values: T

      An array of Promises.

      +

    Returns CancellablePromise<
        { -readonly [P in string
        | number
        | symbol]: Awaited<T[P<P>]> },
    >

    A new Promise.

    +
  • The any function returns a promise that is fulfilled by the first given promise to be fulfilled, +or rejected with an AggregateError containing an array of rejection reasons +if all of the given promises are rejected. +It resolves all elements of the passed iterable to promises as it runs this algorithm.

    +

    Every one of the provided objects that is a thenable and cancellable object +will be cancelled when the returned promise is cancelled, with the same cause.

    +

    Type Parameters

    • T

    Parameters

    Returns CancellablePromise<Awaited<T>>

  • The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.

    +

    Type Parameters

    • T extends [] | readonly unknown[]

    Parameters

    • values: T

      An array or iterable of Promises.

      +

    Returns CancellablePromise<Awaited<T[number]>>

    A new Promise.

    +
  • Creates a new CancellablePromise that resolves after the specified timeout. +The returned promise can be cancelled without consequences.

    +

    Parameters

    • milliseconds: number

    Returns CancellablePromise<void>

  • Creates a new CancellablePromise that resolves after +the specified timeout, with the provided value. +The returned promise can be cancelled without consequences.

    +

    Type Parameters

    • T

    Parameters

    • milliseconds: number
    • value: T

    Returns CancellablePromise<T>

  • Creates a new CancellablePromise that cancels +after the specified timeout, with the provided cause.

    +

    If the AbortSignal.timeout factory method is available, +it is used to base the timeout on active time rather than elapsed time. +Otherwise, timeout falls back to setTimeout.

    +

    Type Parameters

    • T = never

    Parameters

    • milliseconds: number
    • Optionalcause: any

    Returns CancellablePromise<T>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelledRejectionError.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelledRejectionError.html new file mode 100644 index 000000000..583de7b96 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelledRejectionError.html @@ -0,0 +1,21 @@ +CancelledRejectionError | @wailsio/runtime

Class CancelledRejectionError

Exception class that will be reported as an unhandled rejection +in case a CancellablePromise rejects after being cancelled, +or when the oncancelled callback throws or rejects.

+

The value of the name property is the string "CancelledRejectionError". +The value of the cause property is the reason the promise rejected with.

+

Because the original promise was cancelled, +a wrapper promise will be passed to the unhandled rejection listener instead. +The promise property holds a reference to the original promise.

+

Hierarchy

  • Error
    • CancelledRejectionError

Constructors

Properties

Constructors

  • Constructs a new CancelledRejectionError instance.

    +

    Parameters

    • promise: CancellablePromise<unknown>

      The promise that caused the error originally.

      +
    • Optionalreason: any

      The rejection reason.

      +
    • Optionalinfo: string

      An optional informative message specifying the circumstances in which the error was thrown. +Defaults to the string "Unhandled rejection in cancelled promise.".

      +

    Returns CancelledRejectionError

Properties

cause?: unknown
message: string
name: string
promise: CancellablePromise<unknown>

Holds a reference to the promise that was cancelled and then rejected.

+
stack?: string
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Events.WailsEvent.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Events.WailsEvent.html index 6a3105148..df6d0afe7 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Events.WailsEvent.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/Events.WailsEvent.html @@ -1,4 +1,10 @@ -WailsEvent | @wailsio/runtime

Constructors

Properties

Constructors

Properties

data: any
name: any

Generated using TypeDoc

\ No newline at end of file +WailsEvent | @wailsio/runtime

Represents a system event or a custom event emitted through wails-provided facilities.

+

Constructors

Properties

Constructors

Properties

data: any

Optional data associated with the emitted event.

+
name: string

The name of the event.

+
sender?: string

Name of the originating window. Omitted for application events. +Will be overridden if set manually.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/_internal_.Window.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/_internal_.Window.html new file mode 100644 index 000000000..609e1f21b --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/_internal_.Window.html @@ -0,0 +1,134 @@ +Window | @wailsio/runtime

Methods

  • Gets the specified window.

    +

    Parameters

    • name: string

      The name of the window to get.

      +

    Returns Window

    The corresponding window object.

    +
  • Returns true if the window is focused.

    +

    Returns Promise<boolean>

    Whether the window is currently focused.

    +
  • Returns true if the window is fullscreen.

    +

    Returns Promise<boolean>

    Whether the window is currently fullscreen.

    +
  • Returns true if the window is maximised.

    +

    Returns Promise<boolean>

    Whether the window is currently maximised.

    +
  • Returns true if the window is minimised.

    +

    Returns Promise<boolean>

    Whether the window is currently minimised.

    +
  • Returns true if the window is resizable.

    +

    Returns Promise<boolean>

    Whether the window is currently resizable.

    +
  • Restores the window to its previous state if it was previously minimised, maximised or fullscreen.

    +

    Returns Promise<void>

  • Sets the window to be always on top.

    +

    Parameters

    • alwaysOnTop: boolean

      Whether the window should stay on top.

      +

    Returns Promise<void>

  • Sets the background colour of the window.

    +

    Parameters

    • r: number

      The desired red component of the window background.

      +
    • g: number

      The desired green component of the window background.

      +
    • b: number

      The desired blue component of the window background.

      +
    • a: number

      The desired alpha component of the window background.

      +

    Returns Promise<void>

  • Removes the window frame and title bar.

    +

    Parameters

    • frameless: boolean

      Whether the window should be frameless.

      +

    Returns Promise<void>

  • Disables the system fullscreen button.

    +

    Parameters

    • enabled: boolean

      Whether the fullscreen button should be enabled.

      +

    Returns Promise<void>

  • Sets the maximum size of the window.

    +

    Parameters

    • width: number

      The desired maximum width of the window.

      +
    • height: number

      The desired maximum height of the window.

      +

    Returns Promise<void>

  • Sets the minimum size of the window.

    +

    Parameters

    • width: number

      The desired minimum width of the window.

      +
    • height: number

      The desired minimum height of the window.

      +

    Returns Promise<void>

  • Sets the absolute position of the window.

    +

    Parameters

    • x: number

      The desired horizontal absolute position of the window.

      +
    • y: number

      The desired vertical absolute position of the window.

      +

    Returns Promise<void>

  • Sets the relative position of the window to the screen.

    +

    Parameters

    • x: number

      The desired horizontal relative position of the window.

      +
    • y: number

      The desired vertical relative position of the window.

      +

    Returns Promise<void>

  • Sets whether the window is resizable.

    +

    Parameters

    • resizable: boolean

      Whether the window should be resizable.

      +

    Returns Promise<void>

  • Sets the size of the window.

    +

    Parameters

    • width: number

      The desired width of the window.

      +
    • height: number

      The desired height of the window.

      +

    Returns Promise<void>

  • Sets the title of the window.

    +

    Parameters

    • title: string

      The desired title of the window.

      +

    Returns Promise<void>

  • Sets the zoom level of the window.

    +

    Parameters

    • zoom: number

      The desired zoom level.

      +

    Returns Promise<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Hide.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Hide.html index 7f129ce69..7f2061908 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Hide.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Hide.html @@ -1,2 +1,2 @@ -Hide | @wailsio/runtime
  • Hides a certain method by calling the HideMethod function.

    -

    Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file +Hide | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Quit.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Quit.html index 5fe5e1404..7350cfb7f 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Quit.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Quit.html @@ -1,2 +1,2 @@ -Quit | @wailsio/runtime
  • Calls the QuitMethod to terminate the program.

    -

    Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file +Quit | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Show.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Show.html index 22c82d584..5c885e54f 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Show.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Application.Show.html @@ -1,2 +1,2 @@ -Show | @wailsio/runtime
  • Calls the ShowMethod and returns the result.

    -

    Returns Promise<void>

Generated using TypeDoc

\ No newline at end of file +Show | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Browser.OpenURL.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Browser.OpenURL.html index 1ca83c77c..d8e9d2292 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Browser.OpenURL.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Browser.OpenURL.html @@ -1,3 +1,3 @@ -OpenURL | @wailsio/runtime
  • Open a browser window to the given URL

    -

    Parameters

    • url: string

      The URL to open

      -

    Returns Promise<string>

Generated using TypeDoc

\ No newline at end of file +OpenURL | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByID.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByID.html index b0d87a730..70e252457 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByID.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByID.html @@ -1,8 +1,6 @@ -ByID | @wailsio/runtime
  • Calls a method by its numeric ID with the specified arguments. +ByID | @wailsio/runtime

    • Calls a method by its numeric ID with the specified arguments. See Call for details.

      Parameters

      • methodID: number

        The ID of the method to call.

        -
      • Rest ...args: any[]

        The arguments to pass to the method.

        -

      Returns Promise<any>

        -
      • The result of the method call.
      • -
      -

    Generated using TypeDoc

    \ No newline at end of file +
  • ...args: any[]

    The arguments to pass to the method.

    +

Returns CancellablePromise<any>

The result of the method call.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByName.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByName.html index 1e43aee17..41c05d873 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByName.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.ByName.html @@ -1,6 +1,6 @@ -ByName | @wailsio/runtime
  • Calls a bound method by name with the specified arguments. +ByName | @wailsio/runtime

    • Calls a bound method by name with the specified arguments. See Call for details.

      -

      Parameters

      • methodName: string

        The name of the method in the format 'package.struct.method'.

        -
      • Rest ...args: any[]

        The arguments to pass to the method.

        -

      Returns Promise<any>

      The result of the method call.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    • methodName: string

      The name of the method in the format 'package.struct.method'.

      +
    • ...args: any[]

      The arguments to pass to the method.

      +

    Returns CancellablePromise<any>

    The result of the method call.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.Call.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.Call.html index 6771fe7aa..ded96e319 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.Call.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Call.Call.html @@ -1,11 +1,9 @@ -Call | @wailsio/runtime
  • Call a bound method according to the given call options.

    +Call | @wailsio/runtime
    • Call a bound method according to the given call options.

      In case of failure, the returned promise will reject with an exception among ReferenceError (unknown method), TypeError (wrong argument count or type), RuntimeError (method returned an error), or other (network or internal errors). The exception might have a "cause" field with the value returned by the application- or service-level error marshaling functions.

      -

      Parameters

      Returns Promise<any>

        -
      • The result of the call.
      • -
      -

    Generated using TypeDoc

    \ No newline at end of file +

    Parameters

    Returns CancellablePromise<any>

    The result of the call.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.SetText.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.SetText.html index bf72c6ec1..da2582dd7 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.SetText.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.SetText.html @@ -1,6 +1,4 @@ -SetText | @wailsio/runtime
  • Sets the text to the Clipboard.

    +SetText | @wailsio/runtime
    • Sets the text to the Clipboard.

      Parameters

      • text: string

        The text to be set to the Clipboard.

        -

      Returns Promise<any>

        -
      • A Promise that resolves when the operation is successful.
      • -
      -

    Generated using TypeDoc

    \ No newline at end of file +

Returns Promise<void>

A Promise that resolves when the operation is successful.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.Text.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.Text.html index 9b4cf3f9b..cb58a2930 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.Text.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Clipboard.Text.html @@ -1,3 +1,3 @@ -Text | @wailsio/runtime
  • Get the Clipboard text

    -

    Returns Promise<string>

    A promise that resolves with the text from the Clipboard.

    -

Generated using TypeDoc

\ No newline at end of file +Text | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Any.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Any.html deleted file mode 100644 index 8d776ae38..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Any.html +++ /dev/null @@ -1,2 +0,0 @@ -Any | @wailsio/runtime
  • Any is a dummy creation function for simple or unknown types.

    -

    Type Parameters

    • T

    Parameters

    • source: any

    Returns T

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Array.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Array.html deleted file mode 100644 index 7da180aa9..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Array.html +++ /dev/null @@ -1,4 +0,0 @@ -Array | @wailsio/runtime
  • Array takes a creation function for an arbitrary type -and returns an in-place creation function for an array -whose elements are of that type.

    -

    Type Parameters

    • T

    Parameters

    • element: ((source) => T)
        • (source): T
        • Parameters

          • source: any

          Returns T

    Returns ((source) => T[])

      • (source): T[]
      • Parameters

        • source: any

        Returns T[]

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.ByteSlice.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.ByteSlice.html deleted file mode 100644 index 8dd0170b8..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.ByteSlice.html +++ /dev/null @@ -1,3 +0,0 @@ -ByteSlice | @wailsio/runtime
  • ByteSlice is a creation function that replaces -null strings with empty strings.

    -

    Parameters

    • source: any

    Returns string

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Map.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Map.html deleted file mode 100644 index a34b7cb25..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Map.html +++ /dev/null @@ -1,4 +0,0 @@ -Map | @wailsio/runtime
  • Map takes creation functions for two arbitrary types -and returns an in-place creation function for an object -whose keys and values are of those types.

    -

    Type Parameters

    • K
    • V

    Parameters

    • key: ((source) => K)
        • (source): K
        • Parameters

          • source: any

          Returns K

    • value: ((source) => V)
        • (source): V
        • Parameters

          • source: any

          Returns V

    Returns ((source) => {
        [_: K]: V;
    })

      • (source): {
            [_: K]: V;
        }
      • Parameters

        • source: any

        Returns {
            [_: K]: V;
        }

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Nullable.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Nullable.html deleted file mode 100644 index 5c065657b..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Nullable.html +++ /dev/null @@ -1,3 +0,0 @@ -Nullable | @wailsio/runtime
  • Nullable takes a creation function for an arbitrary type -and returns a creation function for a nullable value of that type.

    -

    Type Parameters

    • T

    Parameters

    • element: ((source) => T)
        • (source): T
        • Parameters

          • source: any

          Returns T

    Returns ((source) => null | T)

      • (source): null | T
      • Parameters

        • source: any

        Returns null | T

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Struct.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Struct.html deleted file mode 100644 index 503d912bd..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Create.Struct.html +++ /dev/null @@ -1,3 +0,0 @@ -Struct | @wailsio/runtime
  • Struct takes an object mapping field names to creation functions -and returns an in-place creation function for a struct.

    -

    Type Parameters

    • T extends {
          [_: string]: ((source) => any);
      }
    • U extends {
          [Key in string | number | symbol]?: ReturnType<T[Key]>
      }

    Parameters

    • createField: T

    Returns ((source) => U)

      • (source): U
      • Parameters

        • source: any

        Returns U

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Error.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Error.html index cb362294f..f9df8a693 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Error.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Error.html @@ -1,5 +1,4 @@ -Error | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +Error | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Info.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Info.html index ced72886f..d751a8f42 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Info.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Info.html @@ -1,5 +1,4 @@ -Info | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +Info | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.OpenFile.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.OpenFile.html index 07118f814..34406d0f2 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.OpenFile.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.OpenFile.html @@ -1,3 +1,10 @@ -OpenFile | @wailsio/runtime
  • Parameters

    Returns Promise<string | string[]>

    Returns selected file or list of files. Returns blank string if no file is selected.

    -

Generated using TypeDoc

\ No newline at end of file +OpenFile | @wailsio/runtime
  • Presents a file selection dialog to pick one or more files to open.

    +

    Parameters

    Returns Promise<string[]>

    Selected file or list of files, or a blank string/empty list if no file has been selected.

    +
  • Presents a file selection dialog to pick one or more files to open.

    +

    Parameters

    Returns Promise<string>

    Selected file or list of files, or a blank string/empty list if no file has been selected.

    +
  • Presents a file selection dialog to pick one or more files to open.

    +

    Parameters

    Returns Promise<string | string[]>

    Selected file or list of files, or a blank string/empty list if no file has been selected.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Question.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Question.html index e632a73f9..ffe292169 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Question.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Question.html @@ -1,5 +1,4 @@ -Question | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +Question | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.SaveFile.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.SaveFile.html index 08a5e1f96..d6c5d2644 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.SaveFile.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.SaveFile.html @@ -1,3 +1,4 @@ -SaveFile | @wailsio/runtime
  • Parameters

    Returns Promise<string>

    Returns the selected file. Returns blank string if no file is selected.

    -

Generated using TypeDoc

\ No newline at end of file +SaveFile | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Warning.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Warning.html index 8a8a29157..3849593ed 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Warning.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Dialogs.Warning.html @@ -1,5 +1,4 @@ -Warning | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +Warning | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Emit.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Emit.html index 4554d4ea2..4b1585a0b 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Emit.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Emit.html @@ -1,6 +1,4 @@ -Emit | @wailsio/runtime
  • Emits an event using the given event name.

    +Emit | @wailsio/runtime

    Generated using TypeDoc

    \ No newline at end of file +

Returns Promise<void>

A promise that will be fulfilled once the event has been emitted.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Off.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Off.html index 791f0bcf6..a740a6027 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Off.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Off.html @@ -1,4 +1,3 @@ -Off | @wailsio/runtime
  • Removes event listeners for the specified event names.

    -

    Parameters

    • eventName: string

      The name of the event to remove listeners for.

      -
    • Rest ...additionalEventNames: string[]

      Additional event names to remove listeners for.

      -

    Returns undefined

Generated using TypeDoc

\ No newline at end of file +Off | @wailsio/runtime
  • Removes event listeners for the specified event names.

    +

    Parameters

    • ...eventNames: [string, ...string[]]

      The name of the events to remove listeners for.

      +

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OffAll.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OffAll.html index fd59705d9..68baa6387 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OffAll.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OffAll.html @@ -1,3 +1,2 @@ -OffAll | @wailsio/runtime
  • Removes all event listeners.

    -

    Returns void

    Function

    OffAll

    -

Generated using TypeDoc

\ No newline at end of file +OffAll | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.On.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.On.html index 98b06131c..eb0203c7c 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.On.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.On.html @@ -1,7 +1,5 @@ -On | @wailsio/runtime
  • Registers a callback function to be executed when the specified event occurs.

    -

    Parameters

    • eventName: string

      The name of the event.

      -
    • callback: Function

      The callback function to be executed. It takes no parameters.

      -

    Returns Function

      -
    • A function that, when called, will unregister the callback from the event.
    • -
    -

Generated using TypeDoc

\ No newline at end of file +On | @wailsio/runtime
  • Registers a callback function to be executed when the specified event occurs.

    +

    Parameters

    • eventName: string

      The name of the event to register the callback for.

      +
    • callback: Callback

      The callback function to be called when the event is triggered.

      +

    Returns () => void

    A function that, when called, will unregister the callback from the event.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OnMultiple.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OnMultiple.html index 0d03e56fc..29118f3f7 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OnMultiple.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.OnMultiple.html @@ -1,8 +1,6 @@ -OnMultiple | @wailsio/runtime
  • Register a callback function to be called multiple times for a specific event.

    +OnMultiple | @wailsio/runtime
    • Register a callback function to be called multiple times for a specific event.

      Parameters

      • eventName: string

        The name of the event to register the callback for.

        -
      • callback: Function

        The callback function to be called when the event is triggered.

        +
      • callback: Callback

        The callback function to be called when the event is triggered.

      • maxCallbacks: number

        The maximum number of times the callback can be called for the event. Once the maximum number is reached, the callback will no longer be called.

        -

      Returns Function

        -
      • A function that, when called, will unregister the callback from the event.
      • -
      -

    Generated using TypeDoc

    \ No newline at end of file +

Returns () => void

A function that, when called, will unregister the callback from the event.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Once.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Once.html index 4ee3b22d2..6acc7279f 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Once.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.Once.html @@ -1,7 +1,5 @@ -Once | @wailsio/runtime
  • Registers a callback function to be executed only once for the specified event.

    -

    Parameters

    • eventName: string

      The name of the event.

      -
    • callback: Function

      The function to be executed when the event occurs.

      -

    Returns Function

      -
    • A function that, when called, will unregister the callback from the event.
    • -
    -

Generated using TypeDoc

\ No newline at end of file +Once | @wailsio/runtime
  • Registers a callback function to be executed only once for the specified event.

    +

    Parameters

    • eventName: string

      The name of the event to register the callback for.

      +
    • callback: Callback

      The callback function to be called when the event is triggered.

      +

    Returns () => void

    A function that, when called, will unregister the callback from the event.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.setup.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.setup.html deleted file mode 100644 index 243255a83..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Events.setup.html +++ /dev/null @@ -1 +0,0 @@ -setup | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Flags.GetFlag.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Flags.GetFlag.html index da51ebf3f..e2c9aba48 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Flags.GetFlag.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Flags.GetFlag.html @@ -1,6 +1,4 @@ -GetFlag | @wailsio/runtime
  • Retrieves the value associated with the specified key from the flag map.

    -

    Parameters

    • keyString: string

      The key to retrieve the value for.

      -

    Returns any

      -
    • The value associated with the specified key.
    • -
    -

Generated using TypeDoc

\ No newline at end of file +GetFlag | @wailsio/runtime
  • Retrieves the value associated with the specified key from the flag map.

    +

    Parameters

    • key: string

      The key to retrieve the value for.

      +

    Returns any

    The value associated with the specified key.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetAll.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetAll.html index 59fa1a594..2d37fb8ed 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetAll.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetAll.html @@ -1,3 +1,3 @@ -GetAll | @wailsio/runtime
  • Gets all screens.

    -

    Returns Promise<Screen[]>

    A promise that resolves to an array of Screen objects.

    -

Generated using TypeDoc

\ No newline at end of file +GetAll | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetCurrent.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetCurrent.html index ffaac30a9..3fb2fe93e 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetCurrent.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetCurrent.html @@ -1,3 +1,3 @@ -GetCurrent | @wailsio/runtime
  • Gets the current active screen.

    -

    Returns Promise<Screen>

    A promise that resolves with the current active screen.

    -

Generated using TypeDoc

\ No newline at end of file +GetCurrent | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetPrimary.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetPrimary.html index 0492eccc8..1c5dc871c 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetPrimary.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/Screens.GetPrimary.html @@ -1,3 +1,3 @@ -GetPrimary | @wailsio/runtime
  • Gets the primary screen.

    -

    Returns Promise<Screen>

    A promise that resolves to the primary screen.

    -

Generated using TypeDoc

\ No newline at end of file +GetPrimary | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Capabilities.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Capabilities.html index 0c486a53f..0942ab6c4 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Capabilities.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Capabilities.html @@ -1,4 +1,3 @@ -Capabilities | @wailsio/runtime
  • Fetches the capabilities of the application from the server.

    -

    Returns Promise<Object>

    A promise that resolves to an object containing the capabilities.

    -

    Async

    Function

    Capabilities

    -

Generated using TypeDoc

\ No newline at end of file +Capabilities | @wailsio/runtime
  • Fetches the capabilities of the application from the server.

    +

    Returns Promise<Record<string, any>>

    A promise that resolves to an object containing the capabilities.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Environment.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Environment.html index b401510bf..ddef570a3 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Environment.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.Environment.html @@ -1,5 +1,3 @@ -Environment | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +Environment | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsAMD64.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsAMD64.html index 68826c47b..54d67e121 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsAMD64.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsAMD64.html @@ -1,3 +1,3 @@ -IsAMD64 | @wailsio/runtime
  • Checks if the current environment architecture is AMD64.

    +IsAMD64 | @wailsio/runtime
    • Checks if the current environment architecture is AMD64.

      Returns boolean

      True if the current environment architecture is AMD64, false otherwise.

      -

    Generated using TypeDoc

    \ No newline at end of file +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM.html index c995b8def..60517d83f 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM.html @@ -1,3 +1,3 @@ -IsARM | @wailsio/runtime
  • Checks if the current architecture is ARM.

    +IsARM | @wailsio/runtime
    • Checks if the current architecture is ARM.

      Returns boolean

      True if the current architecture is ARM, false otherwise.

      -

    Generated using TypeDoc

    \ No newline at end of file +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM64.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM64.html index 71deca676..0203192bc 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM64.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsARM64.html @@ -1,5 +1,3 @@ -IsARM64 | @wailsio/runtime
  • Checks if the current environment is ARM64 architecture.

    -

    Returns boolean

      -
    • Returns true if the environment is ARM64 architecture, otherwise returns false.
    • -
    -

Generated using TypeDoc

\ No newline at end of file +IsARM64 | @wailsio/runtime
  • Checks if the current environment is ARM64 architecture.

    +

    Returns boolean

    Returns true if the environment is ARM64 architecture, otherwise returns false.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDarkMode.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDarkMode.html index 271fbbd2c..0667df68b 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDarkMode.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDarkMode.html @@ -1,5 +1,3 @@ -IsDarkMode | @wailsio/runtime
  • Returns Promise<boolean>

      -
    • A promise that resolves to a boolean value indicating if the system is in dark mode.
    • -
    -

    Function

    Retrieves the system dark mode status.

    -

Generated using TypeDoc

\ No newline at end of file +IsDarkMode | @wailsio/runtime
  • Retrieves the system dark mode status.

    +

    Returns Promise<boolean>

    A promise that resolves to a boolean value indicating if the system is in dark mode.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDebug.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDebug.html index a77110244..dea3c4d8f 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDebug.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsDebug.html @@ -1 +1,3 @@ -IsDebug | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +IsDebug | @wailsio/runtime
  • Reports whether the app is being run in debug mode.

    +

    Returns boolean

    True if the app is being run in debug mode.

    +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsLinux.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsLinux.html index 86aa98f6c..950e608c2 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsLinux.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsLinux.html @@ -1,3 +1,3 @@ -IsLinux | @wailsio/runtime
  • Checks if the current operating system is Linux.

    +IsLinux | @wailsio/runtime
    • Checks if the current operating system is Linux.

      Returns boolean

      Returns true if the current operating system is Linux, false otherwise.

      -

    Generated using TypeDoc

    \ No newline at end of file +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsMac.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsMac.html index 4735f0676..e924ffca7 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsMac.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsMac.html @@ -1,3 +1,3 @@ -IsMac | @wailsio/runtime
  • Checks if the current environment is a macOS operating system.

    +IsMac | @wailsio/runtime
    • Checks if the current environment is a macOS operating system.

      Returns boolean

      True if the environment is macOS, false otherwise.

      -

    Generated using TypeDoc

    \ No newline at end of file +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsWindows.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsWindows.html index 695320b29..51ce008d3 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsWindows.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.IsWindows.html @@ -1,3 +1,3 @@ -IsWindows | @wailsio/runtime
  • Checks if the current operating system is Windows.

    +IsWindows | @wailsio/runtime
    • Checks if the current operating system is Windows.

      Returns boolean

      True if the operating system is Windows, otherwise false.

      -

    Generated using TypeDoc

    \ No newline at end of file +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.invoke.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.invoke.html index 03fcc2da0..1990b1ac5 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.invoke.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/System.invoke.html @@ -1 +1 @@ -invoke | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +invoke | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Enable.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Enable.html index 74ca9b159..c45e617fd 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Enable.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Enable.html @@ -1,2 +1,2 @@ -Enable | @wailsio/runtime
  • Schedules an automatic reload of WML to be performed as soon as the document is fully loaded.

    -

    Returns void

Generated using TypeDoc

\ No newline at end of file +Enable | @wailsio/runtime
  • Schedules an automatic reload of WML to be performed as soon as the document is fully loaded.

    +

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Reload.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Reload.html index 1b585e9ec..b20325018 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Reload.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/WML.Reload.html @@ -1,2 +1,2 @@ -Reload | @wailsio/runtime
  • Reloads the WML page by adding necessary event listeners and browser listeners.

    -

    Returns void

Generated using TypeDoc

\ No newline at end of file +Reload | @wailsio/runtime
  • Reloads the WML page by adding necessary event listeners and browser listeners.

    +

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/init.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/init.html deleted file mode 100644 index cc4d4a42f..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/functions/init.html +++ /dev/null @@ -1 +0,0 @@ -init | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/hierarchy.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/hierarchy.html new file mode 100644 index 000000000..860256700 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/hierarchy.html @@ -0,0 +1 @@ +@wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/index.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/index.html index eba5c3b45..90f345405 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/index.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/index.html @@ -1,5 +1,7 @@ -@wailsio/runtime

@wailsio/runtime

README

The main.js file in this directory is the entrypoint for the runtime.js file that may be +@wailsio/runtime

@wailsio/runtime

README

The index.js file in the compiled directory is the entrypoint for the runtime.js file that may be loaded at runtime. This will add window.wails and window._wails to the global scope.

NOTE: It is preferable to use the @wailsio/runtime package to use the runtime.

-

After updating any files in this directory, you must run wails3 task build:runtime to regenerate the compiled JS.

-

Generated using TypeDoc

\ No newline at end of file +

⚠️ Do not rebuild the runtime manually after updating TS code: +the CI pipeline will take care of this. +PRs that touch build artifacts will be blocked from merging.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Call.CallOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Call.CallOptions.html deleted file mode 100644 index 8e4991955..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Call.CallOptions.html +++ /dev/null @@ -1,7 +0,0 @@ -CallOptions | @wailsio/runtime

Interface CallOptions

interface CallOptions {
    args: any[];
    methodID: undefined | number;
    methodName: undefined | string;
}

Properties

Properties

args: any[]

Arguments to be passed into the bound method.

-
methodID: undefined | number

The numeric ID of the bound method to call.

-
methodName: undefined | string

The fully qualified name of the bound method to call.

-

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseLike.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseLike.html new file mode 100644 index 000000000..a65b1b218 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseLike.html @@ -0,0 +1,3 @@ +CancellablePromiseLike | @wailsio/runtime

Interface CancellablePromiseLike<T>

interface CancellablePromiseLike<T> {
    cancel(cause?: any): void | PromiseLike<void>;
    then<TResult1 = T, TResult2 = never>(
        onfulfilled?:
            | null
            | (
                value: T,
            ) => TResult1 | PromiseLike<TResult1> | CancellablePromiseLike<TResult1>,
        onrejected?:
            | null
            | (
                reason: any,
            ) => TResult2 | PromiseLike<TResult2> | CancellablePromiseLike<TResult2>,
    ): CancellablePromiseLike<TResult1 | TResult2>;
}

Type Parameters

  • T

Implemented by

Methods

Methods

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseWithResolvers.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseWithResolvers.html new file mode 100644 index 000000000..19ea7eeb6 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseWithResolvers.html @@ -0,0 +1,7 @@ +CancellablePromiseWithResolvers | @wailsio/runtime

Interface CancellablePromiseWithResolvers<T>

Wraps a cancellable promise along with its resolution methods. +The oncancelled field will be null initially but may be set to provide a custom cancellation function.

+
interface CancellablePromiseWithResolvers<T> {
    oncancelled: null | CancellablePromiseCanceller;
    promise: CancellablePromise<T>;
    reject: CancellablePromiseRejector;
    resolve: CancellablePromiseResolver<T>;
}

Type Parameters

  • T

Properties

oncancelled: null | CancellablePromiseCanceller
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.Button.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.Button.html index e9345df4f..9ba223601 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.Button.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.Button.html @@ -1,7 +1,7 @@ -Button | @wailsio/runtime
interface Button {
    IsCancel: undefined | boolean;
    IsDefault: undefined | boolean;
    Label: undefined | string;
}

Properties

Properties

IsCancel: undefined | boolean

True if the button should cancel an operation when clicked.

-
IsDefault: undefined | boolean

True if the button should be the default action when the user presses enter.

-
Label: undefined | string

Text that appears within the button.

-

Generated using TypeDoc

\ No newline at end of file +Button | @wailsio/runtime
interface Button {
    IsCancel?: boolean;
    IsDefault?: boolean;
    Label?: string;
}

Properties

IsCancel?: boolean

True if the button should cancel an operation when clicked.

+
IsDefault?: boolean

True if the button should be the default action when the user presses enter.

+
Label?: string

Text that appears within the button.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.FileFilter.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.FileFilter.html index 79c4d1b98..c2e603664 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.FileFilter.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.FileFilter.html @@ -1,5 +1,5 @@ -FileFilter | @wailsio/runtime
interface FileFilter {
    DisplayName: undefined | string;
    Pattern: undefined | string;
}

Properties

Properties

DisplayName: undefined | string

Display name for the filter, it could be "Text Files", "Images" etc.

-
Pattern: undefined | string

Pattern to match for the filter, e.g. ".txt;.md" for text markdown files.

-

Generated using TypeDoc

\ No newline at end of file +FileFilter | @wailsio/runtime
interface FileFilter {
    DisplayName?: string;
    Pattern?: string;
}

Properties

Properties

DisplayName?: string

Display name for the filter, it could be "Text Files", "Images" etc.

+
Pattern?: string

Pattern to match for the filter, e.g. ".txt;.md" for text markdown files.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.MessageDialogOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.MessageDialogOptions.html index 0ece76e45..0b4bc0f29 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.MessageDialogOptions.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.MessageDialogOptions.html @@ -1,9 +1,9 @@ -MessageDialogOptions | @wailsio/runtime

Interface MessageDialogOptions

interface MessageDialogOptions {
    Buttons: undefined | Button[];
    Detached: undefined | boolean;
    Message: undefined | string;
    Title: undefined | string;
}

Properties

Properties

Buttons: undefined | Button[]

Array of button options to show in the dialog.

-
Detached: undefined | boolean

True if the dialog should appear detached from the main window (if applicable).

-
Message: undefined | string

The main message to show in the dialog.

-
Title: undefined | string

The title of the dialog window.

-

Generated using TypeDoc

\ No newline at end of file +MessageDialogOptions | @wailsio/runtime

Interface MessageDialogOptions

interface MessageDialogOptions {
    Buttons?: Button[];
    Detached?: boolean;
    Message?: string;
    Title?: string;
}

Properties

Buttons?: Button[]

Array of button options to show in the dialog.

+
Detached?: boolean

True if the dialog should appear detached from the main window (if applicable).

+
Message?: string

The main message to show in the dialog.

+
Title?: string

The title of the dialog window.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.OpenFileDialogOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.OpenFileDialogOptions.html index 478b976ff..a9d22d556 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.OpenFileDialogOptions.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.OpenFileDialogOptions.html @@ -1,33 +1,33 @@ -OpenFileDialogOptions | @wailsio/runtime

Interface OpenFileDialogOptions

interface OpenFileDialogOptions {
    AllowsMultipleSelection: undefined | boolean;
    AllowsOtherFiletypes: undefined | boolean;
    ButtonText: undefined | string;
    CanChooseDirectories: undefined | boolean;
    CanChooseFiles: undefined | boolean;
    CanCreateDirectories: undefined | boolean;
    CanSelectHiddenExtension: undefined | boolean;
    Detached: undefined | boolean;
    Directory: undefined | string;
    Filters: undefined | FileFilter[];
    HideExtension: undefined | boolean;
    Message: undefined | string;
    ResolvesAliases: undefined | boolean;
    ShowHiddenFiles: undefined | boolean;
    Title: undefined | string;
    TreatsFilePackagesAsDirectories: undefined | boolean;
}

Properties

AllowsMultipleSelection: undefined | boolean

Indicates if multiple selection is allowed.

-
AllowsOtherFiletypes: undefined | boolean

Indicates if other file types are allowed.

-
ButtonText: undefined | string

Text to display on the button.

-
CanChooseDirectories: undefined | boolean

Indicates if directories can be chosen.

-
CanChooseFiles: undefined | boolean

Indicates if files can be chosen.

-
CanCreateDirectories: undefined | boolean

Indicates if directories can be created.

-
CanSelectHiddenExtension: undefined | boolean

Indicates if hidden extensions can be selected.

-
Detached: undefined | boolean

Indicates if the dialog should appear detached from the main window.

-
Directory: undefined | string

Directory to open in the dialog.

-
Filters: undefined | FileFilter[]

Array of file filters.

-
HideExtension: undefined | boolean

Indicates if the extension should be hidden.

-
Message: undefined | string

Message to show in the dialog.

-
ResolvesAliases: undefined | boolean

Indicates if aliases should be resolved.

-
ShowHiddenFiles: undefined | boolean

Indicates if hidden files should be shown.

-
Title: undefined | string

Title of the dialog.

-
TreatsFilePackagesAsDirectories: undefined | boolean

Indicates if file packages should be treated as directories.

-

Generated using TypeDoc

\ No newline at end of file +OpenFileDialogOptions | @wailsio/runtime

Interface OpenFileDialogOptions

interface OpenFileDialogOptions {
    AllowsMultipleSelection?: boolean;
    AllowsOtherFiletypes?: boolean;
    ButtonText?: string;
    CanChooseDirectories?: boolean;
    CanChooseFiles?: boolean;
    CanCreateDirectories?: boolean;
    CanSelectHiddenExtension?: boolean;
    Detached?: boolean;
    Directory?: string;
    Filters?: FileFilter[];
    HideExtension?: boolean;
    Message?: string;
    ResolvesAliases?: boolean;
    ShowHiddenFiles?: boolean;
    Title?: string;
    TreatsFilePackagesAsDirectories?: boolean;
}

Properties

AllowsMultipleSelection?: boolean

Indicates if multiple selection is allowed.

+
AllowsOtherFiletypes?: boolean

Indicates if other file types are allowed.

+
ButtonText?: string

Text to display on the button.

+
CanChooseDirectories?: boolean

Indicates if directories can be chosen.

+
CanChooseFiles?: boolean

Indicates if files can be chosen.

+
CanCreateDirectories?: boolean

Indicates if directories can be created.

+
CanSelectHiddenExtension?: boolean

Indicates if hidden extensions can be selected.

+
Detached?: boolean

Indicates if the dialog should appear detached from the main window.

+
Directory?: string

Directory to open in the dialog.

+
Filters?: FileFilter[]

Array of file filters.

+
HideExtension?: boolean

Indicates if the extension should be hidden.

+
Message?: string

Message to show in the dialog.

+
ResolvesAliases?: boolean

Indicates if aliases should be resolved.

+
ShowHiddenFiles?: boolean

Indicates if hidden files should be shown.

+
Title?: string

Title of the dialog.

+
TreatsFilePackagesAsDirectories?: boolean

Indicates if file packages should be treated as directories.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.SaveFileDialogOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.SaveFileDialogOptions.html index 535122e51..3a8611dab 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.SaveFileDialogOptions.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Dialogs.SaveFileDialogOptions.html @@ -1,35 +1,33 @@ -SaveFileDialogOptions | @wailsio/runtime

Interface SaveFileDialogOptions

interface SaveFileDialogOptions {
    AllowsMultipleSelection: undefined | boolean;
    AllowsOtherFiletypes: undefined | boolean;
    ButtonText: undefined | string;
    CanChooseDirectories: undefined | boolean;
    CanChooseFiles: undefined | boolean;
    CanCreateDirectories: undefined | boolean;
    CanSelectHiddenExtension: undefined | boolean;
    Detached: undefined | boolean;
    Directory: undefined | string;
    Filename: undefined | string;
    Filters: undefined | FileFilter[];
    HideExtension: undefined | boolean;
    Message: undefined | string;
    ResolvesAliases: undefined | boolean;
    ShowHiddenFiles: undefined | boolean;
    Title: undefined | string;
    TreatsFilePackagesAsDirectories: undefined | boolean;
}

Properties

AllowsMultipleSelection: undefined | boolean

Indicates if multiple selection is allowed.

-
AllowsOtherFiletypes: undefined | boolean

Indicates if other file types are allowed.

-
ButtonText: undefined | string

Text to display on the button.

-
CanChooseDirectories: undefined | boolean

Indicates if directories can be chosen.

-
CanChooseFiles: undefined | boolean

Indicates if files can be chosen.

-
CanCreateDirectories: undefined | boolean

Indicates if directories can be created.

-
CanSelectHiddenExtension: undefined | boolean

Indicates if hidden extensions can be selected.

-
Detached: undefined | boolean

Indicates if the dialog should appear detached from the main window.

-
Directory: undefined | string

Directory to open in the dialog.

-
Filename: undefined | string

Default filename to use in the dialog.

-
Filters: undefined | FileFilter[]

Array of file filters.

-
HideExtension: undefined | boolean

Indicates if the extension should be hidden.

-
Message: undefined | string

Message to show in the dialog.

-
ResolvesAliases: undefined | boolean

Indicates if aliases should be resolved.

-
ShowHiddenFiles: undefined | boolean

Indicates if hidden files should be shown.

-
Title: undefined | string

Title of the dialog.

-
TreatsFilePackagesAsDirectories: undefined | boolean

Indicates if file packages should be treated as directories.

-

Generated using TypeDoc

\ No newline at end of file +SaveFileDialogOptions | @wailsio/runtime

Interface SaveFileDialogOptions

interface SaveFileDialogOptions {
    AllowsOtherFiletypes?: boolean;
    ButtonText?: string;
    CanChooseDirectories?: boolean;
    CanChooseFiles?: boolean;
    CanCreateDirectories?: boolean;
    CanSelectHiddenExtension?: boolean;
    Detached?: boolean;
    Directory?: string;
    Filename?: string;
    Filters?: FileFilter[];
    HideExtension?: boolean;
    Message?: string;
    ResolvesAliases?: boolean;
    ShowHiddenFiles?: boolean;
    Title?: string;
    TreatsFilePackagesAsDirectories?: boolean;
}

Properties

AllowsOtherFiletypes?: boolean

Indicates if other file types are allowed.

+
ButtonText?: string

Text to display on the button.

+
CanChooseDirectories?: boolean

Indicates if directories can be chosen.

+
CanChooseFiles?: boolean

Indicates if files can be chosen.

+
CanCreateDirectories?: boolean

Indicates if directories can be created.

+
CanSelectHiddenExtension?: boolean

Indicates if hidden extensions can be selected.

+
Detached?: boolean

Indicates if the dialog should appear detached from the main window.

+
Directory?: string

Directory to open in the dialog.

+
Filename?: string

Default filename to use in the dialog.

+
Filters?: FileFilter[]

Array of file filters.

+
HideExtension?: boolean

Indicates if the extension should be hidden.

+
Message?: string

Message to show in the dialog.

+
ResolvesAliases?: boolean

Indicates if aliases should be resolved.

+
ShowHiddenFiles?: boolean

Indicates if hidden files should be shown.

+
Title?: string

Title of the dialog.

+
TreatsFilePackagesAsDirectories?: boolean

Indicates if file packages should be treated as directories.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Rect.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Rect.html index ef90dd394..f8f873f49 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Rect.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Rect.html @@ -1,9 +1,9 @@ -Rect | @wailsio/runtime
interface Rect {
    Height: number;
    Width: number;
    X: number;
    Y: number;
}

Properties

Properties

Height: number

The height of the rectangle.

-
Width: number

The width of the rectangle.

-
X: number

The X coordinate of the origin.

-
Y: number

The Y coordinate of the origin.

-

Generated using TypeDoc

\ No newline at end of file +Rect | @wailsio/runtime
interface Rect {
    Height: number;
    Width: number;
    X: number;
    Y: number;
}

Properties

Properties

Height: number

The height of the rectangle.

+
Width: number

The width of the rectangle.

+
X: number

The X coordinate of the origin.

+
Y: number

The Y coordinate of the origin.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Screen.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Screen.html index 626cd2914..e8500345f 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Screen.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Screen.html @@ -1,25 +1,25 @@ -Screen | @wailsio/runtime
interface Screen {
    Bounds: Rect;
    ID: string;
    IsPrimary: boolean;
    Name: string;
    PhysicalBounds: Rect;
    PhysicalWorkArea: Rect;
    Rotation: number;
    ScaleFactor: number;
    Size: Size;
    WorkArea: Rect;
    X: number;
    Y: number;
}

Properties

Bounds: Rect

Contains the bounds of the screen in terms of X, Y, Width, and Height.

-
ID: string

Unique identifier for the screen.

-
IsPrimary: boolean

True if this is the primary monitor selected by the user in the operating system.

-
Name: string

Human readable name of the screen.

-
PhysicalBounds: Rect

Contains the physical bounds of the screen in terms of X, Y, Width, and Height (before scaling).

-
PhysicalWorkArea: Rect

Contains the physical WorkArea of the screen (before scaling).

-
Rotation: number

The rotation of the screen.

-
ScaleFactor: number

The scale factor of the screen (DPI/96). 1 = standard DPI, 2 = HiDPI (Retina), etc.

-
Size: Size

Contains the width and height of the screen.

-
WorkArea: Rect

Contains the area of the screen that is actually usable (excluding taskbar and other system UI).

-
X: number

The X coordinate of the screen.

-
Y: number

The Y coordinate of the screen.

-

Generated using TypeDoc

\ No newline at end of file +Screen | @wailsio/runtime
interface Screen {
    Bounds: Rect;
    ID: string;
    IsPrimary: boolean;
    Name: string;
    PhysicalBounds: Rect;
    PhysicalWorkArea: Rect;
    Rotation: number;
    ScaleFactor: number;
    Size: Screens.Size;
    WorkArea: Rect;
    X: number;
    Y: number;
}

Properties

Bounds: Rect

Contains the bounds of the screen in terms of X, Y, Width, and Height.

+
ID: string

Unique identifier for the screen.

+
IsPrimary: boolean

True if this is the primary monitor selected by the user in the operating system.

+
Name: string

Human-readable name of the screen.

+
PhysicalBounds: Rect

Contains the physical bounds of the screen in terms of X, Y, Width, and Height (before scaling).

+
PhysicalWorkArea: Rect

Contains the physical WorkArea of the screen (before scaling).

+
Rotation: number

The rotation of the screen.

+
ScaleFactor: number

The scale factor of the screen (DPI/96). 1 = standard DPI, 2 = HiDPI (Retina), etc.

+

Contains the width and height of the screen.

+
WorkArea: Rect

Contains the area of the screen that is actually usable (excluding taskbar and other system UI).

+
X: number

The X coordinate of the screen.

+
Y: number

The Y coordinate of the screen.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Size.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Size.html index 06c8787b0..850d4eea4 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Size.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/Screens.Size.html @@ -1,5 +1,5 @@ -Size | @wailsio/runtime
interface Size {
    Height: number;
    Width: number;
}

Properties

Properties

Height: number

The height.

-
Width: number

The width.

-

Generated using TypeDoc

\ No newline at end of file +Size | @wailsio/runtime
interface Size {
    Height: number;
    Width: number;
}

Properties

Properties

Height: number

The height of a rectangular area.

+
Width: number

The width of a rectangular area.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.EnvironmentInfo.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.EnvironmentInfo.html index 5f05fee9a..1465b378f 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.EnvironmentInfo.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.EnvironmentInfo.html @@ -1,11 +1,11 @@ -EnvironmentInfo | @wailsio/runtime

Interface EnvironmentInfo

interface EnvironmentInfo {
    Arch: string;
    Debug: boolean;
    OS: string;
    OSInfo: OSInfo;
    PlatformInfo: Object;
}

Properties

Properties

Arch: string

The architecture of the system.

-
Debug: boolean

True if the application is running in debug mode, otherwise false.

-
OS: string

The operating system in use.

-
OSInfo: OSInfo

Details of the operating system.

-
PlatformInfo: Object

Additional platform information.

-

Generated using TypeDoc

\ No newline at end of file +EnvironmentInfo | @wailsio/runtime

Interface EnvironmentInfo

interface EnvironmentInfo {
    Arch: string;
    Debug: boolean;
    OS: string;
    OSInfo: OSInfo;
    PlatformInfo: Record<string, any>;
}

Properties

Properties

Arch: string

The architecture of the system.

+
Debug: boolean

True if the application is running in debug mode, otherwise false.

+
OS: string

The operating system in use.

+
OSInfo: OSInfo

Details of the operating system.

+
PlatformInfo: Record<string, any>

Additional platform information.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.OSInfo.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.OSInfo.html index dac847d9f..9fe3cb690 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.OSInfo.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/System.OSInfo.html @@ -1,9 +1,9 @@ -OSInfo | @wailsio/runtime
interface OSInfo {
    Branding: string;
    ID: string;
    Name: string;
    Version: string;
}

Properties

Properties

Branding: string

The branding of the OS.

-
ID: string

The ID of the OS.

-
Name: string

The name of the OS.

-
Version: string

The version of the OS.

-

Generated using TypeDoc

\ No newline at end of file +OSInfo | @wailsio/runtime
interface OSInfo {
    Branding: string;
    ID: string;
    Name: string;
    Version: string;
}

Properties

Properties

Branding: string

The branding of the OS.

+
ID: string

The ID of the OS.

+
Name: string

The name of the OS.

+
Version: string

The version of the OS.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.AddEventListenerOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.AddEventListenerOptions.html new file mode 100644 index 000000000..7ea29bc1b --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.AddEventListenerOptions.html @@ -0,0 +1,5 @@ +AddEventListenerOptions | @wailsio/runtime

Interface AddEventListenerOptions

interface AddEventListenerOptions {
    capture?: boolean;
    once?: boolean;
    passive?: boolean;
    signal?: AbortSignal;
}

Hierarchy (View Summary)

Properties

capture?: boolean
once?: boolean
passive?: boolean
signal?: AbortSignal
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ArrayBufferView.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ArrayBufferView.html new file mode 100644 index 000000000..34cc95d72 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ArrayBufferView.html @@ -0,0 +1,7 @@ +ArrayBufferView | @wailsio/runtime

Interface ArrayBufferView<TArrayBuffer>

interface ArrayBufferView<
    TArrayBuffer extends ArrayBufferLike = ArrayBufferLike,
> {
    buffer: TArrayBuffer;
    byteLength: number;
    byteOffset: number;
}

Type Parameters

Properties

buffer: TArrayBuffer

The ArrayBuffer instance referenced by the array.

+
byteLength: number

The length in bytes of the array.

+
byteOffset: number

The offset in bytes of the array.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Blob.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Blob.html new file mode 100644 index 000000000..051fea2a3 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Blob.html @@ -0,0 +1,17 @@ +Blob | @wailsio/runtime

A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.

+

MDN Reference

+
interface Blob {
    size: number;
    type: string;
    arrayBuffer(): Promise<ArrayBuffer>;
    bytes(): Promise<Uint8Array<ArrayBufferLike>>;
    slice(start?: number, end?: number, contentType?: string): Blob;
    stream(): ReadableStream<Uint8Array<ArrayBufferLike>>;
    text(): Promise<string>;
}

Properties

Methods

Properties

size: number
type: string

Methods

  • Parameters

    • Optionalstart: number
    • Optionalend: number
    • OptionalcontentType: string

    Returns Blob

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.BlobPropertyBag.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.BlobPropertyBag.html new file mode 100644 index 000000000..6fdfdc2d7 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.BlobPropertyBag.html @@ -0,0 +1,3 @@ +BlobPropertyBag | @wailsio/runtime
interface BlobPropertyBag {
    endings?: EndingType;
    type?: string;
}

Properties

Properties

endings?: EndingType
type?: string
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ErrorOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ErrorOptions.html new file mode 100644 index 000000000..12c1c1dec --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ErrorOptions.html @@ -0,0 +1,2 @@ +ErrorOptions | @wailsio/runtime
interface ErrorOptions {
    cause?: unknown;
}

Properties

Properties

cause?: unknown
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Event.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Event.html new file mode 100644 index 000000000..658cc399a --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Event.html @@ -0,0 +1,57 @@ +Event | @wailsio/runtime

An event which takes place in the DOM.

+

MDN Reference

+
interface Event {
    AT_TARGET: 2;
    bubbles: boolean;
    BUBBLING_PHASE: 3;
    cancelable: boolean;
    cancelBubble: boolean;
    CAPTURING_PHASE: 1;
    composed: boolean;
    currentTarget: null | EventTarget;
    defaultPrevented: boolean;
    eventPhase: number;
    isTrusted: boolean;
    NONE: 0;
    returnValue: boolean;
    srcElement: null | EventTarget;
    target: null | EventTarget;
    timeStamp: number;
    type: string;
    composedPath(): EventTarget[];
    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
    preventDefault(): void;
    stopImmediatePropagation(): void;
    stopPropagation(): void;
}

Properties

AT_TARGET: 2
bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

+

MDN Reference

+
BUBBLING_PHASE: 3
cancelable: boolean

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.

+

MDN Reference

+
cancelBubble: boolean

MDN Reference

+
CAPTURING_PHASE: 1
composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

+

MDN Reference

+
currentTarget: null | EventTarget

Returns the object whose event listener's callback is currently being invoked.

+

MDN Reference

+
defaultPrevented: boolean

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.

+

MDN Reference

+
eventPhase: number

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

+

MDN Reference

+
isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

+

MDN Reference

+
NONE: 0
returnValue: boolean

MDN Reference

+
srcElement: null | EventTarget

MDN Reference

+
target: null | EventTarget

Returns the object to which event is dispatched (its target).

+

MDN Reference

+
timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

+

MDN Reference

+
type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

+

MDN Reference

+

Methods

  • Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

    +

    MDN Reference

    +

    Returns EventTarget[]

  • Parameters

    • type: string
    • Optionalbubbles: boolean
    • Optionalcancelable: boolean

    Returns void

    MDN Reference

    +
  • If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

    +

    MDN Reference

    +

    Returns void

  • Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

    +

    MDN Reference

    +

    Returns void

  • When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

    +

    MDN Reference

    +

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventInit.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventInit.html new file mode 100644 index 000000000..27cc94ba8 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventInit.html @@ -0,0 +1,4 @@ +EventInit | @wailsio/runtime
interface EventInit {
    bubbles?: boolean;
    cancelable?: boolean;
    composed?: boolean;
}

Properties

bubbles?: boolean
cancelable?: boolean
composed?: boolean
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListener.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListener.html new file mode 100644 index 000000000..aa2f55376 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListener.html @@ -0,0 +1 @@ +EventListener | @wailsio/runtime
  • Parameters

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerObject.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerObject.html new file mode 100644 index 000000000..c644929fd --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerObject.html @@ -0,0 +1,2 @@ +EventListenerObject | @wailsio/runtime
interface EventListenerObject {
    handleEvent(object: Event): void;
}

Methods

Methods

  • Parameters

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerOptions.html new file mode 100644 index 000000000..4554d1cfd --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventListenerOptions.html @@ -0,0 +1,2 @@ +EventListenerOptions | @wailsio/runtime
interface EventListenerOptions {
    capture?: boolean;
}

Hierarchy (View Summary)

Properties

Properties

capture?: boolean
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventTarget.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventTarget.html new file mode 100644 index 000000000..c2d97cd5f --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.EventTarget.html @@ -0,0 +1,18 @@ +EventTarget | @wailsio/runtime

EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.

+

MDN Reference

+
interface EventTarget {
    addEventListener(
        type: string,
        callback: null | EventListenerOrEventListenerObject,
        options?: boolean | AddEventListenerOptions,
    ): void;
    dispatchEvent(event: Event): boolean;
    removeEventListener(
        type: string,
        callback: null | EventListenerOrEventListenerObject,
        options?: boolean | EventListenerOptions,
    ): void;
}

Hierarchy (View Summary)

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    +

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    +

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    +

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    +

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    +

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    +

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    +

    MDN Reference

    +

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    +

    MDN Reference

    +

    Parameters

    Returns boolean

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Iterable.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Iterable.html new file mode 100644 index 000000000..02cc4cf80 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Iterable.html @@ -0,0 +1,2 @@ +Iterable | @wailsio/runtime

Interface Iterable<T, TReturn, TNext>

interface Iterable<T, TReturn = any, TNext = any> {
    "[iterator]"(): Iterator<T, TReturn, TNext>;
}

Type Parameters

  • T
  • TReturn = any
  • TNext = any

Methods

Methods

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSource.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSource.html new file mode 100644 index 000000000..b277e5271 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSource.html @@ -0,0 +1,49 @@ +MediaSource | @wailsio/runtime

This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent.

+

MDN Reference

+
interface MediaSource {
    activeSourceBuffers: SourceBufferList;
    duration: number;
    onsourceclose: null | (this: MediaSource, ev: Event) => any;
    onsourceended: null | (this: MediaSource, ev: Event) => any;
    onsourceopen: null | (this: MediaSource, ev: Event) => any;
    readyState: ReadyState;
    sourceBuffers: SourceBufferList;
    addEventListener<K extends keyof MediaSourceEventMap>(
        type: K,
        listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any,
        options?: boolean | AddEventListenerOptions,
    ): void;
    addEventListener(
        type: string,
        listener: EventListenerOrEventListenerObject,
        options?: boolean | AddEventListenerOptions,
    ): void;
    addSourceBuffer(type: string): SourceBuffer;
    clearLiveSeekableRange(): void;
    dispatchEvent(event: Event): boolean;
    endOfStream(error?: EndOfStreamError): void;
    removeEventListener<K extends keyof MediaSourceEventMap>(
        type: K,
        listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any,
        options?: boolean | EventListenerOptions,
    ): void;
    removeEventListener(
        type: string,
        listener: EventListenerOrEventListenerObject,
        options?: boolean | EventListenerOptions,
    ): void;
    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
    setLiveSeekableRange(start: number, end: number): void;
}

Hierarchy (View Summary)

Properties

activeSourceBuffers: SourceBufferList
duration: number
onsourceclose: null | (this: MediaSource, ev: Event) => any
onsourceended: null | (this: MediaSource, ev: Event) => any
onsourceopen: null | (this: MediaSource, ev: Event) => any
readyState: ReadyState
sourceBuffers: SourceBufferList

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    +

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    +

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    +

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    +

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    +

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    +

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    +

    MDN Reference

    +

    Type Parameters

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    +

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    +

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    +

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    +

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    +

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    +

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    +

    MDN Reference

    +

    Parameters

    Returns void

  • Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    +

    MDN Reference

    +

    Parameters

    Returns boolean

  • Parameters

    • start: number
    • end: number

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSourceEventMap.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSourceEventMap.html new file mode 100644 index 000000000..ece981957 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.MediaSourceEventMap.html @@ -0,0 +1,4 @@ +MediaSourceEventMap | @wailsio/runtime
interface MediaSourceEventMap {
    sourceclose: Event;
    sourceended: Event;
    sourceopen: Event;
}

Properties

sourceclose: Event
sourceended: Event
sourceopen: Event
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Position.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Position.html new file mode 100644 index 000000000..9ca564221 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Position.html @@ -0,0 +1,6 @@ +Position | @wailsio/runtime

A record describing the position of a window.

+
interface Position {
    x: number;
    y: number;
}

Properties

x +y +

Properties

x: number

The horizontal position of the window.

+
y: number

The vertical position of the window.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseFulfilledResult.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseFulfilledResult.html new file mode 100644 index 000000000..0f1002ee8 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseFulfilledResult.html @@ -0,0 +1,3 @@ +PromiseFulfilledResult | @wailsio/runtime

Interface PromiseFulfilledResult<T>

interface PromiseFulfilledResult<T> {
    status: "fulfilled";
    value: T;
}

Type Parameters

  • T

Properties

Properties

status: "fulfilled"
value: T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseLike.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseLike.html new file mode 100644 index 000000000..4add9f58e --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseLike.html @@ -0,0 +1,6 @@ +PromiseLike | @wailsio/runtime
interface PromiseLike<T> {
    then<TResult1 = T, TResult2 = never>(
        onfulfilled?: null | (value: T) => TResult1 | PromiseLike<TResult1>,
        onrejected?: null | (reason: any) => TResult2 | PromiseLike<TResult2>,
    ): PromiseLike<TResult1 | TResult2>;
}

Type Parameters

  • T

Implemented by

Methods

Methods

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseRejectedResult.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseRejectedResult.html new file mode 100644 index 000000000..a364e257f --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseRejectedResult.html @@ -0,0 +1,3 @@ +PromiseRejectedResult | @wailsio/runtime
interface PromiseRejectedResult {
    reason: any;
    status: "rejected";
}

Properties

Properties

reason: any
status: "rejected"
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseWithResolvers.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseWithResolvers.html new file mode 100644 index 000000000..b942f497b --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.PromiseWithResolvers.html @@ -0,0 +1,4 @@ +PromiseWithResolvers | @wailsio/runtime

Interface PromiseWithResolvers<T>

interface PromiseWithResolvers<T> {
    promise: Promise<T>;
    reject: (reason?: any) => void;
    resolve: (value: T | PromiseLike<T>) => void;
}

Type Parameters

  • T

Properties

Properties

promise: Promise<T>
reject: (reason?: any) => void
resolve: (value: T | PromiseLike<T>) => void
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategy.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategy.html new file mode 100644 index 000000000..149c55d8c --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategy.html @@ -0,0 +1,3 @@ +QueuingStrategy | @wailsio/runtime

Interface QueuingStrategy<T>

interface QueuingStrategy<T = any> {
    highWaterMark?: number;
    size?: QueuingStrategySize<T>;
}

Type Parameters

  • T = any

Properties

Properties

highWaterMark?: number
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategySize.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategySize.html new file mode 100644 index 000000000..5f653c14e --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.QueuingStrategySize.html @@ -0,0 +1 @@ +QueuingStrategySize | @wailsio/runtime

Interface QueuingStrategySize<T>

Type Parameters

  • T = any
  • Parameters

    • chunk: T

    Returns number

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableByteStreamController.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableByteStreamController.html new file mode 100644 index 000000000..5dce85cc7 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableByteStreamController.html @@ -0,0 +1,12 @@ +ReadableByteStreamController | @wailsio/runtime

Interface ReadableByteStreamController

interface ReadableByteStreamController {
    byobRequest: null | ReadableStreamBYOBRequest;
    desiredSize: null | number;
    close(): void;
    enqueue(chunk: ArrayBufferView): void;
    error(e?: any): void;
}

Properties

Methods

Properties

byobRequest: null | ReadableStreamBYOBRequest
desiredSize: null | number

Methods

  • Returns void

  • Parameters

    • Optionale: any

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStream.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStream.html new file mode 100644 index 000000000..b7d1939f3 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStream.html @@ -0,0 +1,15 @@ +ReadableStream | @wailsio/runtime

Interface ReadableStream<R>

This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.

+

MDN Reference

+
interface ReadableStream<R = any> {
    locked: boolean;
    cancel(reason?: any): Promise<void>;
    getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
    getReader(): ReadableStreamDefaultReader<R>;
    getReader(
        options?: ReadableStreamGetReaderOptions,
    ): ReadableStreamReader<R>;
    pipeThrough<T>(
        transform: ReadableWritablePair<T, R>,
        options?: StreamPipeOptions,
    ): ReadableStream<T>;
    pipeTo(
        destination: WritableStream<R>,
        options?: StreamPipeOptions,
    ): Promise<void>;
    tee(): [ReadableStream<R>, ReadableStream<R>];
}

Type Parameters

  • R = any

Properties

Methods

Properties

locked: boolean

Methods

  • Parameters

    • Optionalreason: any

    Returns Promise<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBReader.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBReader.html new file mode 100644 index 000000000..75028ddd9 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBReader.html @@ -0,0 +1,10 @@ +ReadableStreamBYOBReader | @wailsio/runtime

Interface ReadableStreamBYOBReader

interface ReadableStreamBYOBReader {
    closed: Promise<undefined>;
    cancel(reason?: any): Promise<void>;
    read<T extends ArrayBufferView<ArrayBufferLike>>(
        view: T,
    ): Promise<ReadableStreamReadResult<T>>;
    releaseLock(): void;
}

Hierarchy (View Summary)

Properties

Methods

Properties

closed: Promise<undefined>

Methods

  • Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBRequest.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBRequest.html new file mode 100644 index 000000000..a0085f9a8 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamBYOBRequest.html @@ -0,0 +1,8 @@ +ReadableStreamBYOBRequest | @wailsio/runtime

Interface ReadableStreamBYOBRequest

interface ReadableStreamBYOBRequest {
    view: null | ArrayBufferView<ArrayBufferLike>;
    respond(bytesWritten: number): void;
    respondWithNewView(view: ArrayBufferView): void;
}

Properties

Methods

Properties

Methods

  • Parameters

    • bytesWritten: number

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultController.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultController.html new file mode 100644 index 000000000..0dc9a2850 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultController.html @@ -0,0 +1,10 @@ +ReadableStreamDefaultController | @wailsio/runtime

Interface ReadableStreamDefaultController<R>

interface ReadableStreamDefaultController<R = any> {
    desiredSize: null | number;
    close(): void;
    enqueue(chunk?: R): void;
    error(e?: any): void;
}

Type Parameters

  • R = any

Properties

Methods

Properties

desiredSize: null | number

Methods

  • Returns void

  • Parameters

    • Optionalchunk: R

    Returns void

  • Parameters

    • Optionale: any

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultReader.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultReader.html new file mode 100644 index 000000000..06db8c0bb --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamDefaultReader.html @@ -0,0 +1,10 @@ +ReadableStreamDefaultReader | @wailsio/runtime

Interface ReadableStreamDefaultReader<R>

interface ReadableStreamDefaultReader<R = any> {
    closed: Promise<undefined>;
    cancel(reason?: any): Promise<void>;
    read(): Promise<ReadableStreamReadResult<R>>;
    releaseLock(): void;
}

Type Parameters

  • R = any

Hierarchy (View Summary)

Properties

Methods

Properties

closed: Promise<undefined>

Methods

  • Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGenericReader.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGenericReader.html new file mode 100644 index 000000000..556ee2394 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGenericReader.html @@ -0,0 +1,5 @@ +ReadableStreamGenericReader | @wailsio/runtime

Interface ReadableStreamGenericReader

interface ReadableStreamGenericReader {
    closed: Promise<undefined>;
    cancel(reason?: any): Promise<void>;
}

Hierarchy (View Summary)

Properties

Methods

Properties

closed: Promise<undefined>

Methods

  • Parameters

    • Optionalreason: any

    Returns Promise<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGetReaderOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGetReaderOptions.html new file mode 100644 index 000000000..f71b8b580 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamGetReaderOptions.html @@ -0,0 +1,4 @@ +ReadableStreamGetReaderOptions | @wailsio/runtime

Interface ReadableStreamGetReaderOptions

interface ReadableStreamGetReaderOptions {
    mode?: "byob";
}

Properties

Properties

mode?: "byob"

Creates a ReadableStreamBYOBReader and locks the stream to the new reader.

+

This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadDoneResult.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadDoneResult.html new file mode 100644 index 000000000..d844ef013 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadDoneResult.html @@ -0,0 +1,3 @@ +ReadableStreamReadDoneResult | @wailsio/runtime

Interface ReadableStreamReadDoneResult<T>

interface ReadableStreamReadDoneResult<T> {
    done: true;
    value?: T;
}

Type Parameters

  • T

Properties

Properties

done: true
value?: T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadValueResult.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadValueResult.html new file mode 100644 index 000000000..a9b44ff4e --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableStreamReadValueResult.html @@ -0,0 +1,3 @@ +ReadableStreamReadValueResult | @wailsio/runtime

Interface ReadableStreamReadValueResult<T>

interface ReadableStreamReadValueResult<T> {
    done: false;
    value: T;
}

Type Parameters

  • T

Properties

Properties

done: false
value: T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableWritablePair.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableWritablePair.html new file mode 100644 index 000000000..33668f35b --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.ReadableWritablePair.html @@ -0,0 +1,5 @@ +ReadableWritablePair | @wailsio/runtime

Interface ReadableWritablePair<R, W>

interface ReadableWritablePair<R = any, W = any> {
    readable: ReadableStream<R>;
    writable: WritableStream<W>;
}

Type Parameters

  • R = any
  • W = any

Properties

Properties

readable: ReadableStream<R>
writable: WritableStream<W>

Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.

+

Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Size.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Size.html new file mode 100644 index 000000000..5b479462c --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.Size.html @@ -0,0 +1,6 @@ +Size | @wailsio/runtime

A record describing the size of a window.

+
interface Size {
    height: number;
    width: number;
}

Properties

Properties

height: number

The height of the window.

+
width: number

The width of the window.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBuffer.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBuffer.html new file mode 100644 index 000000000..97fa41789 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBuffer.html @@ -0,0 +1,53 @@ +SourceBuffer | @wailsio/runtime

A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments.

+

MDN Reference

+
interface SourceBuffer {
    appendWindowEnd: number;
    appendWindowStart: number;
    buffered: TimeRanges;
    mode: AppendMode;
    onabort: null | (this: SourceBuffer, ev: Event) => any;
    onerror: null | (this: SourceBuffer, ev: Event) => any;
    onupdate: null | (this: SourceBuffer, ev: Event) => any;
    onupdateend: null | (this: SourceBuffer, ev: Event) => any;
    onupdatestart: null | (this: SourceBuffer, ev: Event) => any;
    timestampOffset: number;
    updating: boolean;
    abort(): void;
    addEventListener<K extends keyof SourceBufferEventMap>(
        type: K,
        listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any,
        options?: boolean | AddEventListenerOptions,
    ): void;
    addEventListener(
        type: string,
        listener: EventListenerOrEventListenerObject,
        options?: boolean | AddEventListenerOptions,
    ): void;
    appendBuffer(data: BufferSource): void;
    changeType(type: string): void;
    dispatchEvent(event: Event): boolean;
    remove(start: number, end: number): void;
    removeEventListener<K extends keyof SourceBufferEventMap>(
        type: K,
        listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any,
        options?: boolean | EventListenerOptions,
    ): void;
    removeEventListener(
        type: string,
        listener: EventListenerOrEventListenerObject,
        options?: boolean | EventListenerOptions,
    ): void;
}

Hierarchy (View Summary)

Properties

appendWindowEnd: number
appendWindowStart: number
buffered: TimeRanges
onabort: null | (this: SourceBuffer, ev: Event) => any
onerror: null | (this: SourceBuffer, ev: Event) => any
onupdate: null | (this: SourceBuffer, ev: Event) => any
onupdateend: null | (this: SourceBuffer, ev: Event) => any
onupdatestart: null | (this: SourceBuffer, ev: Event) => any
timestampOffset: number
updating: boolean

Methods

  • Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    +

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    +

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    +

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    +

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    +

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    +

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    +

    MDN Reference

    +

    Type Parameters

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    +

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    +

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    +

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    +

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    +

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    +

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    +

    MDN Reference

    +

    Parameters

    Returns void

  • Parameters

    • type: string

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    +

    MDN Reference

    +

    Parameters

    Returns boolean

  • Parameters

    • start: number
    • end: number

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBufferEventMap.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBufferEventMap.html new file mode 100644 index 000000000..95e9fee8d --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.SourceBufferEventMap.html @@ -0,0 +1,6 @@ +SourceBufferEventMap | @wailsio/runtime
interface SourceBufferEventMap {
    abort: Event;
    error: Event;
    update: Event;
    updateend: Event;
    updatestart: Event;
}

Properties

abort: Event
error: Event
update: Event
updateend: Event
updatestart: Event
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.StreamPipeOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.StreamPipeOptions.html new file mode 100644 index 000000000..ec92b448b --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.StreamPipeOptions.html @@ -0,0 +1,13 @@ +StreamPipeOptions | @wailsio/runtime
interface StreamPipeOptions {
    preventAbort?: boolean;
    preventCancel?: boolean;
    preventClose?: boolean;
    signal?: AbortSignal;
}

Properties

preventAbort?: boolean
preventCancel?: boolean
preventClose?: boolean

Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.

+

Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.

+

Errors and closures of the source and destination streams propagate as follows:

+

An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.

+

An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.

+

When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.

+

If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.

+

The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.

+
signal?: AbortSignal
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.TimeRanges.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.TimeRanges.html new file mode 100644 index 000000000..f93dd4e77 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.TimeRanges.html @@ -0,0 +1,14 @@ +TimeRanges | @wailsio/runtime

Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the

+

MDN Reference

+
interface TimeRanges {
    length: number;
    end(index: number): number;
    start(index: number): number;
}

Properties

Methods

Properties

length: number

Returns the number of ranges in the object.

+

MDN Reference

+

Methods

  • Returns the time for the end of the range with the given index.

    +

    Throws an "IndexSizeError" DOMException if the index is out of range.

    +

    MDN Reference

    +

    Parameters

    • index: number

    Returns number

  • Returns the time for the start of the range with the given index.

    +

    Throws an "IndexSizeError" DOMException if the index is out of range.

    +

    MDN Reference

    +

    Parameters

    • index: number

    Returns number

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.URL.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.URL.html new file mode 100644 index 000000000..171f46a55 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.URL.html @@ -0,0 +1,30 @@ +URL | @wailsio/runtime

The URL interface represents an object providing static methods used for creating object URLs.

+

MDN Reference

+
interface URL {
    hash: string;
    host: string;
    hostname: string;
    href: string;
    origin: string;
    password: string;
    pathname: string;
    port: string;
    protocol: string;
    search: string;
    searchParams: URLSearchParams;
    username: string;
    toJSON(): string;
    toString(): string;
}

Properties

hash: string
host: string
hostname: string
href: string
origin: string
password: string
pathname: string
port: string
protocol: string
search: string
searchParams: URLSearchParams
username: string

Methods

  • Returns string

  • Returns string

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingByteSource.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingByteSource.html new file mode 100644 index 000000000..f4d07fbf6 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingByteSource.html @@ -0,0 +1,6 @@ +UnderlyingByteSource | @wailsio/runtime
interface UnderlyingByteSource {
    autoAllocateChunkSize?: number;
    cancel?: UnderlyingSourceCancelCallback;
    pull?: (
        controller: ReadableByteStreamController,
    ) => void | PromiseLike<void>;
    start?: (controller: ReadableByteStreamController) => any;
    type: "bytes";
}

Properties

autoAllocateChunkSize?: number
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>
start?: (controller: ReadableByteStreamController) => any
type: "bytes"
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingDefaultSource.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingDefaultSource.html new file mode 100644 index 000000000..d282894c4 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingDefaultSource.html @@ -0,0 +1,5 @@ +UnderlyingDefaultSource | @wailsio/runtime

Interface UnderlyingDefaultSource<R>

interface UnderlyingDefaultSource<R = any> {
    cancel?: UnderlyingSourceCancelCallback;
    pull?: (
        controller: ReadableStreamDefaultController<R>,
    ) => void | PromiseLike<void>;
    start?: (controller: ReadableStreamDefaultController<R>) => any;
    type?: undefined;
}

Type Parameters

  • R = any

Properties

Properties

pull?: (
    controller: ReadableStreamDefaultController<R>,
) => void | PromiseLike<void>
start?: (controller: ReadableStreamDefaultController<R>) => any
type?: undefined
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSink.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSink.html new file mode 100644 index 000000000..d6da3c8d4 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSink.html @@ -0,0 +1,6 @@ +UnderlyingSink | @wailsio/runtime

Interface UnderlyingSink<W>

interface UnderlyingSink<W = any> {
    abort?: UnderlyingSinkAbortCallback;
    close?: UnderlyingSinkCloseCallback;
    start?: UnderlyingSinkStartCallback;
    type?: undefined;
    write?: UnderlyingSinkWriteCallback<W>;
}

Type Parameters

  • W = any

Properties

Properties

type?: undefined
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkAbortCallback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkAbortCallback.html new file mode 100644 index 000000000..e45d9d445 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkAbortCallback.html @@ -0,0 +1 @@ +UnderlyingSinkAbortCallback | @wailsio/runtime

Interface UnderlyingSinkAbortCallback

  • Parameters

    • Optionalreason: any

    Returns void | PromiseLike<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkCloseCallback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkCloseCallback.html new file mode 100644 index 000000000..06c0a3608 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkCloseCallback.html @@ -0,0 +1 @@ +UnderlyingSinkCloseCallback | @wailsio/runtime

Interface UnderlyingSinkCloseCallback

  • Returns void | PromiseLike<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkStartCallback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkStartCallback.html new file mode 100644 index 000000000..b3fa49c5c --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkStartCallback.html @@ -0,0 +1 @@ +UnderlyingSinkStartCallback | @wailsio/runtime

Interface UnderlyingSinkStartCallback

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkWriteCallback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkWriteCallback.html new file mode 100644 index 000000000..81ad323e5 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSinkWriteCallback.html @@ -0,0 +1 @@ +UnderlyingSinkWriteCallback | @wailsio/runtime

Interface UnderlyingSinkWriteCallback<W>

Type Parameters

  • W
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSource.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSource.html new file mode 100644 index 000000000..c95e2903c --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSource.html @@ -0,0 +1,6 @@ +UnderlyingSource | @wailsio/runtime

Interface UnderlyingSource<R>

interface UnderlyingSource<R = any> {
    autoAllocateChunkSize?: number;
    cancel?: UnderlyingSourceCancelCallback;
    pull?: UnderlyingSourcePullCallback<R>;
    start?: UnderlyingSourceStartCallback<R>;
    type?: "bytes";
}

Type Parameters

  • R = any

Properties

autoAllocateChunkSize?: number
type?: "bytes"
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceCancelCallback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceCancelCallback.html new file mode 100644 index 000000000..978b039e9 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceCancelCallback.html @@ -0,0 +1 @@ +UnderlyingSourceCancelCallback | @wailsio/runtime

Interface UnderlyingSourceCancelCallback

  • Parameters

    • Optionalreason: any

    Returns void | PromiseLike<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourcePullCallback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourcePullCallback.html new file mode 100644 index 000000000..8779e3a64 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourcePullCallback.html @@ -0,0 +1 @@ +UnderlyingSourcePullCallback | @wailsio/runtime

Interface UnderlyingSourcePullCallback<R>

Type Parameters

  • R
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceStartCallback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceStartCallback.html new file mode 100644 index 000000000..acfdef628 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.UnderlyingSourceStartCallback.html @@ -0,0 +1 @@ +UnderlyingSourceStartCallback | @wailsio/runtime

Interface UnderlyingSourceStartCallback<R>

Type Parameters

  • R
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStream.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStream.html new file mode 100644 index 000000000..fcaeff279 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStream.html @@ -0,0 +1,11 @@ +WritableStream | @wailsio/runtime

Interface WritableStream<W>

This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.

+

MDN Reference

+
interface WritableStream<W = any> {
    locked: boolean;
    abort(reason?: any): Promise<void>;
    close(): Promise<void>;
    getWriter(): WritableStreamDefaultWriter<W>;
}

Type Parameters

  • W = any

Properties

Methods

Properties

locked: boolean

Methods

  • Parameters

    • Optionalreason: any

    Returns Promise<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultController.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultController.html new file mode 100644 index 000000000..c51cc6c16 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultController.html @@ -0,0 +1,7 @@ +WritableStreamDefaultController | @wailsio/runtime

Interface WritableStreamDefaultController

This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.

+

MDN Reference

+
interface WritableStreamDefaultController {
    signal: AbortSignal;
    error(e?: any): void;
}

Properties

Methods

Properties

signal: AbortSignal

Methods

  • Parameters

    • Optionale: any

    Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultWriter.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultWriter.html new file mode 100644 index 000000000..d0d4f5ed7 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/_internal_.WritableStreamDefaultWriter.html @@ -0,0 +1,17 @@ +WritableStreamDefaultWriter | @wailsio/runtime

Interface WritableStreamDefaultWriter<W>

This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.

+

MDN Reference

+
interface WritableStreamDefaultWriter<W = any> {
    closed: Promise<undefined>;
    desiredSize: null | number;
    ready: Promise<undefined>;
    abort(reason?: any): Promise<void>;
    close(): Promise<void>;
    releaseLock(): void;
    write(chunk?: W): Promise<void>;
}

Type Parameters

  • W = any

Properties

closed: Promise<undefined>
desiredSize: null | number
ready: Promise<undefined>

Methods

  • Parameters

    • Optionalreason: any

    Returns Promise<void>

  • Returns void

  • Parameters

    • Optionalchunk: W

    Returns Promise<void>

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules.html index 8f724e236..4248cf28d 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules.html @@ -1,14 +1 @@ -@wailsio/runtime

@wailsio/runtime

Index

Namespaces

Variables

Functions

Generated using TypeDoc

\ No newline at end of file +@wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Application.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Application.html index 774d89b63..e6b5d57c5 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Application.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Application.html @@ -1,4 +1 @@ -Application | @wailsio/runtime

Namespace Application

Index

Functions

Generated using TypeDoc

\ No newline at end of file +Application | @wailsio/runtime

Namespace Application

Functions

Hide
Quit
Show
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Browser.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Browser.html index 0145e67d0..757bf8469 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Browser.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Browser.html @@ -1,2 +1 @@ -Browser | @wailsio/runtime

Namespace Browser

Index

Functions

Generated using TypeDoc

\ No newline at end of file +Browser | @wailsio/runtime

Namespace Browser

Functions

OpenURL
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Call.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Call.html index 9ab08dc0d..8d06195ea 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Call.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Call.html @@ -1,6 +1 @@ -Call | @wailsio/runtime

Namespace Call

Index

Classes

Interfaces

Functions

Generated using TypeDoc

\ No newline at end of file +Call | @wailsio/runtime

Namespace Call

Classes

RuntimeError

Type Aliases

CallOptions

Functions

ByID
ByName
Call
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Clipboard.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Clipboard.html index 16f8524c6..1d15bfa14 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Clipboard.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Clipboard.html @@ -1,3 +1 @@ -Clipboard | @wailsio/runtime

Namespace Clipboard

Index

Functions

Generated using TypeDoc

\ No newline at end of file +Clipboard | @wailsio/runtime

Namespace Clipboard

Functions

SetText
Text
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Create.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Create.html deleted file mode 100644 index b04a1718b..000000000 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Create.html +++ /dev/null @@ -1,7 +0,0 @@ -Create | @wailsio/runtime

Namespace Create

Index

Functions

Generated using TypeDoc

\ No newline at end of file diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Dialogs.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Dialogs.html index 738840302..256f30a47 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Dialogs.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Dialogs.html @@ -1,12 +1 @@ -Dialogs | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +Dialogs | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Events.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Events.html index 664854f17..cd12fa65d 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Events.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Events.html @@ -1,10 +1 @@ -Events | @wailsio/runtime

Namespace Events

Index

Classes

Variables

Functions

Generated using TypeDoc

\ No newline at end of file +Events | @wailsio/runtime

Namespace Events

Classes

WailsEvent

Type Aliases

Callback

Variables

Types

Functions

Emit
Off
OffAll
On
Once
OnMultiple
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Flags.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Flags.html index a4421fba6..2004c8692 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Flags.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Flags.html @@ -1,2 +1 @@ -Flags | @wailsio/runtime

Namespace Flags

Index

Functions

Generated using TypeDoc

\ No newline at end of file +Flags | @wailsio/runtime

Namespace Flags

Functions

GetFlag
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Screens.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Screens.html index f38ad0a9c..f25eaabb3 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Screens.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/Screens.html @@ -1,7 +1 @@ -Screens | @wailsio/runtime

Namespace Screens

Index

Interfaces

Functions

Generated using TypeDoc

\ No newline at end of file +Screens | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/System.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/System.html index e76d409db..bc891a645 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/System.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/System.html @@ -1,14 +1 @@ -System | @wailsio/runtime

Generated using TypeDoc

\ No newline at end of file +System | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/WML.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/WML.html index 48865bdfb..e2d7d3912 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/WML.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/WML.html @@ -1,3 +1 @@ -WML | @wailsio/runtime

Namespace WML

Index

Functions

Generated using TypeDoc

\ No newline at end of file +WML | @wailsio/runtime

Namespace WML

Functions

Enable
Reload
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/_internal_.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/_internal_.html new file mode 100644 index 000000000..9707760fd --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/modules/_internal_.html @@ -0,0 +1 @@ +<internal> | @wailsio/runtime

Classes

Window

Interfaces

AddEventListenerOptions
ArrayBufferView
Blob
BlobPropertyBag
ErrorOptions
Event
EventInit
EventListener
EventListenerObject
EventListenerOptions
EventTarget
Iterable
MediaSource
MediaSourceEventMap
Position
PromiseFulfilledResult
PromiseLike
PromiseRejectedResult
PromiseWithResolvers
QueuingStrategy
QueuingStrategySize
ReadableByteStreamController
ReadableStream
ReadableStreamBYOBReader
ReadableStreamBYOBRequest
ReadableStreamDefaultController
ReadableStreamDefaultReader
ReadableStreamGenericReader
ReadableStreamGetReaderOptions
ReadableStreamReadDoneResult
ReadableStreamReadValueResult
ReadableWritablePair
Size
SourceBuffer
SourceBufferEventMap
StreamPipeOptions
TimeRanges
UnderlyingByteSource
UnderlyingDefaultSource
UnderlyingSink
UnderlyingSinkAbortCallback
UnderlyingSinkCloseCallback
UnderlyingSinkStartCallback
UnderlyingSinkWriteCallback
UnderlyingSource
UnderlyingSourceCancelCallback
UnderlyingSourcePullCallback
UnderlyingSourceStartCallback
URL
WritableStream
WritableStreamDefaultController
WritableStreamDefaultWriter

Type Aliases

AppendMode
ArrayBufferLike
Awaited
BlobPart
BufferSource
CancellablePromiseCanceller
CancellablePromiseExecutor
CancellablePromiseRejector
CancellablePromiseResolver
EndingType
EndOfStreamError
EventListenerOrEventListenerObject
Partial
PromiseSettledResult
ReadableStreamController
ReadableStreamReader
ReadableStreamReadResult
Readonly
ReadyState
Record

Variables

Blob
Event
EventTarget
MediaSource
ReadableByteStreamController
ReadableStream
ReadableStreamBYOBReader
ReadableStreamBYOBRequest
ReadableStreamDefaultController
ReadableStreamDefaultReader
SourceBuffer
TimeRanges
URL
WritableStream
WritableStreamDefaultController
WritableStreamDefaultWriter
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Call.CallOptions.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Call.CallOptions.html new file mode 100644 index 000000000..6a68da485 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Call.CallOptions.html @@ -0,0 +1,9 @@ +CallOptions | @wailsio/runtime

Type Alias CallOptions

CallOptions:
    | { args: any[]; methodID: number; methodName?: never }
    | { args: any[]; methodID?: never; methodName: string }

Holds all required information for a binding call. +May provide either a method ID or a method name, but not both.

+

Type declaration

  • { args: any[]; methodID: number; methodName?: never }
    • args: any[]

      Arguments to be passed into the bound method.

      +
    • methodID: number

      The numeric ID of the bound method to call.

      +
    • OptionalmethodName?: never

      The fully qualified name of the bound method to call.

      +
  • { args: any[]; methodID?: never; methodName: string }
    • args: any[]

      Arguments to be passed into the bound method.

      +
    • OptionalmethodID?: never

      The numeric ID of the bound method to call.

      +
    • methodName: string

      The fully qualified name of the bound method to call.

      +
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Events.Callback.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Events.Callback.html new file mode 100644 index 000000000..4a648b247 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/Events.Callback.html @@ -0,0 +1,2 @@ +Callback | @wailsio/runtime
Callback: (ev: WailsEvent) => void

The type of handlers for a given event.

+

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.AppendMode.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.AppendMode.html new file mode 100644 index 000000000..21279131a --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.AppendMode.html @@ -0,0 +1 @@ +AppendMode | @wailsio/runtime
AppendMode: "segments" | "sequence"
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ArrayBufferLike.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ArrayBufferLike.html new file mode 100644 index 000000000..27533a820 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ArrayBufferLike.html @@ -0,0 +1 @@ +ArrayBufferLike | @wailsio/runtime
ArrayBufferLike: ArrayBufferTypes[keyof ArrayBufferTypes]
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Awaited.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Awaited.html new file mode 100644 index 000000000..7d51c3785 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Awaited.html @@ -0,0 +1,2 @@ +Awaited | @wailsio/runtime
Awaited: T extends null
| undefined
    ? T
    : T extends object & { then(onfulfilled: F, ...args: _): any }
        ? F extends (value: infer V, ...args: infer _) => any
            ? Awaited<V>
            : never
        : T

Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to never. This emulates the behavior of await.

+

Type Parameters

  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BlobPart.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BlobPart.html new file mode 100644 index 000000000..116be5557 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BlobPart.html @@ -0,0 +1 @@ +BlobPart | @wailsio/runtime
BlobPart: BufferSource | Blob | string
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BufferSource.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BufferSource.html new file mode 100644 index 000000000..c4ad275f4 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.BufferSource.html @@ -0,0 +1 @@ +BufferSource | @wailsio/runtime
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseCanceller.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseCanceller.html new file mode 100644 index 000000000..5b7750405 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseCanceller.html @@ -0,0 +1 @@ +CancellablePromiseCanceller | @wailsio/runtime

Type Alias CancellablePromiseCanceller

CancellablePromiseCanceller: (cause?: any) => void | PromiseLike<void>

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseExecutor.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseExecutor.html new file mode 100644 index 000000000..f102891c1 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseExecutor.html @@ -0,0 +1 @@ +CancellablePromiseExecutor | @wailsio/runtime

Type Alias CancellablePromiseExecutor<T>

CancellablePromiseExecutor: (
    resolve: CancellablePromiseResolver<T>,
    reject: CancellablePromiseRejector,
) => void

Type Parameters

  • T

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseRejector.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseRejector.html new file mode 100644 index 000000000..92c3be544 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseRejector.html @@ -0,0 +1 @@ +CancellablePromiseRejector | @wailsio/runtime

Type Alias CancellablePromiseRejector

CancellablePromiseRejector: (reason?: any) => void

Type declaration

    • (reason?: any): void
    • Parameters

      • Optionalreason: any

      Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseResolver.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseResolver.html new file mode 100644 index 000000000..7bfde4a45 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.CancellablePromiseResolver.html @@ -0,0 +1 @@ +CancellablePromiseResolver | @wailsio/runtime

Type Alias CancellablePromiseResolver<T>

CancellablePromiseResolver: (
    value: T | PromiseLike<T> | CancellablePromiseLike<T>,
) => void

Type Parameters

  • T

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndOfStreamError.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndOfStreamError.html new file mode 100644 index 000000000..df2e1e6b6 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndOfStreamError.html @@ -0,0 +1 @@ +EndOfStreamError | @wailsio/runtime
EndOfStreamError: "decode" | "network"
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndingType.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndingType.html new file mode 100644 index 000000000..97b2a0bfe --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EndingType.html @@ -0,0 +1 @@ +EndingType | @wailsio/runtime
EndingType: "native" | "transparent"
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EventListenerOrEventListenerObject.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EventListenerOrEventListenerObject.html new file mode 100644 index 000000000..c0e2bfa6d --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.EventListenerOrEventListenerObject.html @@ -0,0 +1 @@ +EventListenerOrEventListenerObject | @wailsio/runtime

Type Alias EventListenerOrEventListenerObject

EventListenerOrEventListenerObject: EventListener | EventListenerObject
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Partial.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Partial.html new file mode 100644 index 000000000..c2c89e799 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Partial.html @@ -0,0 +1,2 @@ +Partial | @wailsio/runtime
Partial: { [P in keyof T]?: T[P] }

Make all properties in T optional

+

Type Parameters

  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.PromiseSettledResult.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.PromiseSettledResult.html new file mode 100644 index 000000000..c71a7894b --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.PromiseSettledResult.html @@ -0,0 +1 @@ +PromiseSettledResult | @wailsio/runtime

Type Alias PromiseSettledResult<T>

Type Parameters

  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamController.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamController.html new file mode 100644 index 000000000..03ff250f6 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamController.html @@ -0,0 +1 @@ +ReadableStreamController | @wailsio/runtime

Type Alias ReadableStreamController<T>

ReadableStreamController:
    | ReadableStreamDefaultController<T>
    | ReadableByteStreamController

Type Parameters

  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReadResult.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReadResult.html new file mode 100644 index 000000000..300a4a370 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReadResult.html @@ -0,0 +1 @@ +ReadableStreamReadResult | @wailsio/runtime

Type Alias ReadableStreamReadResult<T>

ReadableStreamReadResult:
    | ReadableStreamReadValueResult<T>
    | ReadableStreamReadDoneResult<T>

Type Parameters

  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReader.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReader.html new file mode 100644 index 000000000..a6eb2921a --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadableStreamReader.html @@ -0,0 +1 @@ +ReadableStreamReader | @wailsio/runtime

Type Alias ReadableStreamReader<T>

Type Parameters

  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Readonly.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Readonly.html new file mode 100644 index 000000000..3f66bd1ba --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Readonly.html @@ -0,0 +1,2 @@ +Readonly | @wailsio/runtime
Readonly: { readonly [P in keyof T]: T[P] }

Make all properties in T readonly

+

Type Parameters

  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadyState.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadyState.html new file mode 100644 index 000000000..cab35e873 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.ReadyState.html @@ -0,0 +1 @@ +ReadyState | @wailsio/runtime
ReadyState: "closed" | "ended" | "open"
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Record.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Record.html new file mode 100644 index 000000000..8930f14b9 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/types/_internal_.Record.html @@ -0,0 +1,2 @@ +Record | @wailsio/runtime

Type Alias Record<K, T>

Record: { [P in K]: T }

Construct a type with a set of properties K of type T

+

Type Parameters

  • K extends keyof any
  • T
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Events.Types.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Events.Types.html index b16f0175f..8637877ed 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Events.Types.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Events.Types.html @@ -1 +1 @@ -Types | @wailsio/runtime

Variable TypesConst

Types: {
    Common: {
        ApplicationOpenedWithFile: string;
        ApplicationStarted: string;
        ThemeChanged: string;
        WindowClosing: string;
        WindowDPIChanged: string;
        WindowDidMove: string;
        WindowDidResize: string;
        WindowFilesDropped: string;
        WindowFocus: string;
        WindowFullscreen: string;
        WindowHide: string;
        WindowLostFocus: string;
        WindowMaximise: string;
        WindowMinimise: string;
        WindowRestore: string;
        WindowRuntimeReady: string;
        WindowShow: string;
        WindowUnFullscreen: string;
        WindowUnMaximise: string;
        WindowUnMinimise: string;
        WindowZoom: string;
        WindowZoomIn: string;
        WindowZoomOut: string;
        WindowZoomReset: string;
    };
    Linux: {
        ApplicationStartup: string;
        SystemThemeChanged: string;
        WindowDeleteEvent: string;
        WindowDidMove: string;
        WindowDidResize: string;
        WindowFocusIn: string;
        WindowFocusOut: string;
        WindowLoadChanged: string;
    };
    Mac: {
        ApplicationDidBecomeActive: string;
        ApplicationDidChangeBackingProperties: string;
        ApplicationDidChangeEffectiveAppearance: string;
        ApplicationDidChangeIcon: string;
        ApplicationDidChangeOcclusionState: string;
        ApplicationDidChangeScreenParameters: string;
        ApplicationDidChangeStatusBarFrame: string;
        ApplicationDidChangeStatusBarOrientation: string;
        ApplicationDidChangeTheme: string;
        ApplicationDidFinishLaunching: string;
        ApplicationDidHide: string;
        ApplicationDidResignActive: string;
        ApplicationDidUnhide: string;
        ApplicationDidUpdate: string;
        ApplicationShouldHandleReopen: string;
        ApplicationWillBecomeActive: string;
        ApplicationWillFinishLaunching: string;
        ApplicationWillHide: string;
        ApplicationWillResignActive: string;
        ApplicationWillTerminate: string;
        ApplicationWillUnhide: string;
        ApplicationWillUpdate: string;
        MenuDidAddItem: string;
        MenuDidBeginTracking: string;
        MenuDidClose: string;
        MenuDidDisplayItem: string;
        MenuDidEndTracking: string;
        MenuDidHighlightItem: string;
        MenuDidOpen: string;
        MenuDidPopUp: string;
        MenuDidRemoveItem: string;
        MenuDidSendAction: string;
        MenuDidSendActionToItem: string;
        MenuDidUpdate: string;
        MenuWillAddItem: string;
        MenuWillBeginTracking: string;
        MenuWillDisplayItem: string;
        MenuWillEndTracking: string;
        MenuWillHighlightItem: string;
        MenuWillOpen: string;
        MenuWillPopUp: string;
        MenuWillRemoveItem: string;
        MenuWillSendAction: string;
        MenuWillSendActionToItem: string;
        MenuWillUpdate: string;
        WebViewDidCommitNavigation: string;
        WebViewDidFinishNavigation: string;
        WebViewDidReceiveServerRedirectForProvisionalNavigation: string;
        WebViewDidStartProvisionalNavigation: string;
        WindowDidBecomeKey: string;
        WindowDidBecomeMain: string;
        WindowDidBeginSheet: string;
        WindowDidChangeAlpha: string;
        WindowDidChangeBackingLocation: string;
        WindowDidChangeBackingProperties: string;
        WindowDidChangeCollectionBehavior: string;
        WindowDidChangeEffectiveAppearance: string;
        WindowDidChangeOcclusionState: string;
        WindowDidChangeOrderingMode: string;
        WindowDidChangeScreen: string;
        WindowDidChangeScreenParameters: string;
        WindowDidChangeScreenProfile: string;
        WindowDidChangeScreenSpace: string;
        WindowDidChangeScreenSpaceProperties: string;
        WindowDidChangeSharingType: string;
        WindowDidChangeSpace: string;
        WindowDidChangeSpaceOrderingMode: string;
        WindowDidChangeTitle: string;
        WindowDidChangeToolbar: string;
        WindowDidDeminiaturize: string;
        WindowDidEndSheet: string;
        WindowDidEnterFullScreen: string;
        WindowDidEnterVersionBrowser: string;
        WindowDidExitFullScreen: string;
        WindowDidExitVersionBrowser: string;
        WindowDidExpose: string;
        WindowDidFocus: string;
        WindowDidMiniaturize: string;
        WindowDidMove: string;
        WindowDidOrderOffScreen: string;
        WindowDidOrderOnScreen: string;
        WindowDidResignKey: string;
        WindowDidResignMain: string;
        WindowDidResize: string;
        WindowDidUpdate: string;
        WindowDidUpdateAlpha: string;
        WindowDidUpdateCollectionBehavior: string;
        WindowDidUpdateCollectionProperties: string;
        WindowDidUpdateShadow: string;
        WindowDidUpdateTitle: string;
        WindowDidUpdateToolbar: string;
        WindowDidZoom: string;
        WindowFileDraggingEntered: string;
        WindowFileDraggingExited: string;
        WindowFileDraggingPerformed: string;
        WindowHide: string;
        WindowMaximise: string;
        WindowMinimise: string;
        WindowShouldClose: string;
        WindowShow: string;
        WindowUnMaximise: string;
        WindowUnMinimise: string;
        WindowWillBecomeKey: string;
        WindowWillBecomeMain: string;
        WindowWillBeginSheet: string;
        WindowWillChangeOrderingMode: string;
        WindowWillClose: string;
        WindowWillDeminiaturize: string;
        WindowWillEnterFullScreen: string;
        WindowWillEnterVersionBrowser: string;
        WindowWillExitFullScreen: string;
        WindowWillExitVersionBrowser: string;
        WindowWillFocus: string;
        WindowWillMiniaturize: string;
        WindowWillMove: string;
        WindowWillOrderOffScreen: string;
        WindowWillOrderOnScreen: string;
        WindowWillResignMain: string;
        WindowWillResize: string;
        WindowWillUnfocus: string;
        WindowWillUpdate: string;
        WindowWillUpdateAlpha: string;
        WindowWillUpdateCollectionBehavior: string;
        WindowWillUpdateCollectionProperties: string;
        WindowWillUpdateShadow: string;
        WindowWillUpdateTitle: string;
        WindowWillUpdateToolbar: string;
        WindowWillUpdateVisibility: string;
        WindowWillUseStandardFrame: string;
        WindowZoomIn: string;
        WindowZoomOut: string;
        WindowZoomReset: string;
    };
    Windows: {
        APMPowerSettingChange: string;
        APMPowerStatusChange: string;
        APMResumeAutomatic: string;
        APMResumeSuspend: string;
        APMSuspend: string;
        ApplicationStarted: string;
        SystemThemeChanged: string;
        WebViewNavigationCompleted: string;
        WindowActive: string;
        WindowBackgroundErase: string;
        WindowClickActive: string;
        WindowClosing: string;
        WindowDPIChanged: string;
        WindowDidMove: string;
        WindowDidResize: string;
        WindowDragDrop: string;
        WindowDragEnter: string;
        WindowDragLeave: string;
        WindowDragOver: string;
        WindowEndMove: string;
        WindowEndResize: string;
        WindowFullscreen: string;
        WindowHide: string;
        WindowInactive: string;
        WindowKeyDown: string;
        WindowKeyUp: string;
        WindowKillFocus: string;
        WindowMaximise: string;
        WindowMinimise: string;
        WindowNonClientHit: string;
        WindowNonClientMouseDown: string;
        WindowNonClientMouseLeave: string;
        WindowNonClientMouseMove: string;
        WindowNonClientMouseUp: string;
        WindowPaint: string;
        WindowRestore: string;
        WindowSetFocus: string;
        WindowShow: string;
        WindowStartMove: string;
        WindowStartResize: string;
        WindowUnFullscreen: string;
        WindowUnMaximise: string;
        WindowUnMinimise: string;
        WindowZOrderChanged: string;
    };
} = EventTypes

Type declaration

  • Common: {
        ApplicationOpenedWithFile: string;
        ApplicationStarted: string;
        ThemeChanged: string;
        WindowClosing: string;
        WindowDPIChanged: string;
        WindowDidMove: string;
        WindowDidResize: string;
        WindowFilesDropped: string;
        WindowFocus: string;
        WindowFullscreen: string;
        WindowHide: string;
        WindowLostFocus: string;
        WindowMaximise: string;
        WindowMinimise: string;
        WindowRestore: string;
        WindowRuntimeReady: string;
        WindowShow: string;
        WindowUnFullscreen: string;
        WindowUnMaximise: string;
        WindowUnMinimise: string;
        WindowZoom: string;
        WindowZoomIn: string;
        WindowZoomOut: string;
        WindowZoomReset: string;
    }
    • ApplicationOpenedWithFile: string
    • ApplicationStarted: string
    • ThemeChanged: string
    • WindowClosing: string
    • WindowDPIChanged: string
    • WindowDidMove: string
    • WindowDidResize: string
    • WindowFilesDropped: string
    • WindowFocus: string
    • WindowFullscreen: string
    • WindowHide: string
    • WindowLostFocus: string
    • WindowMaximise: string
    • WindowMinimise: string
    • WindowRestore: string
    • WindowRuntimeReady: string
    • WindowShow: string
    • WindowUnFullscreen: string
    • WindowUnMaximise: string
    • WindowUnMinimise: string
    • WindowZoom: string
    • WindowZoomIn: string
    • WindowZoomOut: string
    • WindowZoomReset: string
  • Linux: {
        ApplicationStartup: string;
        SystemThemeChanged: string;
        WindowDeleteEvent: string;
        WindowDidMove: string;
        WindowDidResize: string;
        WindowFocusIn: string;
        WindowFocusOut: string;
        WindowLoadChanged: string;
    }
    • ApplicationStartup: string
    • SystemThemeChanged: string
    • WindowDeleteEvent: string
    • WindowDidMove: string
    • WindowDidResize: string
    • WindowFocusIn: string
    • WindowFocusOut: string
    • WindowLoadChanged: string
  • Mac: {
        ApplicationDidBecomeActive: string;
        ApplicationDidChangeBackingProperties: string;
        ApplicationDidChangeEffectiveAppearance: string;
        ApplicationDidChangeIcon: string;
        ApplicationDidChangeOcclusionState: string;
        ApplicationDidChangeScreenParameters: string;
        ApplicationDidChangeStatusBarFrame: string;
        ApplicationDidChangeStatusBarOrientation: string;
        ApplicationDidChangeTheme: string;
        ApplicationDidFinishLaunching: string;
        ApplicationDidHide: string;
        ApplicationDidResignActive: string;
        ApplicationDidUnhide: string;
        ApplicationDidUpdate: string;
        ApplicationShouldHandleReopen: string;
        ApplicationWillBecomeActive: string;
        ApplicationWillFinishLaunching: string;
        ApplicationWillHide: string;
        ApplicationWillResignActive: string;
        ApplicationWillTerminate: string;
        ApplicationWillUnhide: string;
        ApplicationWillUpdate: string;
        MenuDidAddItem: string;
        MenuDidBeginTracking: string;
        MenuDidClose: string;
        MenuDidDisplayItem: string;
        MenuDidEndTracking: string;
        MenuDidHighlightItem: string;
        MenuDidOpen: string;
        MenuDidPopUp: string;
        MenuDidRemoveItem: string;
        MenuDidSendAction: string;
        MenuDidSendActionToItem: string;
        MenuDidUpdate: string;
        MenuWillAddItem: string;
        MenuWillBeginTracking: string;
        MenuWillDisplayItem: string;
        MenuWillEndTracking: string;
        MenuWillHighlightItem: string;
        MenuWillOpen: string;
        MenuWillPopUp: string;
        MenuWillRemoveItem: string;
        MenuWillSendAction: string;
        MenuWillSendActionToItem: string;
        MenuWillUpdate: string;
        WebViewDidCommitNavigation: string;
        WebViewDidFinishNavigation: string;
        WebViewDidReceiveServerRedirectForProvisionalNavigation: string;
        WebViewDidStartProvisionalNavigation: string;
        WindowDidBecomeKey: string;
        WindowDidBecomeMain: string;
        WindowDidBeginSheet: string;
        WindowDidChangeAlpha: string;
        WindowDidChangeBackingLocation: string;
        WindowDidChangeBackingProperties: string;
        WindowDidChangeCollectionBehavior: string;
        WindowDidChangeEffectiveAppearance: string;
        WindowDidChangeOcclusionState: string;
        WindowDidChangeOrderingMode: string;
        WindowDidChangeScreen: string;
        WindowDidChangeScreenParameters: string;
        WindowDidChangeScreenProfile: string;
        WindowDidChangeScreenSpace: string;
        WindowDidChangeScreenSpaceProperties: string;
        WindowDidChangeSharingType: string;
        WindowDidChangeSpace: string;
        WindowDidChangeSpaceOrderingMode: string;
        WindowDidChangeTitle: string;
        WindowDidChangeToolbar: string;
        WindowDidDeminiaturize: string;
        WindowDidEndSheet: string;
        WindowDidEnterFullScreen: string;
        WindowDidEnterVersionBrowser: string;
        WindowDidExitFullScreen: string;
        WindowDidExitVersionBrowser: string;
        WindowDidExpose: string;
        WindowDidFocus: string;
        WindowDidMiniaturize: string;
        WindowDidMove: string;
        WindowDidOrderOffScreen: string;
        WindowDidOrderOnScreen: string;
        WindowDidResignKey: string;
        WindowDidResignMain: string;
        WindowDidResize: string;
        WindowDidUpdate: string;
        WindowDidUpdateAlpha: string;
        WindowDidUpdateCollectionBehavior: string;
        WindowDidUpdateCollectionProperties: string;
        WindowDidUpdateShadow: string;
        WindowDidUpdateTitle: string;
        WindowDidUpdateToolbar: string;
        WindowDidZoom: string;
        WindowFileDraggingEntered: string;
        WindowFileDraggingExited: string;
        WindowFileDraggingPerformed: string;
        WindowHide: string;
        WindowMaximise: string;
        WindowMinimise: string;
        WindowShouldClose: string;
        WindowShow: string;
        WindowUnMaximise: string;
        WindowUnMinimise: string;
        WindowWillBecomeKey: string;
        WindowWillBecomeMain: string;
        WindowWillBeginSheet: string;
        WindowWillChangeOrderingMode: string;
        WindowWillClose: string;
        WindowWillDeminiaturize: string;
        WindowWillEnterFullScreen: string;
        WindowWillEnterVersionBrowser: string;
        WindowWillExitFullScreen: string;
        WindowWillExitVersionBrowser: string;
        WindowWillFocus: string;
        WindowWillMiniaturize: string;
        WindowWillMove: string;
        WindowWillOrderOffScreen: string;
        WindowWillOrderOnScreen: string;
        WindowWillResignMain: string;
        WindowWillResize: string;
        WindowWillUnfocus: string;
        WindowWillUpdate: string;
        WindowWillUpdateAlpha: string;
        WindowWillUpdateCollectionBehavior: string;
        WindowWillUpdateCollectionProperties: string;
        WindowWillUpdateShadow: string;
        WindowWillUpdateTitle: string;
        WindowWillUpdateToolbar: string;
        WindowWillUpdateVisibility: string;
        WindowWillUseStandardFrame: string;
        WindowZoomIn: string;
        WindowZoomOut: string;
        WindowZoomReset: string;
    }
    • ApplicationDidBecomeActive: string
    • ApplicationDidChangeBackingProperties: string
    • ApplicationDidChangeEffectiveAppearance: string
    • ApplicationDidChangeIcon: string
    • ApplicationDidChangeOcclusionState: string
    • ApplicationDidChangeScreenParameters: string
    • ApplicationDidChangeStatusBarFrame: string
    • ApplicationDidChangeStatusBarOrientation: string
    • ApplicationDidChangeTheme: string
    • ApplicationDidFinishLaunching: string
    • ApplicationDidHide: string
    • ApplicationDidResignActive: string
    • ApplicationDidUnhide: string
    • ApplicationDidUpdate: string
    • ApplicationShouldHandleReopen: string
    • ApplicationWillBecomeActive: string
    • ApplicationWillFinishLaunching: string
    • ApplicationWillHide: string
    • ApplicationWillResignActive: string
    • ApplicationWillTerminate: string
    • ApplicationWillUnhide: string
    • ApplicationWillUpdate: string
    • MenuDidAddItem: string
    • MenuDidBeginTracking: string
    • MenuDidClose: string
    • MenuDidDisplayItem: string
    • MenuDidEndTracking: string
    • MenuDidHighlightItem: string
    • MenuDidOpen: string
    • MenuDidPopUp: string
    • MenuDidRemoveItem: string
    • MenuDidSendAction: string
    • MenuDidSendActionToItem: string
    • MenuDidUpdate: string
    • MenuWillAddItem: string
    • MenuWillBeginTracking: string
    • MenuWillDisplayItem: string
    • MenuWillEndTracking: string
    • MenuWillHighlightItem: string
    • MenuWillOpen: string
    • MenuWillPopUp: string
    • MenuWillRemoveItem: string
    • MenuWillSendAction: string
    • MenuWillSendActionToItem: string
    • MenuWillUpdate: string
    • WebViewDidCommitNavigation: string
    • WebViewDidFinishNavigation: string
    • WebViewDidReceiveServerRedirectForProvisionalNavigation: string
    • WebViewDidStartProvisionalNavigation: string
    • WindowDidBecomeKey: string
    • WindowDidBecomeMain: string
    • WindowDidBeginSheet: string
    • WindowDidChangeAlpha: string
    • WindowDidChangeBackingLocation: string
    • WindowDidChangeBackingProperties: string
    • WindowDidChangeCollectionBehavior: string
    • WindowDidChangeEffectiveAppearance: string
    • WindowDidChangeOcclusionState: string
    • WindowDidChangeOrderingMode: string
    • WindowDidChangeScreen: string
    • WindowDidChangeScreenParameters: string
    • WindowDidChangeScreenProfile: string
    • WindowDidChangeScreenSpace: string
    • WindowDidChangeScreenSpaceProperties: string
    • WindowDidChangeSharingType: string
    • WindowDidChangeSpace: string
    • WindowDidChangeSpaceOrderingMode: string
    • WindowDidChangeTitle: string
    • WindowDidChangeToolbar: string
    • WindowDidDeminiaturize: string
    • WindowDidEndSheet: string
    • WindowDidEnterFullScreen: string
    • WindowDidEnterVersionBrowser: string
    • WindowDidExitFullScreen: string
    • WindowDidExitVersionBrowser: string
    • WindowDidExpose: string
    • WindowDidFocus: string
    • WindowDidMiniaturize: string
    • WindowDidMove: string
    • WindowDidOrderOffScreen: string
    • WindowDidOrderOnScreen: string
    • WindowDidResignKey: string
    • WindowDidResignMain: string
    • WindowDidResize: string
    • WindowDidUpdate: string
    • WindowDidUpdateAlpha: string
    • WindowDidUpdateCollectionBehavior: string
    • WindowDidUpdateCollectionProperties: string
    • WindowDidUpdateShadow: string
    • WindowDidUpdateTitle: string
    • WindowDidUpdateToolbar: string
    • WindowDidZoom: string
    • WindowFileDraggingEntered: string
    • WindowFileDraggingExited: string
    • WindowFileDraggingPerformed: string
    • WindowHide: string
    • WindowMaximise: string
    • WindowMinimise: string
    • WindowShouldClose: string
    • WindowShow: string
    • WindowUnMaximise: string
    • WindowUnMinimise: string
    • WindowWillBecomeKey: string
    • WindowWillBecomeMain: string
    • WindowWillBeginSheet: string
    • WindowWillChangeOrderingMode: string
    • WindowWillClose: string
    • WindowWillDeminiaturize: string
    • WindowWillEnterFullScreen: string
    • WindowWillEnterVersionBrowser: string
    • WindowWillExitFullScreen: string
    • WindowWillExitVersionBrowser: string
    • WindowWillFocus: string
    • WindowWillMiniaturize: string
    • WindowWillMove: string
    • WindowWillOrderOffScreen: string
    • WindowWillOrderOnScreen: string
    • WindowWillResignMain: string
    • WindowWillResize: string
    • WindowWillUnfocus: string
    • WindowWillUpdate: string
    • WindowWillUpdateAlpha: string
    • WindowWillUpdateCollectionBehavior: string
    • WindowWillUpdateCollectionProperties: string
    • WindowWillUpdateShadow: string
    • WindowWillUpdateTitle: string
    • WindowWillUpdateToolbar: string
    • WindowWillUpdateVisibility: string
    • WindowWillUseStandardFrame: string
    • WindowZoomIn: string
    • WindowZoomOut: string
    • WindowZoomReset: string
  • Windows: {
        APMPowerSettingChange: string;
        APMPowerStatusChange: string;
        APMResumeAutomatic: string;
        APMResumeSuspend: string;
        APMSuspend: string;
        ApplicationStarted: string;
        SystemThemeChanged: string;
        WebViewNavigationCompleted: string;
        WindowActive: string;
        WindowBackgroundErase: string;
        WindowClickActive: string;
        WindowClosing: string;
        WindowDPIChanged: string;
        WindowDidMove: string;
        WindowDidResize: string;
        WindowDragDrop: string;
        WindowDragEnter: string;
        WindowDragLeave: string;
        WindowDragOver: string;
        WindowEndMove: string;
        WindowEndResize: string;
        WindowFullscreen: string;
        WindowHide: string;
        WindowInactive: string;
        WindowKeyDown: string;
        WindowKeyUp: string;
        WindowKillFocus: string;
        WindowMaximise: string;
        WindowMinimise: string;
        WindowNonClientHit: string;
        WindowNonClientMouseDown: string;
        WindowNonClientMouseLeave: string;
        WindowNonClientMouseMove: string;
        WindowNonClientMouseUp: string;
        WindowPaint: string;
        WindowRestore: string;
        WindowSetFocus: string;
        WindowShow: string;
        WindowStartMove: string;
        WindowStartResize: string;
        WindowUnFullscreen: string;
        WindowUnMaximise: string;
        WindowUnMinimise: string;
        WindowZOrderChanged: string;
    }
    • APMPowerSettingChange: string
    • APMPowerStatusChange: string
    • APMResumeAutomatic: string
    • APMResumeSuspend: string
    • APMSuspend: string
    • ApplicationStarted: string
    • SystemThemeChanged: string
    • WebViewNavigationCompleted: string
    • WindowActive: string
    • WindowBackgroundErase: string
    • WindowClickActive: string
    • WindowClosing: string
    • WindowDPIChanged: string
    • WindowDidMove: string
    • WindowDidResize: string
    • WindowDragDrop: string
    • WindowDragEnter: string
    • WindowDragLeave: string
    • WindowDragOver: string
    • WindowEndMove: string
    • WindowEndResize: string
    • WindowFullscreen: string
    • WindowHide: string
    • WindowInactive: string
    • WindowKeyDown: string
    • WindowKeyUp: string
    • WindowKillFocus: string
    • WindowMaximise: string
    • WindowMinimise: string
    • WindowNonClientHit: string
    • WindowNonClientMouseDown: string
    • WindowNonClientMouseLeave: string
    • WindowNonClientMouseMove: string
    • WindowNonClientMouseUp: string
    • WindowPaint: string
    • WindowRestore: string
    • WindowSetFocus: string
    • WindowShow: string
    • WindowStartMove: string
    • WindowStartResize: string
    • WindowUnFullscreen: string
    • WindowUnMaximise: string
    • WindowUnMinimise: string
    • WindowZOrderChanged: string

Generated using TypeDoc

\ No newline at end of file +Types | @wailsio/runtime

Variable TypesConst

Types: Readonly<
    {
        Common: Readonly<
            {
                ApplicationOpenedWithFile: "common:ApplicationOpenedWithFile";
                ApplicationStarted: "common:ApplicationStarted";
                ThemeChanged: "common:ThemeChanged";
                WindowClosing: "common:WindowClosing";
                WindowDidMove: "common:WindowDidMove";
                WindowDidResize: "common:WindowDidResize";
                WindowDPIChanged: "common:WindowDPIChanged";
                WindowFilesDropped: "common:WindowFilesDropped";
                WindowFocus: "common:WindowFocus";
                WindowFullscreen: "common:WindowFullscreen";
                WindowHide: "common:WindowHide";
                WindowLostFocus: "common:WindowLostFocus";
                WindowMaximise: "common:WindowMaximise";
                WindowMinimise: "common:WindowMinimise";
                WindowRestore: "common:WindowRestore";
                WindowRuntimeReady: "common:WindowRuntimeReady";
                WindowShow: "common:WindowShow";
                WindowUnFullscreen: "common:WindowUnFullscreen";
                WindowUnMaximise: "common:WindowUnMaximise";
                WindowUnMinimise: "common:WindowUnMinimise";
                WindowZoom: "common:WindowZoom";
                WindowZoomIn: "common:WindowZoomIn";
                WindowZoomOut: "common:WindowZoomOut";
                WindowZoomReset: "common:WindowZoomReset";
            },
        >;
        Linux: Readonly<
            {
                ApplicationStartup: "linux:ApplicationStartup";
                SystemThemeChanged: "linux:SystemThemeChanged";
                WindowDeleteEvent: "linux:WindowDeleteEvent";
                WindowDidMove: "linux:WindowDidMove";
                WindowDidResize: "linux:WindowDidResize";
                WindowFocusIn: "linux:WindowFocusIn";
                WindowFocusOut: "linux:WindowFocusOut";
                WindowLoadChanged: "linux:WindowLoadChanged";
            },
        >;
        Mac: Readonly<
            {
                ApplicationDidBecomeActive: "mac:ApplicationDidBecomeActive";
                ApplicationDidChangeBackingProperties: "mac:ApplicationDidChangeBackingProperties";
                ApplicationDidChangeEffectiveAppearance: "mac:ApplicationDidChangeEffectiveAppearance";
                ApplicationDidChangeIcon: "mac:ApplicationDidChangeIcon";
                ApplicationDidChangeOcclusionState: "mac:ApplicationDidChangeOcclusionState";
                ApplicationDidChangeScreenParameters: "mac:ApplicationDidChangeScreenParameters";
                ApplicationDidChangeStatusBarFrame: "mac:ApplicationDidChangeStatusBarFrame";
                ApplicationDidChangeStatusBarOrientation: "mac:ApplicationDidChangeStatusBarOrientation";
                ApplicationDidChangeTheme: "mac:ApplicationDidChangeTheme";
                ApplicationDidFinishLaunching: "mac:ApplicationDidFinishLaunching";
                ApplicationDidHide: "mac:ApplicationDidHide";
                ApplicationDidResignActive: "mac:ApplicationDidResignActive";
                ApplicationDidUnhide: "mac:ApplicationDidUnhide";
                ApplicationDidUpdate: "mac:ApplicationDidUpdate";
                ApplicationShouldHandleReopen: "mac:ApplicationShouldHandleReopen";
                ApplicationWillBecomeActive: "mac:ApplicationWillBecomeActive";
                ApplicationWillFinishLaunching: "mac:ApplicationWillFinishLaunching";
                ApplicationWillHide: "mac:ApplicationWillHide";
                ApplicationWillResignActive: "mac:ApplicationWillResignActive";
                ApplicationWillTerminate: "mac:ApplicationWillTerminate";
                ApplicationWillUnhide: "mac:ApplicationWillUnhide";
                ApplicationWillUpdate: "mac:ApplicationWillUpdate";
                MenuDidAddItem: "mac:MenuDidAddItem";
                MenuDidBeginTracking: "mac:MenuDidBeginTracking";
                MenuDidClose: "mac:MenuDidClose";
                MenuDidDisplayItem: "mac:MenuDidDisplayItem";
                MenuDidEndTracking: "mac:MenuDidEndTracking";
                MenuDidHighlightItem: "mac:MenuDidHighlightItem";
                MenuDidOpen: "mac:MenuDidOpen";
                MenuDidPopUp: "mac:MenuDidPopUp";
                MenuDidRemoveItem: "mac:MenuDidRemoveItem";
                MenuDidSendAction: "mac:MenuDidSendAction";
                MenuDidSendActionToItem: "mac:MenuDidSendActionToItem";
                MenuDidUpdate: "mac:MenuDidUpdate";
                MenuWillAddItem: "mac:MenuWillAddItem";
                MenuWillBeginTracking: "mac:MenuWillBeginTracking";
                MenuWillDisplayItem: "mac:MenuWillDisplayItem";
                MenuWillEndTracking: "mac:MenuWillEndTracking";
                MenuWillHighlightItem: "mac:MenuWillHighlightItem";
                MenuWillOpen: "mac:MenuWillOpen";
                MenuWillPopUp: "mac:MenuWillPopUp";
                MenuWillRemoveItem: "mac:MenuWillRemoveItem";
                MenuWillSendAction: "mac:MenuWillSendAction";
                MenuWillSendActionToItem: "mac:MenuWillSendActionToItem";
                MenuWillUpdate: "mac:MenuWillUpdate";
                WebViewDidCommitNavigation: "mac:WebViewDidCommitNavigation";
                WebViewDidFinishNavigation: "mac:WebViewDidFinishNavigation";
                WebViewDidReceiveServerRedirectForProvisionalNavigation: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation";
                WebViewDidStartProvisionalNavigation: "mac:WebViewDidStartProvisionalNavigation";
                WindowDidBecomeKey: "mac:WindowDidBecomeKey";
                WindowDidBecomeMain: "mac:WindowDidBecomeMain";
                WindowDidBeginSheet: "mac:WindowDidBeginSheet";
                WindowDidChangeAlpha: "mac:WindowDidChangeAlpha";
                WindowDidChangeBackingLocation: "mac:WindowDidChangeBackingLocation";
                WindowDidChangeBackingProperties: "mac:WindowDidChangeBackingProperties";
                WindowDidChangeCollectionBehavior: "mac:WindowDidChangeCollectionBehavior";
                WindowDidChangeEffectiveAppearance: "mac:WindowDidChangeEffectiveAppearance";
                WindowDidChangeOcclusionState: "mac:WindowDidChangeOcclusionState";
                WindowDidChangeOrderingMode: "mac:WindowDidChangeOrderingMode";
                WindowDidChangeScreen: "mac:WindowDidChangeScreen";
                WindowDidChangeScreenParameters: "mac:WindowDidChangeScreenParameters";
                WindowDidChangeScreenProfile: "mac:WindowDidChangeScreenProfile";
                WindowDidChangeScreenSpace: "mac:WindowDidChangeScreenSpace";
                WindowDidChangeScreenSpaceProperties: "mac:WindowDidChangeScreenSpaceProperties";
                WindowDidChangeSharingType: "mac:WindowDidChangeSharingType";
                WindowDidChangeSpace: "mac:WindowDidChangeSpace";
                WindowDidChangeSpaceOrderingMode: "mac:WindowDidChangeSpaceOrderingMode";
                WindowDidChangeTitle: "mac:WindowDidChangeTitle";
                WindowDidChangeToolbar: "mac:WindowDidChangeToolbar";
                WindowDidDeminiaturize: "mac:WindowDidDeminiaturize";
                WindowDidEndSheet: "mac:WindowDidEndSheet";
                WindowDidEnterFullScreen: "mac:WindowDidEnterFullScreen";
                WindowDidEnterVersionBrowser: "mac:WindowDidEnterVersionBrowser";
                WindowDidExitFullScreen: "mac:WindowDidExitFullScreen";
                WindowDidExitVersionBrowser: "mac:WindowDidExitVersionBrowser";
                WindowDidExpose: "mac:WindowDidExpose";
                WindowDidFocus: "mac:WindowDidFocus";
                WindowDidMiniaturize: "mac:WindowDidMiniaturize";
                WindowDidMove: "mac:WindowDidMove";
                WindowDidOrderOffScreen: "mac:WindowDidOrderOffScreen";
                WindowDidOrderOnScreen: "mac:WindowDidOrderOnScreen";
                WindowDidResignKey: "mac:WindowDidResignKey";
                WindowDidResignMain: "mac:WindowDidResignMain";
                WindowDidResize: "mac:WindowDidResize";
                WindowDidUpdate: "mac:WindowDidUpdate";
                WindowDidUpdateAlpha: "mac:WindowDidUpdateAlpha";
                WindowDidUpdateCollectionBehavior: "mac:WindowDidUpdateCollectionBehavior";
                WindowDidUpdateCollectionProperties: "mac:WindowDidUpdateCollectionProperties";
                WindowDidUpdateShadow: "mac:WindowDidUpdateShadow";
                WindowDidUpdateTitle: "mac:WindowDidUpdateTitle";
                WindowDidUpdateToolbar: "mac:WindowDidUpdateToolbar";
                WindowDidZoom: "mac:WindowDidZoom";
                WindowFileDraggingEntered: "mac:WindowFileDraggingEntered";
                WindowFileDraggingExited: "mac:WindowFileDraggingExited";
                WindowFileDraggingPerformed: "mac:WindowFileDraggingPerformed";
                WindowHide: "mac:WindowHide";
                WindowMaximise: "mac:WindowMaximise";
                WindowMinimise: "mac:WindowMinimise";
                WindowShouldClose: "mac:WindowShouldClose";
                WindowShow: "mac:WindowShow";
                WindowUnMaximise: "mac:WindowUnMaximise";
                WindowUnMinimise: "mac:WindowUnMinimise";
                WindowWillBecomeKey: "mac:WindowWillBecomeKey";
                WindowWillBecomeMain: "mac:WindowWillBecomeMain";
                WindowWillBeginSheet: "mac:WindowWillBeginSheet";
                WindowWillChangeOrderingMode: "mac:WindowWillChangeOrderingMode";
                WindowWillClose: "mac:WindowWillClose";
                WindowWillDeminiaturize: "mac:WindowWillDeminiaturize";
                WindowWillEnterFullScreen: "mac:WindowWillEnterFullScreen";
                WindowWillEnterVersionBrowser: "mac:WindowWillEnterVersionBrowser";
                WindowWillExitFullScreen: "mac:WindowWillExitFullScreen";
                WindowWillExitVersionBrowser: "mac:WindowWillExitVersionBrowser";
                WindowWillFocus: "mac:WindowWillFocus";
                WindowWillMiniaturize: "mac:WindowWillMiniaturize";
                WindowWillMove: "mac:WindowWillMove";
                WindowWillOrderOffScreen: "mac:WindowWillOrderOffScreen";
                WindowWillOrderOnScreen: "mac:WindowWillOrderOnScreen";
                WindowWillResignMain: "mac:WindowWillResignMain";
                WindowWillResize: "mac:WindowWillResize";
                WindowWillUnfocus: "mac:WindowWillUnfocus";
                WindowWillUpdate: "mac:WindowWillUpdate";
                WindowWillUpdateAlpha: "mac:WindowWillUpdateAlpha";
                WindowWillUpdateCollectionBehavior: "mac:WindowWillUpdateCollectionBehavior";
                WindowWillUpdateCollectionProperties: "mac:WindowWillUpdateCollectionProperties";
                WindowWillUpdateShadow: "mac:WindowWillUpdateShadow";
                WindowWillUpdateTitle: "mac:WindowWillUpdateTitle";
                WindowWillUpdateToolbar: "mac:WindowWillUpdateToolbar";
                WindowWillUpdateVisibility: "mac:WindowWillUpdateVisibility";
                WindowWillUseStandardFrame: "mac:WindowWillUseStandardFrame";
                WindowZoomIn: "mac:WindowZoomIn";
                WindowZoomOut: "mac:WindowZoomOut";
                WindowZoomReset: "mac:WindowZoomReset";
            },
        >;
        Windows: Readonly<
            {
                APMPowerSettingChange: "windows:APMPowerSettingChange";
                APMPowerStatusChange: "windows:APMPowerStatusChange";
                APMResumeAutomatic: "windows:APMResumeAutomatic";
                APMResumeSuspend: "windows:APMResumeSuspend";
                APMSuspend: "windows:APMSuspend";
                ApplicationStarted: "windows:ApplicationStarted";
                SystemThemeChanged: "windows:SystemThemeChanged";
                WebViewNavigationCompleted: "windows:WebViewNavigationCompleted";
                WindowActive: "windows:WindowActive";
                WindowBackgroundErase: "windows:WindowBackgroundErase";
                WindowClickActive: "windows:WindowClickActive";
                WindowClosing: "windows:WindowClosing";
                WindowDidMove: "windows:WindowDidMove";
                WindowDidResize: "windows:WindowDidResize";
                WindowDPIChanged: "windows:WindowDPIChanged";
                WindowDragDrop: "windows:WindowDragDrop";
                WindowDragEnter: "windows:WindowDragEnter";
                WindowDragLeave: "windows:WindowDragLeave";
                WindowDragOver: "windows:WindowDragOver";
                WindowEndMove: "windows:WindowEndMove";
                WindowEndResize: "windows:WindowEndResize";
                WindowFullscreen: "windows:WindowFullscreen";
                WindowHide: "windows:WindowHide";
                WindowInactive: "windows:WindowInactive";
                WindowKeyDown: "windows:WindowKeyDown";
                WindowKeyUp: "windows:WindowKeyUp";
                WindowKillFocus: "windows:WindowKillFocus";
                WindowMaximise: "windows:WindowMaximise";
                WindowMinimise: "windows:WindowMinimise";
                WindowNonClientHit: "windows:WindowNonClientHit";
                WindowNonClientMouseDown: "windows:WindowNonClientMouseDown";
                WindowNonClientMouseLeave: "windows:WindowNonClientMouseLeave";
                WindowNonClientMouseMove: "windows:WindowNonClientMouseMove";
                WindowNonClientMouseUp: "windows:WindowNonClientMouseUp";
                WindowPaint: "windows:WindowPaint";
                WindowRestore: "windows:WindowRestore";
                WindowSetFocus: "windows:WindowSetFocus";
                WindowShow: "windows:WindowShow";
                WindowStartMove: "windows:WindowStartMove";
                WindowStartResize: "windows:WindowStartResize";
                WindowUnFullscreen: "windows:WindowUnFullscreen";
                WindowUnMaximise: "windows:WindowUnMaximise";
                WindowUnMinimise: "windows:WindowUnMinimise";
                WindowZOrderChanged: "windows:WindowZOrderChanged";
            },
        >;
    },
> = ...
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Window.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Window.html index 37e94be24..8ac8b45fe 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Window.html +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/Window.html @@ -1,2 +1,2 @@ -Window | @wailsio/runtime

Variable WindowConst

Window: Window = ...

The window within which the script is running.

-

Generated using TypeDoc

\ No newline at end of file +Window | @wailsio/runtime

Variable WindowConst

Window: Window = ...

The window within which the script is running.

+
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Blob-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Blob-1.html new file mode 100644 index 000000000..7a6dca0a7 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Blob-1.html @@ -0,0 +1 @@ +Blob | @wailsio/runtime
Blob: {
    prototype: Blob;
    new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
}

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Event-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Event-1.html new file mode 100644 index 000000000..10a91c579 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.Event-1.html @@ -0,0 +1 @@ +Event | @wailsio/runtime
Event: {
    AT_TARGET: 2;
    BUBBLING_PHASE: 3;
    CAPTURING_PHASE: 1;
    NONE: 0;
    prototype: Event;
    new (type: string, eventInitDict?: EventInit): Event;
}

Type declaration

  • ReadonlyAT_TARGET: 2
  • ReadonlyBUBBLING_PHASE: 3
  • ReadonlyCAPTURING_PHASE: 1
  • ReadonlyNONE: 0
  • prototype: Event
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.EventTarget-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.EventTarget-1.html new file mode 100644 index 000000000..b260ea11e --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.EventTarget-1.html @@ -0,0 +1 @@ +EventTarget | @wailsio/runtime
EventTarget: { prototype: EventTarget; new (): EventTarget }

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.MediaSource-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.MediaSource-1.html new file mode 100644 index 000000000..ff20149ac --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.MediaSource-1.html @@ -0,0 +1,3 @@ +MediaSource | @wailsio/runtime
MediaSource: {
    canConstructInDedicatedWorker: boolean;
    prototype: MediaSource;
    isTypeSupported(type: string): boolean;
    new (): MediaSource;
}

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableByteStreamController-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableByteStreamController-1.html new file mode 100644 index 000000000..03abf22d0 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableByteStreamController-1.html @@ -0,0 +1 @@ +ReadableByteStreamController | @wailsio/runtime

Variable ReadableByteStreamController

ReadableByteStreamController: {
    prototype: ReadableByteStreamController;
    new (): ReadableByteStreamController;
}
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStream-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStream-1.html new file mode 100644 index 000000000..ff895225a --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStream-1.html @@ -0,0 +1 @@ +ReadableStream | @wailsio/runtime
ReadableStream: {
    prototype: ReadableStream;
    new (
        underlyingSource: UnderlyingByteSource,
        strategy?: { highWaterMark?: number },
    ): ReadableStream<Uint8Array<ArrayBufferLike>>;
    new <R = any>(
        underlyingSource: UnderlyingDefaultSource<R>,
        strategy?: QueuingStrategy<R>,
    ): ReadableStream<R>;
    new <R = any>(
        underlyingSource?: UnderlyingSource<R>,
        strategy?: QueuingStrategy<R>,
    ): ReadableStream<R>;
}

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBReader-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBReader-1.html new file mode 100644 index 000000000..97d078bc2 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBReader-1.html @@ -0,0 +1 @@ +ReadableStreamBYOBReader | @wailsio/runtime
ReadableStreamBYOBReader: {
    prototype: ReadableStreamBYOBReader;
    new (
        stream: ReadableStream<Uint8Array<ArrayBufferLike>>,
    ): ReadableStreamBYOBReader;
}
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBRequest-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBRequest-1.html new file mode 100644 index 000000000..bcda606c6 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamBYOBRequest-1.html @@ -0,0 +1 @@ +ReadableStreamBYOBRequest | @wailsio/runtime

Variable ReadableStreamBYOBRequest

ReadableStreamBYOBRequest: {
    prototype: ReadableStreamBYOBRequest;
    new (): ReadableStreamBYOBRequest;
}
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultController-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultController-1.html new file mode 100644 index 000000000..b96ea63f8 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultController-1.html @@ -0,0 +1 @@ +ReadableStreamDefaultController | @wailsio/runtime

Variable ReadableStreamDefaultController

ReadableStreamDefaultController: {
    prototype: ReadableStreamDefaultController;
    new (): ReadableStreamDefaultController;
}
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultReader-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultReader-1.html new file mode 100644 index 000000000..a7d746f8d --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.ReadableStreamDefaultReader-1.html @@ -0,0 +1 @@ +ReadableStreamDefaultReader | @wailsio/runtime

Variable ReadableStreamDefaultReader

ReadableStreamDefaultReader: {
    prototype: ReadableStreamDefaultReader;
    new <R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
}

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.SourceBuffer-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.SourceBuffer-1.html new file mode 100644 index 000000000..ca7e84af9 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.SourceBuffer-1.html @@ -0,0 +1 @@ +SourceBuffer | @wailsio/runtime
SourceBuffer: { prototype: SourceBuffer; new (): SourceBuffer }

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.TimeRanges-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.TimeRanges-1.html new file mode 100644 index 000000000..9d9e6fa1b --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.TimeRanges-1.html @@ -0,0 +1 @@ +TimeRanges | @wailsio/runtime
TimeRanges: { prototype: TimeRanges; new (): TimeRanges }

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.URL-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.URL-1.html new file mode 100644 index 000000000..a0f9adf7d --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.URL-1.html @@ -0,0 +1,5 @@ +URL | @wailsio/runtime
URL: {
    prototype: URL;
    canParse(url: string | URL, base?: string | URL): boolean;
    createObjectURL(obj: Blob | MediaSource): string;
    parse(url: string | URL, base?: string | URL): null | URL;
    revokeObjectURL(url: string): void;
    new (url: string | URL, base?: string | URL): URL;
}

Type declaration

    • new (url: string | URL, base?: string | URL): URL
    • Parameters

      • url: string | URL
      • Optionalbase: string | URL

      Returns URL

  • prototype: URL
  • canParse:function
    • Parameters

      • url: string | URL
      • Optionalbase: string | URL

      Returns boolean

  • createObjectURL:function
  • parse:function
    • Parameters

      • url: string | URL
      • Optionalbase: string | URL

      Returns null | URL

  • revokeObjectURL:function
    • Parameters

      • url: string

      Returns void

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStream-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStream-1.html new file mode 100644 index 000000000..e31a06f97 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStream-1.html @@ -0,0 +1 @@ +WritableStream | @wailsio/runtime
WritableStream: {
    prototype: WritableStream;
    new <W = any>(
        underlyingSink?: UnderlyingSink<W>,
        strategy?: QueuingStrategy<W>,
    ): WritableStream<W>;
}

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultController-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultController-1.html new file mode 100644 index 000000000..98ec3ec27 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultController-1.html @@ -0,0 +1 @@ +WritableStreamDefaultController | @wailsio/runtime

Variable WritableStreamDefaultController

WritableStreamDefaultController: {
    prototype: WritableStreamDefaultController;
    new (): WritableStreamDefaultController;
}
diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultWriter-1.html b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultWriter-1.html new file mode 100644 index 000000000..286db85ef --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/docs/variables/_internal_.WritableStreamDefaultWriter-1.html @@ -0,0 +1 @@ +WritableStreamDefaultWriter | @wailsio/runtime

Variable WritableStreamDefaultWriter

WritableStreamDefaultWriter: {
    prototype: WritableStreamDefaultWriter;
    new <W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
}

Type declaration

diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/package-lock.json b/v3/internal/runtime/desktop/@wailsio/runtime/package-lock.json index b508f7dce..91cee4fe9 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/package-lock.json +++ b/v3/internal/runtime/desktop/@wailsio/runtime/package-lock.json @@ -1,12 +1,12 @@ { "name": "@wailsio/runtime", - "version": "3.0.0-alpha.65", + "version": "3.0.0-alpha.66", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@wailsio/runtime", - "version": "3.0.0-alpha.65", + "version": "3.0.0-alpha.66", "license": "MIT", "devDependencies": { "happy-dom": "^17.1.1", diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/package.json b/v3/internal/runtime/desktop/@wailsio/runtime/package.json index 915ddaf18..495abe27b 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/package.json +++ b/v3/internal/runtime/desktop/@wailsio/runtime/package.json @@ -1,7 +1,7 @@ { "name": "@wailsio/runtime", "type": "module", - "version": "3.0.0-alpha.65", + "version": "3.0.0-alpha.66", "description": "Wails Runtime", "types": "types/index.d.ts", "exports": { diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/application.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/application.d.ts index 5794550c0..bfab64a85 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/application.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/application.d.ts @@ -1,19 +1,12 @@ /** * Hides a certain method by calling the HideMethod function. - * - * @return {Promise} - * */ -export function Hide(): Promise; +export declare function Hide(): Promise; /** * Calls the ShowMethod and returns the result. - * - * @return {Promise} */ -export function Show(): Promise; +export declare function Show(): Promise; /** * Calls the QuitMethod to terminate the program. - * - * @return {Promise} */ -export function Quit(): Promise; +export declare function Quit(): Promise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/browser.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/browser.d.ts index 95e0ba377..799a457fb 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/browser.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/browser.d.ts @@ -1,6 +1,6 @@ /** - * Open a browser window to the given URL - * @param {string} url - The URL to open - * @returns {Promise} + * Open a browser window to the given URL. + * + * @param url - The URL to open */ -export function OpenURL(url: string): Promise; +export declare function OpenURL(url: string | URL): Promise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/callable.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/callable.d.ts new file mode 100644 index 000000000..54a1c6cf4 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/callable.d.ts @@ -0,0 +1,3 @@ +declare function isCallableRefApply(value: T | unknown): value is (...args: any[]) => any; +declare const _default: typeof isCallableRefApply; +export default _default; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts index 1ef9a7dc0..a96fa8013 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/calls.d.ts @@ -1,3 +1,35 @@ +import { CancellablePromise } from "./cancellable.js"; +/** + * Holds all required information for a binding call. + * May provide either a method ID or a method name, but not both. + */ +export type CallOptions = { + /** The numeric ID of the bound method to call. */ + methodID: number; + /** The fully qualified name of the bound method to call. */ + methodName?: never; + /** Arguments to be passed into the bound method. */ + args: any[]; +} | { + /** The numeric ID of the bound method to call. */ + methodID?: never; + /** The fully qualified name of the bound method to call. */ + methodName: string; + /** Arguments to be passed into the bound method. */ + args: any[]; +}; +/** + * Exception class that will be thrown in case the bound method returns an error. + * The value of the {@link RuntimeError#name} property is "RuntimeError". + */ +export declare class RuntimeError extends Error { + /** + * Constructs a new RuntimeError instance. + * @param message - The error message. + * @param options - Options to be forwarded to the Error constructor. + */ + constructor(message?: string, options?: ErrorOptions); +} /** * Call a bound method according to the given call options. * @@ -7,63 +39,25 @@ * The exception might have a "cause" field with the value returned * by the application- or service-level error marshaling functions. * - * @param {CallOptions} options - A method call descriptor. - * @returns {Promise} - The result of the call. + * @param options - A method call descriptor. + * @returns The result of the call. */ -export function Call(options: CallOptions): Promise; +export declare function Call(options: CallOptions): CancellablePromise; /** * Calls a bound method by name with the specified arguments. * See {@link Call} for details. * - * @param {string} methodName - The name of the method in the format 'package.struct.method'. - * @param {any[]} args - The arguments to pass to the method. - * @returns {Promise} The result of the method call. + * @param methodName - The name of the method in the format 'package.struct.method'. + * @param args - The arguments to pass to the method. + * @returns The result of the method call. */ -export function ByName(methodName: string, ...args: any[]): Promise; +export declare function ByName(methodName: string, ...args: any[]): CancellablePromise; /** * Calls a method by its numeric ID with the specified arguments. * See {@link Call} for details. * - * @param {number} methodID - The ID of the method to call. - * @param {any[]} args - The arguments to pass to the method. - * @return {Promise} - The result of the method call. + * @param methodID - The ID of the method to call. + * @param args - The arguments to pass to the method. + * @return The result of the method call. */ -export function ByID(methodID: number, ...args: any[]): Promise; -/** - * Collects all required information for a binding call. - * - * @typedef {Object} CallOptions - * @property {number} [methodID] - The numeric ID of the bound method to call. - * @property {string} [methodName] - The fully qualified name of the bound method to call. - * @property {any[]} args - Arguments to be passed into the bound method. - */ -/** - * Exception class that will be thrown in case the bound method returns an error. - * The value of the {@link RuntimeError#name} property is "RuntimeError". - */ -export class RuntimeError extends Error { - /** - * Constructs a new RuntimeError instance. - * - * @param {string} message - The error message. - * @param {any[]} args - Optional arguments for the Error constructor. - */ - constructor(message: string, ...args: any[]); -} -/** - * Collects all required information for a binding call. - */ -export type CallOptions = { - /** - * - The numeric ID of the bound method to call. - */ - methodID?: number; - /** - * - The fully qualified name of the bound method to call. - */ - methodName?: string; - /** - * - Arguments to be passed into the bound method. - */ - args: any[]; -}; +export declare function ByID(methodID: number, ...args: any[]): CancellablePromise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/cancellable.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/cancellable.d.ts new file mode 100644 index 000000000..a65a2ba7e --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/cancellable.d.ts @@ -0,0 +1,434 @@ +/** + * Exception class that will be used as rejection reason + * in case a {@link CancellablePromise} is cancelled successfully. + * + * The value of the {@link name} property is the string `"CancelError"`. + * The value of the {@link cause} property is the cause passed to the cancel method, if any. + */ +export declare class CancelError extends Error { + /** + * Constructs a new `CancelError` instance. + * @param message - The error message. + * @param options - Options to be forwarded to the Error constructor. + */ + constructor(message?: string, options?: ErrorOptions); +} +/** + * Exception class that will be reported as an unhandled rejection + * in case a {@link CancellablePromise} rejects after being cancelled, + * or when the `oncancelled` callback throws or rejects. + * + * The value of the {@link name} property is the string `"CancelledRejectionError"`. + * The value of the {@link cause} property is the reason the promise rejected with. + * + * Because the original promise was cancelled, + * a wrapper promise will be passed to the unhandled rejection listener instead. + * The {@link promise} property holds a reference to the original promise. + */ +export declare class CancelledRejectionError extends Error { + /** + * Holds a reference to the promise that was cancelled and then rejected. + */ + promise: CancellablePromise; + /** + * Constructs a new `CancelledRejectionError` instance. + * @param promise - The promise that caused the error originally. + * @param reason - The rejection reason. + * @param info - An optional informative message specifying the circumstances in which the error was thrown. + * Defaults to the string `"Unhandled rejection in cancelled promise."`. + */ + constructor(promise: CancellablePromise, reason?: any, info?: string); +} +type CancellablePromiseResolver = (value: T | PromiseLike | CancellablePromiseLike) => void; +type CancellablePromiseRejector = (reason?: any) => void; +type CancellablePromiseCanceller = (cause?: any) => void | PromiseLike; +type CancellablePromiseExecutor = (resolve: CancellablePromiseResolver, reject: CancellablePromiseRejector) => void; +export interface CancellablePromiseLike { + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike | CancellablePromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike | CancellablePromiseLike) | undefined | null): CancellablePromiseLike; + cancel(cause?: any): void | PromiseLike; +} +/** + * Wraps a cancellable promise along with its resolution methods. + * The `oncancelled` field will be null initially but may be set to provide a custom cancellation function. + */ +export interface CancellablePromiseWithResolvers { + promise: CancellablePromise; + resolve: CancellablePromiseResolver; + reject: CancellablePromiseRejector; + oncancelled: CancellablePromiseCanceller | null; +} +/** + * A promise with an attached method for cancelling long-running operations (see {@link CancellablePromise#cancel}). + * Cancellation can optionally be bound to an {@link AbortSignal} + * for better composability (see {@link CancellablePromise#cancelOn}). + * + * Cancelling a pending promise will result in an immediate rejection + * with an instance of {@link CancelError} as reason, + * but whoever started the promise will be responsible + * for actually aborting the underlying operation. + * To this purpose, the constructor and all chaining methods + * accept optional cancellation callbacks. + * + * If a `CancellablePromise` still resolves after having been cancelled, + * the result will be discarded. If it rejects, the reason + * will be reported as an unhandled rejection, + * wrapped in a {@link CancelledRejectionError} instance. + * To facilitate the handling of cancellation requests, + * cancelled `CancellablePromise`s will _not_ report unhandled `CancelError`s + * whose `cause` field is the same as the one with which the current promise was cancelled. + * + * All usual promise methods are defined and return a `CancellablePromise` + * whose cancel method will cancel the parent operation as well, propagating the cancellation reason + * upwards through promise chains. + * Conversely, cancelling a promise will not automatically cancel dependent promises downstream: + * ```ts + * let root = new CancellablePromise((resolve, reject) => { ... }); + * let child1 = root.then(() => { ... }); + * let child2 = child1.then(() => { ... }); + * let child3 = root.catch(() => { ... }); + * child1.cancel(); // Cancels child1 and root, but not child2 or child3 + * ``` + * Cancelling a promise that has already settled is safe and has no consequence. + * + * The `cancel` method returns a promise that _always fulfills_ + * after the whole chain has processed the cancel request + * and all attached callbacks up to that moment have run. + * + * All ES2024 promise methods (static and instance) are defined on CancellablePromise, + * but actual availability may vary with OS/webview version. + * + * In line with the proposal at https://github.com/tc39/proposal-rm-builtin-subclassing, + * `CancellablePromise` does not support transparent subclassing. + * Extenders should take care to provide their own method implementations. + * This might be reconsidered in case the proposal is retired. + * + * CancellablePromise is a wrapper around the DOM Promise object + * and is compliant with the [Promises/A+ specification](https://promisesaplus.com/) + * (it passes the [compliance suite](https://github.com/promises-aplus/promises-tests)) + * if so is the underlying implementation. + */ +export declare class CancellablePromise extends Promise implements PromiseLike, CancellablePromiseLike { + static [x: symbol]: PromiseConstructor; + /** + * Creates a new `CancellablePromise`. + * + * @param executor - A callback used to initialize the promise. This callback is passed two arguments: + * a `resolve` callback used to resolve the promise with a value + * or the result of another promise (possibly cancellable), + * and a `reject` callback used to reject the promise with a provided reason or error. + * If the value provided to the `resolve` callback is a thenable _and_ cancellable object + * (it has a `then` _and_ a `cancel` method), + * cancellation requests will be forwarded to that object and the oncancelled will not be invoked anymore. + * If any one of the two callbacks is called _after_ the promise has been cancelled, + * the provided values will be cancelled and resolved as usual, + * but their results will be discarded. + * However, if the resolution process ultimately ends up in a rejection + * that is not due to cancellation, the rejection reason + * will be wrapped in a {@link CancelledRejectionError} + * and bubbled up as an unhandled rejection. + * @param oncancelled - It is the caller's responsibility to ensure that any operation + * started by the executor is properly halted upon cancellation. + * This optional callback can be used to that purpose. + * It will be called _synchronously_ with a cancellation cause + * when cancellation is requested, _after_ the promise has already rejected + * with a {@link CancelError}, but _before_ + * any {@link then}/{@link catch}/{@link finally} callback runs. + * If the callback returns a thenable, the promise returned from {@link cancel} + * will only fulfill after the former has settled. + * Unhandled exceptions or rejections from the callback will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as unhandled rejections. + * If the `resolve` callback is called before cancellation with a cancellable promise, + * cancellation requests on this promise will be diverted to that promise, + * and the original `oncancelled` callback will be discarded. + */ + constructor(executor: CancellablePromiseExecutor, oncancelled?: CancellablePromiseCanceller); + /** + * Cancels immediately the execution of the operation associated with this promise. + * The promise rejects with a {@link CancelError} instance as reason, + * with the {@link CancelError#cause} property set to the given argument, if any. + * + * Has no effect if called after the promise has already settled; + * repeated calls in particular are safe, but only the first one + * will set the cancellation cause. + * + * The `CancelError` exception _need not_ be handled explicitly _on the promises that are being cancelled:_ + * cancelling a promise with no attached rejection handler does not trigger an unhandled rejection event. + * Therefore, the following idioms are all equally correct: + * ```ts + * new CancellablePromise((resolve, reject) => { ... }).cancel(); + * new CancellablePromise((resolve, reject) => { ... }).then(...).cancel(); + * new CancellablePromise((resolve, reject) => { ... }).then(...).catch(...).cancel(); + * ``` + * Whenever some cancelled promise in a chain rejects with a `CancelError` + * with the same cancellation cause as itself, the error will be discarded silently. + * However, the `CancelError` _will still be delivered_ to all attached rejection handlers + * added by {@link then} and related methods: + * ```ts + * let cancellable = new CancellablePromise((resolve, reject) => { ... }); + * cancellable.then(() => { ... }).catch(console.log); + * cancellable.cancel(); // A CancelError is printed to the console. + * ``` + * If the `CancelError` is not handled downstream by the time it reaches + * a _non-cancelled_ promise, it _will_ trigger an unhandled rejection event, + * just like normal rejections would: + * ```ts + * let cancellable = new CancellablePromise((resolve, reject) => { ... }); + * let chained = cancellable.then(() => { ... }).then(() => { ... }); // No catch... + * cancellable.cancel(); // Unhandled rejection event on chained! + * ``` + * Therefore, it is important to either cancel whole promise chains from their tail, + * as shown in the correct idioms above, or take care of handling errors everywhere. + * + * @returns A cancellable promise that _fulfills_ after the cancel callback (if any) + * and all handlers attached up to the call to cancel have run. + * If the cancel callback returns a thenable, the promise returned by `cancel` + * will also wait for that thenable to settle. + * This enables callers to wait for the cancelled operation to terminate + * without being forced to handle potential errors at the call site. + * ```ts + * cancellable.cancel().then(() => { + * // Cleanup finished, it's safe to do something else. + * }, (err) => { + * // Unreachable: the promise returned from cancel will never reject. + * }); + * ``` + * Note that the returned promise will _not_ handle implicitly any rejection + * that might have occurred already in the cancelled chain. + * It will just track whether registered handlers have been executed or not. + * Therefore, unhandled rejections will never be silently handled by calling cancel. + */ + cancel(cause?: any): CancellablePromise; + /** + * Binds promise cancellation to the abort event of the given {@link AbortSignal}. + * If the signal has already aborted, the promise will be cancelled immediately. + * When either condition is verified, the cancellation cause will be set + * to the signal's abort reason (see {@link AbortSignal#reason}). + * + * Has no effect if called (or if the signal aborts) _after_ the promise has already settled. + * Only the first signal to abort will set the cancellation cause. + * + * For more details about the cancellation process, + * see {@link cancel} and the `CancellablePromise` constructor. + * + * This method enables `await`ing cancellable promises without having + * to store them for future cancellation, e.g.: + * ```ts + * await longRunningOperation().cancelOn(signal); + * ``` + * instead of: + * ```ts + * let promiseToBeCancelled = longRunningOperation(); + * await promiseToBeCancelled; + * ``` + * + * @returns This promise, for method chaining. + */ + cancelOn(signal: AbortSignal): CancellablePromise; + /** + * Attaches callbacks for the resolution and/or rejection of the `CancellablePromise`. + * + * The optional `oncancelled` argument will be invoked when the returned promise is cancelled, + * with the same semantics as the `oncancelled` argument of the constructor. + * When the parent promise rejects or is cancelled, the `onrejected` callback will run, + * _even after the returned promise has been cancelled:_ + * in that case, should it reject or throw, the reason will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as an unhandled rejection. + * + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A `CancellablePromise` for the completion of whichever callback is executed. + * The returned promise is hooked up to propagate cancellation requests up the chain, but not down: + * + * - if the parent promise is cancelled, the `onrejected` handler will be invoked with a `CancelError` + * and the returned promise _will resolve regularly_ with its result; + * - conversely, if the returned promise is cancelled, _the parent promise is cancelled too;_ + * the `onrejected` handler will still be invoked with the parent's `CancelError`, + * but its result will be discarded + * and the returned promise will reject with a `CancelError` as well. + * + * The promise returned from {@link cancel} will fulfill only after all attached handlers + * up the entire promise chain have been run. + * + * If either callback returns a cancellable promise, + * cancellation requests will be diverted to it, + * and the specified `oncancelled` callback will be discarded. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike | CancellablePromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike | CancellablePromiseLike) | undefined | null, oncancelled?: CancellablePromiseCanceller): CancellablePromise; + /** + * Attaches a callback for only the rejection of the Promise. + * + * The optional `oncancelled` argument will be invoked when the returned promise is cancelled, + * with the same semantics as the `oncancelled` argument of the constructor. + * When the parent promise rejects or is cancelled, the `onrejected` callback will run, + * _even after the returned promise has been cancelled:_ + * in that case, should it reject or throw, the reason will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as an unhandled rejection. + * + * It is equivalent to + * ```ts + * cancellablePromise.then(undefined, onrejected, oncancelled); + * ``` + * and the same caveats apply. + * + * @returns A Promise for the completion of the callback. + * Cancellation requests on the returned promise + * will propagate up the chain to the parent promise, + * but not in the other direction. + * + * The promise returned from {@link cancel} will fulfill only after all attached handlers + * up the entire promise chain have been run. + * + * If `onrejected` returns a cancellable promise, + * cancellation requests will be diverted to it, + * and the specified `oncancelled` callback will be discarded. + * See {@link then} for more details. + */ + catch(onrejected?: ((reason: any) => (PromiseLike | TResult)) | undefined | null, oncancelled?: CancellablePromiseCanceller): CancellablePromise; + /** + * Attaches a callback that is invoked when the CancellablePromise is settled (fulfilled or rejected). The + * resolved value cannot be accessed or modified from the callback. + * The returned promise will settle in the same state as the original one + * after the provided callback has completed execution, + * unless the callback throws or returns a rejecting promise, + * in which case the returned promise will reject as well. + * + * The optional `oncancelled` argument will be invoked when the returned promise is cancelled, + * with the same semantics as the `oncancelled` argument of the constructor. + * Once the parent promise settles, the `onfinally` callback will run, + * _even after the returned promise has been cancelled:_ + * in that case, should it reject or throw, the reason will be wrapped + * in a {@link CancelledRejectionError} and bubbled up as an unhandled rejection. + * + * This method is implemented in terms of {@link then} and the same caveats apply. + * It is polyfilled, hence available in every OS/webview version. + * + * @returns A Promise for the completion of the callback. + * Cancellation requests on the returned promise + * will propagate up the chain to the parent promise, + * but not in the other direction. + * + * The promise returned from {@link cancel} will fulfill only after all attached handlers + * up the entire promise chain have been run. + * + * If `onfinally` returns a cancellable promise, + * cancellation requests will be diverted to it, + * and the specified `oncancelled` callback will be discarded. + * See {@link then} for more details. + */ + finally(onfinally?: (() => void) | undefined | null, oncancelled?: CancellablePromiseCanceller): CancellablePromise; + /** + * Creates a CancellablePromise that is resolved with an array of results + * when all of the provided Promises resolve, or rejected when any Promise is rejected. + * + * Every one of the provided objects that is a thenable _and_ cancellable object + * will be cancelled when the returned promise is cancelled, with the same cause. + * + * @group Static Methods + */ + static all(values: Iterable>): CancellablePromise[]>; + static all(values: T): CancellablePromise<{ + -readonly [P in keyof T]: Awaited; + }>; + /** + * Creates a CancellablePromise that is resolved with an array of results + * when all of the provided Promises resolve or reject. + * + * Every one of the provided objects that is a thenable _and_ cancellable object + * will be cancelled when the returned promise is cancelled, with the same cause. + * + * @group Static Methods + */ + static allSettled(values: Iterable>): CancellablePromise>[]>; + static allSettled(values: T): CancellablePromise<{ + -readonly [P in keyof T]: PromiseSettledResult>; + }>; + /** + * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, + * or rejected with an AggregateError containing an array of rejection reasons + * if all of the given promises are rejected. + * It resolves all elements of the passed iterable to promises as it runs this algorithm. + * + * Every one of the provided objects that is a thenable _and_ cancellable object + * will be cancelled when the returned promise is cancelled, with the same cause. + * + * @group Static Methods + */ + static any(values: Iterable>): CancellablePromise>; + static any(values: T): CancellablePromise>; + /** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected. + * + * Every one of the provided objects that is a thenable _and_ cancellable object + * will be cancelled when the returned promise is cancelled, with the same cause. + * + * @group Static Methods + */ + static race(values: Iterable>): CancellablePromise>; + static race(values: T): CancellablePromise>; + /** + * Creates a new cancelled CancellablePromise for the provided cause. + * + * @group Static Methods + */ + static cancel(cause?: any): CancellablePromise; + /** + * Creates a new CancellablePromise that cancels + * after the specified timeout, with the provided cause. + * + * If the {@link AbortSignal.timeout} factory method is available, + * it is used to base the timeout on _active_ time rather than _elapsed_ time. + * Otherwise, `timeout` falls back to {@link setTimeout}. + * + * @group Static Methods + */ + static timeout(milliseconds: number, cause?: any): CancellablePromise; + /** + * Creates a new CancellablePromise that resolves after the specified timeout. + * The returned promise can be cancelled without consequences. + * + * @group Static Methods + */ + static sleep(milliseconds: number): CancellablePromise; + /** + * Creates a new CancellablePromise that resolves after + * the specified timeout, with the provided value. + * The returned promise can be cancelled without consequences. + * + * @group Static Methods + */ + static sleep(milliseconds: number, value: T): CancellablePromise; + /** + * Creates a new rejected CancellablePromise for the provided reason. + * + * @group Static Methods + */ + static reject(reason?: any): CancellablePromise; + /** + * Creates a new resolved CancellablePromise. + * + * @group Static Methods + */ + static resolve(): CancellablePromise; + /** + * Creates a new resolved CancellablePromise for the provided value. + * + * @group Static Methods + */ + static resolve(value: T): CancellablePromise>; + /** + * Creates a new resolved CancellablePromise for the provided value. + * + * @group Static Methods + */ + static resolve(value: T | PromiseLike): CancellablePromise>; + /** + * Creates a new CancellablePromise and returns it in an object, along with its resolve and reject functions + * and a getter/setter for the cancellation callback. + * + * This method is polyfilled, hence available in every OS/webview version. + * + * @group Static Methods + */ + static withResolvers(): CancellablePromiseWithResolvers; +} +export {}; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/clipboard.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/clipboard.d.ts index 8f7bfabc1..4d0363428 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/clipboard.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/clipboard.d.ts @@ -1,12 +1,13 @@ /** * Sets the text to the Clipboard. * - * @param {string} text - The text to be set to the Clipboard. - * @return {Promise} - A Promise that resolves when the operation is successful. + * @param text - The text to be set to the Clipboard. + * @return A Promise that resolves when the operation is successful. */ -export function SetText(text: string): Promise; +export declare function SetText(text: string): Promise; /** * Get the Clipboard text - * @returns {Promise} A promise that resolves with the text from the Clipboard. + * + * @returns A promise that resolves with the text from the Clipboard. */ -export function Text(): Promise; +export declare function Text(): Promise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/create.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/create.d.ts index 10c505ff8..a3332a4fd 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/create.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/create.d.ts @@ -1,52 +1,31 @@ /** * Any is a dummy creation function for simple or unknown types. - * @template T - * @param {any} source - * @returns {T} */ -export function Any(source: any): T; +export declare function Any(source: any): T; /** * ByteSlice is a creation function that replaces * null strings with empty strings. - * @param {any} source - * @returns {string} */ -export function ByteSlice(source: any): string; +export declare function ByteSlice(source: any): string; /** * Array takes a creation function for an arbitrary type * and returns an in-place creation function for an array * whose elements are of that type. - * @template T - * @param {(source: any) => T} element - * @returns {(source: any) => T[]} */ -export function Array(element: (source: any) => T): (source: any) => T[]; +export declare function Array(element: (source: any) => T): (source: any) => T[]; /** * Map takes creation functions for two arbitrary types * and returns an in-place creation function for an object * whose keys and values are of those types. - * @template K, V - * @param {(source: any) => K} key - * @param {(source: any) => V} value - * @returns {(source: any) => { [_: K]: V }} */ -export function Map(key: (source: any) => K, value: (source: any) => V): (source: any) => {}; +export declare function Map(key: (source: any) => string, value: (source: any) => V): (source: any) => Record; /** * Nullable takes a creation function for an arbitrary type * and returns a creation function for a nullable value of that type. - * @template T - * @param {(source: any) => T} element - * @returns {(source: any) => (T | null)} */ -export function Nullable(element: (source: any) => T): (source: any) => T; +export declare function Nullable(element: (source: any) => T): (source: any) => (T | null); /** * Struct takes an object mapping field names to creation functions * and returns an in-place creation function for a struct. - * @template {{ [_: string]: ((source: any) => any) }} T - * @template {{ [Key in keyof T]?: ReturnType }} U - * @param {T} createField - * @returns {(source: any) => U} */ -export function Struct any; -}, U extends { [Key in keyof T]?: ReturnType; }>(createField: T): (source: any) => U; +export declare function Struct(createField: Record any>): = any>(source: any) => U; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/dialogs.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/dialogs.d.ts index 1a90bb0ec..223d43eae 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/dialogs.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/dialogs.d.ts @@ -1,184 +1,140 @@ -export function Info(options: MessageDialogOptions): Promise; -export function Warning(options: MessageDialogOptions): Promise; -export function Error(options: MessageDialogOptions): Promise; -export function Question(options: MessageDialogOptions): Promise; -export function OpenFile(options: OpenFileDialogOptions): Promise; -export function SaveFile(options: SaveFileDialogOptions): Promise; -export type OpenFileDialogOptions = { - /** - * - Indicates if directories can be chosen. - */ +export interface OpenFileDialogOptions { + /** Indicates if directories can be chosen. */ CanChooseDirectories?: boolean; - /** - * - Indicates if files can be chosen. - */ + /** Indicates if files can be chosen. */ CanChooseFiles?: boolean; - /** - * - Indicates if directories can be created. - */ + /** Indicates if directories can be created. */ CanCreateDirectories?: boolean; - /** - * - Indicates if hidden files should be shown. - */ + /** Indicates if hidden files should be shown. */ ShowHiddenFiles?: boolean; - /** - * - Indicates if aliases should be resolved. - */ + /** Indicates if aliases should be resolved. */ ResolvesAliases?: boolean; - /** - * - Indicates if multiple selection is allowed. - */ + /** Indicates if multiple selection is allowed. */ AllowsMultipleSelection?: boolean; - /** - * - Indicates if the extension should be hidden. - */ + /** Indicates if the extension should be hidden. */ HideExtension?: boolean; - /** - * - Indicates if hidden extensions can be selected. - */ + /** Indicates if hidden extensions can be selected. */ CanSelectHiddenExtension?: boolean; - /** - * - Indicates if file packages should be treated as directories. - */ + /** Indicates if file packages should be treated as directories. */ TreatsFilePackagesAsDirectories?: boolean; - /** - * - Indicates if other file types are allowed. - */ + /** Indicates if other file types are allowed. */ AllowsOtherFiletypes?: boolean; - /** - * - Array of file filters. - */ + /** Array of file filters. */ Filters?: FileFilter[]; - /** - * - Title of the dialog. - */ + /** Title of the dialog. */ Title?: string; - /** - * - Message to show in the dialog. - */ + /** Message to show in the dialog. */ Message?: string; - /** - * - Text to display on the button. - */ + /** Text to display on the button. */ ButtonText?: string; - /** - * - Directory to open in the dialog. - */ + /** Directory to open in the dialog. */ Directory?: string; - /** - * - Indicates if the dialog should appear detached from the main window. - */ + /** Indicates if the dialog should appear detached from the main window. */ Detached?: boolean; -}; -export type SaveFileDialogOptions = { - /** - * - Default filename to use in the dialog. - */ +} +export interface SaveFileDialogOptions { + /** Default filename to use in the dialog. */ Filename?: string; - /** - * - Indicates if directories can be chosen. - */ + /** Indicates if directories can be chosen. */ CanChooseDirectories?: boolean; - /** - * - Indicates if files can be chosen. - */ + /** Indicates if files can be chosen. */ CanChooseFiles?: boolean; - /** - * - Indicates if directories can be created. - */ + /** Indicates if directories can be created. */ CanCreateDirectories?: boolean; - /** - * - Indicates if hidden files should be shown. - */ + /** Indicates if hidden files should be shown. */ ShowHiddenFiles?: boolean; - /** - * - Indicates if aliases should be resolved. - */ + /** Indicates if aliases should be resolved. */ ResolvesAliases?: boolean; - /** - * - Indicates if multiple selection is allowed. - */ - AllowsMultipleSelection?: boolean; - /** - * - Indicates if the extension should be hidden. - */ + /** Indicates if the extension should be hidden. */ HideExtension?: boolean; - /** - * - Indicates if hidden extensions can be selected. - */ + /** Indicates if hidden extensions can be selected. */ CanSelectHiddenExtension?: boolean; - /** - * - Indicates if file packages should be treated as directories. - */ + /** Indicates if file packages should be treated as directories. */ TreatsFilePackagesAsDirectories?: boolean; - /** - * - Indicates if other file types are allowed. - */ + /** Indicates if other file types are allowed. */ AllowsOtherFiletypes?: boolean; - /** - * - Array of file filters. - */ + /** Array of file filters. */ Filters?: FileFilter[]; - /** - * - Title of the dialog. - */ + /** Title of the dialog. */ Title?: string; - /** - * - Message to show in the dialog. - */ + /** Message to show in the dialog. */ Message?: string; - /** - * - Text to display on the button. - */ + /** Text to display on the button. */ ButtonText?: string; - /** - * - Directory to open in the dialog. - */ + /** Directory to open in the dialog. */ Directory?: string; - /** - * - Indicates if the dialog should appear detached from the main window. - */ + /** Indicates if the dialog should appear detached from the main window. */ Detached?: boolean; -}; -export type MessageDialogOptions = { - /** - * - The title of the dialog window. - */ +} +export interface MessageDialogOptions { + /** The title of the dialog window. */ Title?: string; - /** - * - The main message to show in the dialog. - */ + /** The main message to show in the dialog. */ Message?: string; - /** - * - Array of button options to show in the dialog. - */ + /** Array of button options to show in the dialog. */ Buttons?: Button[]; - /** - * - True if the dialog should appear detached from the main window (if applicable). - */ + /** True if the dialog should appear detached from the main window (if applicable). */ Detached?: boolean; -}; -export type Button = { - /** - * - Text that appears within the button. - */ +} +export interface Button { + /** Text that appears within the button. */ Label?: string; - /** - * - True if the button should cancel an operation when clicked. - */ + /** True if the button should cancel an operation when clicked. */ IsCancel?: boolean; - /** - * - True if the button should be the default action when the user presses enter. - */ + /** True if the button should be the default action when the user presses enter. */ IsDefault?: boolean; -}; -export type FileFilter = { - /** - * - Display name for the filter, it could be "Text Files", "Images" etc. - */ +} +export interface FileFilter { + /** Display name for the filter, it could be "Text Files", "Images" etc. */ DisplayName?: string; - /** - * - Pattern to match for the filter, e.g. "*.txt;*.md" for text markdown files. - */ + /** Pattern to match for the filter, e.g. "*.txt;*.md" for text markdown files. */ Pattern?: string; -}; +} +/** + * Presents an info dialog. + * + * @param options - Dialog options + * @returns A promise that resolves with the label of the chosen button. + */ +export declare function Info(options: MessageDialogOptions): Promise; +/** + * Presents a warning dialog. + * + * @param options - Dialog options. + * @returns A promise that resolves with the label of the chosen button. + */ +export declare function Warning(options: MessageDialogOptions): Promise; +/** + * Presents an error dialog. + * + * @param options - Dialog options. + * @returns A promise that resolves with the label of the chosen button. + */ +export declare function Error(options: MessageDialogOptions): Promise; +/** + * Presents a question dialog. + * + * @param options - Dialog options. + * @returns A promise that resolves with the label of the chosen button. + */ +export declare function Question(options: MessageDialogOptions): Promise; +/** + * Presents a file selection dialog to pick one or more files to open. + * + * @param options - Dialog options. + * @returns Selected file or list of files, or a blank string/empty list if no file has been selected. + */ +export declare function OpenFile(options: OpenFileDialogOptions & { + AllowsMultipleSelection: true; +}): Promise; +export declare function OpenFile(options: OpenFileDialogOptions & { + AllowsMultipleSelection?: false | undefined; +}): Promise; +export declare function OpenFile(options: OpenFileDialogOptions): Promise; +/** + * Presents a file selection dialog to pick a file to save. + * + * @param options - Dialog options. + * @returns Selected file, or a blank string if no file has been selected. + */ +export declare function SaveFile(options: SaveFileDialogOptions): Promise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts index e8742de59..382c32436 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts @@ -1,219 +1,218 @@ - -export declare const EventTypes: { - Windows: { - APMPowerSettingChange: string, - APMPowerStatusChange: string, - APMResumeAutomatic: string, - APMResumeSuspend: string, - APMSuspend: string, - ApplicationStarted: string, - SystemThemeChanged: string, - WebViewNavigationCompleted: string, - WindowActive: string, - WindowBackgroundErase: string, - WindowClickActive: string, - WindowClosing: string, - WindowDidMove: string, - WindowDidResize: string, - WindowDPIChanged: string, - WindowDragDrop: string, - WindowDragEnter: string, - WindowDragLeave: string, - WindowDragOver: string, - WindowEndMove: string, - WindowEndResize: string, - WindowFullscreen: string, - WindowHide: string, - WindowInactive: string, - WindowKeyDown: string, - WindowKeyUp: string, - WindowKillFocus: string, - WindowNonClientHit: string, - WindowNonClientMouseDown: string, - WindowNonClientMouseLeave: string, - WindowNonClientMouseMove: string, - WindowNonClientMouseUp: string, - WindowPaint: string, - WindowRestore: string, - WindowSetFocus: string, - WindowShow: string, - WindowStartMove: string, - WindowStartResize: string, - WindowUnFullscreen: string, - WindowZOrderChanged: string, - WindowMinimise: string, - WindowUnMinimise: string, - WindowMaximise: string, - WindowUnMaximise: string, - }, - Mac: { - ApplicationDidBecomeActive: string, - ApplicationDidChangeBackingProperties: string, - ApplicationDidChangeEffectiveAppearance: string, - ApplicationDidChangeIcon: string, - ApplicationDidChangeOcclusionState: string, - ApplicationDidChangeScreenParameters: string, - ApplicationDidChangeStatusBarFrame: string, - ApplicationDidChangeStatusBarOrientation: string, - ApplicationDidChangeTheme: string, - ApplicationDidFinishLaunching: string, - ApplicationDidHide: string, - ApplicationDidResignActive: string, - ApplicationDidUnhide: string, - ApplicationDidUpdate: string, - ApplicationShouldHandleReopen: string, - ApplicationWillBecomeActive: string, - ApplicationWillFinishLaunching: string, - ApplicationWillHide: string, - ApplicationWillResignActive: string, - ApplicationWillTerminate: string, - ApplicationWillUnhide: string, - ApplicationWillUpdate: string, - MenuDidAddItem: string, - MenuDidBeginTracking: string, - MenuDidClose: string, - MenuDidDisplayItem: string, - MenuDidEndTracking: string, - MenuDidHighlightItem: string, - MenuDidOpen: string, - MenuDidPopUp: string, - MenuDidRemoveItem: string, - MenuDidSendAction: string, - MenuDidSendActionToItem: string, - MenuDidUpdate: string, - MenuWillAddItem: string, - MenuWillBeginTracking: string, - MenuWillDisplayItem: string, - MenuWillEndTracking: string, - MenuWillHighlightItem: string, - MenuWillOpen: string, - MenuWillPopUp: string, - MenuWillRemoveItem: string, - MenuWillSendAction: string, - MenuWillSendActionToItem: string, - MenuWillUpdate: string, - WebViewDidCommitNavigation: string, - WebViewDidFinishNavigation: string, - WebViewDidReceiveServerRedirectForProvisionalNavigation: string, - WebViewDidStartProvisionalNavigation: string, - WindowDidBecomeKey: string, - WindowDidBecomeMain: string, - WindowDidBeginSheet: string, - WindowDidChangeAlpha: string, - WindowDidChangeBackingLocation: string, - WindowDidChangeBackingProperties: string, - WindowDidChangeCollectionBehavior: string, - WindowDidChangeEffectiveAppearance: string, - WindowDidChangeOcclusionState: string, - WindowDidChangeOrderingMode: string, - WindowDidChangeScreen: string, - WindowDidChangeScreenParameters: string, - WindowDidChangeScreenProfile: string, - WindowDidChangeScreenSpace: string, - WindowDidChangeScreenSpaceProperties: string, - WindowDidChangeSharingType: string, - WindowDidChangeSpace: string, - WindowDidChangeSpaceOrderingMode: string, - WindowDidChangeTitle: string, - WindowDidChangeToolbar: string, - WindowDidDeminiaturize: string, - WindowDidEndSheet: string, - WindowDidEnterFullScreen: string, - WindowDidEnterVersionBrowser: string, - WindowDidExitFullScreen: string, - WindowDidExitVersionBrowser: string, - WindowDidExpose: string, - WindowDidFocus: string, - WindowDidMiniaturize: string, - WindowDidMove: string, - WindowDidOrderOffScreen: string, - WindowDidOrderOnScreen: string, - WindowDidResignKey: string, - WindowDidResignMain: string, - WindowDidResize: string, - WindowDidUpdate: string, - WindowDidUpdateAlpha: string, - WindowDidUpdateCollectionBehavior: string, - WindowDidUpdateCollectionProperties: string, - WindowDidUpdateShadow: string, - WindowDidUpdateTitle: string, - WindowDidUpdateToolbar: string, - WindowDidZoom: string, - WindowFileDraggingEntered: string, - WindowFileDraggingExited: string, - WindowFileDraggingPerformed: string, - WindowHide: string, - WindowMaximise: string, - WindowUnMaximise: string, - WindowMinimise: string, - WindowUnMinimise: string, - WindowShouldClose: string, - WindowShow: string, - WindowWillBecomeKey: string, - WindowWillBecomeMain: string, - WindowWillBeginSheet: string, - WindowWillChangeOrderingMode: string, - WindowWillClose: string, - WindowWillDeminiaturize: string, - WindowWillEnterFullScreen: string, - WindowWillEnterVersionBrowser: string, - WindowWillExitFullScreen: string, - WindowWillExitVersionBrowser: string, - WindowWillFocus: string, - WindowWillMiniaturize: string, - WindowWillMove: string, - WindowWillOrderOffScreen: string, - WindowWillOrderOnScreen: string, - WindowWillResignMain: string, - WindowWillResize: string, - WindowWillUnfocus: string, - WindowWillUpdate: string, - WindowWillUpdateAlpha: string, - WindowWillUpdateCollectionBehavior: string, - WindowWillUpdateCollectionProperties: string, - WindowWillUpdateShadow: string, - WindowWillUpdateTitle: string, - WindowWillUpdateToolbar: string, - WindowWillUpdateVisibility: string, - WindowWillUseStandardFrame: string, - WindowZoomIn: string, - WindowZoomOut: string, - WindowZoomReset: string, - }, - Linux: { - ApplicationStartup: string, - SystemThemeChanged: string, - WindowDeleteEvent: string, - WindowDidMove: string, - WindowDidResize: string, - WindowFocusIn: string, - WindowFocusOut: string, - WindowLoadChanged: string, - }, - Common: { - ApplicationOpenedWithFile: string, - ApplicationStarted: string, - ThemeChanged: string, - WindowClosing: string, - WindowDidMove: string, - WindowDidResize: string, - WindowDPIChanged: string, - WindowFilesDropped: string, - WindowFocus: string, - WindowFullscreen: string, - WindowHide: string, - WindowLostFocus: string, - WindowMaximise: string, - WindowMinimise: string, - WindowRestore: string, - WindowRuntimeReady: string, - WindowShow: string, - WindowUnFullscreen: string, - WindowUnMaximise: string, - WindowUnMinimise: string, - WindowZoom: string, - WindowZoomIn: string, - WindowZoomOut: string, - WindowZoomReset: string, - }, -}; +export declare const Types: Readonly<{ + Windows: Readonly<{ + APMPowerSettingChange: "windows:APMPowerSettingChange"; + APMPowerStatusChange: "windows:APMPowerStatusChange"; + APMResumeAutomatic: "windows:APMResumeAutomatic"; + APMResumeSuspend: "windows:APMResumeSuspend"; + APMSuspend: "windows:APMSuspend"; + ApplicationStarted: "windows:ApplicationStarted"; + SystemThemeChanged: "windows:SystemThemeChanged"; + WebViewNavigationCompleted: "windows:WebViewNavigationCompleted"; + WindowActive: "windows:WindowActive"; + WindowBackgroundErase: "windows:WindowBackgroundErase"; + WindowClickActive: "windows:WindowClickActive"; + WindowClosing: "windows:WindowClosing"; + WindowDidMove: "windows:WindowDidMove"; + WindowDidResize: "windows:WindowDidResize"; + WindowDPIChanged: "windows:WindowDPIChanged"; + WindowDragDrop: "windows:WindowDragDrop"; + WindowDragEnter: "windows:WindowDragEnter"; + WindowDragLeave: "windows:WindowDragLeave"; + WindowDragOver: "windows:WindowDragOver"; + WindowEndMove: "windows:WindowEndMove"; + WindowEndResize: "windows:WindowEndResize"; + WindowFullscreen: "windows:WindowFullscreen"; + WindowHide: "windows:WindowHide"; + WindowInactive: "windows:WindowInactive"; + WindowKeyDown: "windows:WindowKeyDown"; + WindowKeyUp: "windows:WindowKeyUp"; + WindowKillFocus: "windows:WindowKillFocus"; + WindowNonClientHit: "windows:WindowNonClientHit"; + WindowNonClientMouseDown: "windows:WindowNonClientMouseDown"; + WindowNonClientMouseLeave: "windows:WindowNonClientMouseLeave"; + WindowNonClientMouseMove: "windows:WindowNonClientMouseMove"; + WindowNonClientMouseUp: "windows:WindowNonClientMouseUp"; + WindowPaint: "windows:WindowPaint"; + WindowRestore: "windows:WindowRestore"; + WindowSetFocus: "windows:WindowSetFocus"; + WindowShow: "windows:WindowShow"; + WindowStartMove: "windows:WindowStartMove"; + WindowStartResize: "windows:WindowStartResize"; + WindowUnFullscreen: "windows:WindowUnFullscreen"; + WindowZOrderChanged: "windows:WindowZOrderChanged"; + WindowMinimise: "windows:WindowMinimise"; + WindowUnMinimise: "windows:WindowUnMinimise"; + WindowMaximise: "windows:WindowMaximise"; + WindowUnMaximise: "windows:WindowUnMaximise"; + }>; + Mac: Readonly<{ + ApplicationDidBecomeActive: "mac:ApplicationDidBecomeActive"; + ApplicationDidChangeBackingProperties: "mac:ApplicationDidChangeBackingProperties"; + ApplicationDidChangeEffectiveAppearance: "mac:ApplicationDidChangeEffectiveAppearance"; + ApplicationDidChangeIcon: "mac:ApplicationDidChangeIcon"; + ApplicationDidChangeOcclusionState: "mac:ApplicationDidChangeOcclusionState"; + ApplicationDidChangeScreenParameters: "mac:ApplicationDidChangeScreenParameters"; + ApplicationDidChangeStatusBarFrame: "mac:ApplicationDidChangeStatusBarFrame"; + ApplicationDidChangeStatusBarOrientation: "mac:ApplicationDidChangeStatusBarOrientation"; + ApplicationDidChangeTheme: "mac:ApplicationDidChangeTheme"; + ApplicationDidFinishLaunching: "mac:ApplicationDidFinishLaunching"; + ApplicationDidHide: "mac:ApplicationDidHide"; + ApplicationDidResignActive: "mac:ApplicationDidResignActive"; + ApplicationDidUnhide: "mac:ApplicationDidUnhide"; + ApplicationDidUpdate: "mac:ApplicationDidUpdate"; + ApplicationShouldHandleReopen: "mac:ApplicationShouldHandleReopen"; + ApplicationWillBecomeActive: "mac:ApplicationWillBecomeActive"; + ApplicationWillFinishLaunching: "mac:ApplicationWillFinishLaunching"; + ApplicationWillHide: "mac:ApplicationWillHide"; + ApplicationWillResignActive: "mac:ApplicationWillResignActive"; + ApplicationWillTerminate: "mac:ApplicationWillTerminate"; + ApplicationWillUnhide: "mac:ApplicationWillUnhide"; + ApplicationWillUpdate: "mac:ApplicationWillUpdate"; + MenuDidAddItem: "mac:MenuDidAddItem"; + MenuDidBeginTracking: "mac:MenuDidBeginTracking"; + MenuDidClose: "mac:MenuDidClose"; + MenuDidDisplayItem: "mac:MenuDidDisplayItem"; + MenuDidEndTracking: "mac:MenuDidEndTracking"; + MenuDidHighlightItem: "mac:MenuDidHighlightItem"; + MenuDidOpen: "mac:MenuDidOpen"; + MenuDidPopUp: "mac:MenuDidPopUp"; + MenuDidRemoveItem: "mac:MenuDidRemoveItem"; + MenuDidSendAction: "mac:MenuDidSendAction"; + MenuDidSendActionToItem: "mac:MenuDidSendActionToItem"; + MenuDidUpdate: "mac:MenuDidUpdate"; + MenuWillAddItem: "mac:MenuWillAddItem"; + MenuWillBeginTracking: "mac:MenuWillBeginTracking"; + MenuWillDisplayItem: "mac:MenuWillDisplayItem"; + MenuWillEndTracking: "mac:MenuWillEndTracking"; + MenuWillHighlightItem: "mac:MenuWillHighlightItem"; + MenuWillOpen: "mac:MenuWillOpen"; + MenuWillPopUp: "mac:MenuWillPopUp"; + MenuWillRemoveItem: "mac:MenuWillRemoveItem"; + MenuWillSendAction: "mac:MenuWillSendAction"; + MenuWillSendActionToItem: "mac:MenuWillSendActionToItem"; + MenuWillUpdate: "mac:MenuWillUpdate"; + WebViewDidCommitNavigation: "mac:WebViewDidCommitNavigation"; + WebViewDidFinishNavigation: "mac:WebViewDidFinishNavigation"; + WebViewDidReceiveServerRedirectForProvisionalNavigation: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation"; + WebViewDidStartProvisionalNavigation: "mac:WebViewDidStartProvisionalNavigation"; + WindowDidBecomeKey: "mac:WindowDidBecomeKey"; + WindowDidBecomeMain: "mac:WindowDidBecomeMain"; + WindowDidBeginSheet: "mac:WindowDidBeginSheet"; + WindowDidChangeAlpha: "mac:WindowDidChangeAlpha"; + WindowDidChangeBackingLocation: "mac:WindowDidChangeBackingLocation"; + WindowDidChangeBackingProperties: "mac:WindowDidChangeBackingProperties"; + WindowDidChangeCollectionBehavior: "mac:WindowDidChangeCollectionBehavior"; + WindowDidChangeEffectiveAppearance: "mac:WindowDidChangeEffectiveAppearance"; + WindowDidChangeOcclusionState: "mac:WindowDidChangeOcclusionState"; + WindowDidChangeOrderingMode: "mac:WindowDidChangeOrderingMode"; + WindowDidChangeScreen: "mac:WindowDidChangeScreen"; + WindowDidChangeScreenParameters: "mac:WindowDidChangeScreenParameters"; + WindowDidChangeScreenProfile: "mac:WindowDidChangeScreenProfile"; + WindowDidChangeScreenSpace: "mac:WindowDidChangeScreenSpace"; + WindowDidChangeScreenSpaceProperties: "mac:WindowDidChangeScreenSpaceProperties"; + WindowDidChangeSharingType: "mac:WindowDidChangeSharingType"; + WindowDidChangeSpace: "mac:WindowDidChangeSpace"; + WindowDidChangeSpaceOrderingMode: "mac:WindowDidChangeSpaceOrderingMode"; + WindowDidChangeTitle: "mac:WindowDidChangeTitle"; + WindowDidChangeToolbar: "mac:WindowDidChangeToolbar"; + WindowDidDeminiaturize: "mac:WindowDidDeminiaturize"; + WindowDidEndSheet: "mac:WindowDidEndSheet"; + WindowDidEnterFullScreen: "mac:WindowDidEnterFullScreen"; + WindowDidEnterVersionBrowser: "mac:WindowDidEnterVersionBrowser"; + WindowDidExitFullScreen: "mac:WindowDidExitFullScreen"; + WindowDidExitVersionBrowser: "mac:WindowDidExitVersionBrowser"; + WindowDidExpose: "mac:WindowDidExpose"; + WindowDidFocus: "mac:WindowDidFocus"; + WindowDidMiniaturize: "mac:WindowDidMiniaturize"; + WindowDidMove: "mac:WindowDidMove"; + WindowDidOrderOffScreen: "mac:WindowDidOrderOffScreen"; + WindowDidOrderOnScreen: "mac:WindowDidOrderOnScreen"; + WindowDidResignKey: "mac:WindowDidResignKey"; + WindowDidResignMain: "mac:WindowDidResignMain"; + WindowDidResize: "mac:WindowDidResize"; + WindowDidUpdate: "mac:WindowDidUpdate"; + WindowDidUpdateAlpha: "mac:WindowDidUpdateAlpha"; + WindowDidUpdateCollectionBehavior: "mac:WindowDidUpdateCollectionBehavior"; + WindowDidUpdateCollectionProperties: "mac:WindowDidUpdateCollectionProperties"; + WindowDidUpdateShadow: "mac:WindowDidUpdateShadow"; + WindowDidUpdateTitle: "mac:WindowDidUpdateTitle"; + WindowDidUpdateToolbar: "mac:WindowDidUpdateToolbar"; + WindowDidZoom: "mac:WindowDidZoom"; + WindowFileDraggingEntered: "mac:WindowFileDraggingEntered"; + WindowFileDraggingExited: "mac:WindowFileDraggingExited"; + WindowFileDraggingPerformed: "mac:WindowFileDraggingPerformed"; + WindowHide: "mac:WindowHide"; + WindowMaximise: "mac:WindowMaximise"; + WindowUnMaximise: "mac:WindowUnMaximise"; + WindowMinimise: "mac:WindowMinimise"; + WindowUnMinimise: "mac:WindowUnMinimise"; + WindowShouldClose: "mac:WindowShouldClose"; + WindowShow: "mac:WindowShow"; + WindowWillBecomeKey: "mac:WindowWillBecomeKey"; + WindowWillBecomeMain: "mac:WindowWillBecomeMain"; + WindowWillBeginSheet: "mac:WindowWillBeginSheet"; + WindowWillChangeOrderingMode: "mac:WindowWillChangeOrderingMode"; + WindowWillClose: "mac:WindowWillClose"; + WindowWillDeminiaturize: "mac:WindowWillDeminiaturize"; + WindowWillEnterFullScreen: "mac:WindowWillEnterFullScreen"; + WindowWillEnterVersionBrowser: "mac:WindowWillEnterVersionBrowser"; + WindowWillExitFullScreen: "mac:WindowWillExitFullScreen"; + WindowWillExitVersionBrowser: "mac:WindowWillExitVersionBrowser"; + WindowWillFocus: "mac:WindowWillFocus"; + WindowWillMiniaturize: "mac:WindowWillMiniaturize"; + WindowWillMove: "mac:WindowWillMove"; + WindowWillOrderOffScreen: "mac:WindowWillOrderOffScreen"; + WindowWillOrderOnScreen: "mac:WindowWillOrderOnScreen"; + WindowWillResignMain: "mac:WindowWillResignMain"; + WindowWillResize: "mac:WindowWillResize"; + WindowWillUnfocus: "mac:WindowWillUnfocus"; + WindowWillUpdate: "mac:WindowWillUpdate"; + WindowWillUpdateAlpha: "mac:WindowWillUpdateAlpha"; + WindowWillUpdateCollectionBehavior: "mac:WindowWillUpdateCollectionBehavior"; + WindowWillUpdateCollectionProperties: "mac:WindowWillUpdateCollectionProperties"; + WindowWillUpdateShadow: "mac:WindowWillUpdateShadow"; + WindowWillUpdateTitle: "mac:WindowWillUpdateTitle"; + WindowWillUpdateToolbar: "mac:WindowWillUpdateToolbar"; + WindowWillUpdateVisibility: "mac:WindowWillUpdateVisibility"; + WindowWillUseStandardFrame: "mac:WindowWillUseStandardFrame"; + WindowZoomIn: "mac:WindowZoomIn"; + WindowZoomOut: "mac:WindowZoomOut"; + WindowZoomReset: "mac:WindowZoomReset"; + }>; + Linux: Readonly<{ + ApplicationStartup: "linux:ApplicationStartup"; + SystemThemeChanged: "linux:SystemThemeChanged"; + WindowDeleteEvent: "linux:WindowDeleteEvent"; + WindowDidMove: "linux:WindowDidMove"; + WindowDidResize: "linux:WindowDidResize"; + WindowFocusIn: "linux:WindowFocusIn"; + WindowFocusOut: "linux:WindowFocusOut"; + WindowLoadChanged: "linux:WindowLoadChanged"; + }>; + Common: Readonly<{ + ApplicationOpenedWithFile: "common:ApplicationOpenedWithFile"; + ApplicationStarted: "common:ApplicationStarted"; + ThemeChanged: "common:ThemeChanged"; + WindowClosing: "common:WindowClosing"; + WindowDidMove: "common:WindowDidMove"; + WindowDidResize: "common:WindowDidResize"; + WindowDPIChanged: "common:WindowDPIChanged"; + WindowFilesDropped: "common:WindowFilesDropped"; + WindowFocus: "common:WindowFocus"; + WindowFullscreen: "common:WindowFullscreen"; + WindowHide: "common:WindowHide"; + WindowLostFocus: "common:WindowLostFocus"; + WindowMaximise: "common:WindowMaximise"; + WindowMinimise: "common:WindowMinimise"; + WindowRestore: "common:WindowRestore"; + WindowRuntimeReady: "common:WindowRuntimeReady"; + WindowShow: "common:WindowShow"; + WindowUnFullscreen: "common:WindowUnFullscreen"; + WindowUnMaximise: "common:WindowUnMaximise"; + WindowUnMinimise: "common:WindowUnMinimise"; + WindowZoom: "common:WindowZoom"; + WindowZoomIn: "common:WindowZoomIn"; + WindowZoomOut: "common:WindowZoomOut"; + WindowZoomReset: "common:WindowZoomReset"; + }>; +}>; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/events.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/events.d.ts index 7cded34c5..11d03e1aa 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/events.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/events.d.ts @@ -1,271 +1,66 @@ -export function setup(): void; +export { Types } from "./event_types.js"; +/** + * The type of handlers for a given event. + */ +export type Callback = (ev: WailsEvent) => void; +/** + * Represents a system event or a custom event emitted through wails-provided facilities. + */ +export declare class WailsEvent { + /** + * The name of the event. + */ + name: string; + /** + * Optional data associated with the emitted event. + */ + data: any; + /** + * Name of the originating window. Omitted for application events. + * Will be overridden if set manually. + */ + sender?: string; + constructor(name: string, data?: any); +} /** * Register a callback function to be called multiple times for a specific event. * - * @param {string} eventName - The name of the event to register the callback for. - * @param {function} callback - The callback function to be called when the event is triggered. - * @param {number} maxCallbacks - The maximum number of times the callback can be called for the event. Once the maximum number is reached, the callback will no longer be called. - * - @return {function} - A function that, when called, will unregister the callback from the event. + * @param eventName - The name of the event to register the callback for. + * @param callback - The callback function to be called when the event is triggered. + * @param maxCallbacks - The maximum number of times the callback can be called for the event. Once the maximum number is reached, the callback will no longer be called. + * @returns A function that, when called, will unregister the callback from the event. */ -export function OnMultiple(eventName: string, callback: Function, maxCallbacks: number): Function; +export declare function OnMultiple(eventName: string, callback: Callback, maxCallbacks: number): () => void; /** * Registers a callback function to be executed when the specified event occurs. * - * @param {string} eventName - The name of the event. - * @param {function} callback - The callback function to be executed. It takes no parameters. - * @return {function} - A function that, when called, will unregister the callback from the event. */ -export function On(eventName: string, callback: Function): Function; + * @param eventName - The name of the event to register the callback for. + * @param callback - The callback function to be called when the event is triggered. + * @returns A function that, when called, will unregister the callback from the event. + */ +export declare function On(eventName: string, callback: Callback): () => void; /** * Registers a callback function to be executed only once for the specified event. * - * @param {string} eventName - The name of the event. - * @param {function} callback - The function to be executed when the event occurs. - * @return {function} - A function that, when called, will unregister the callback from the event. + * @param eventName - The name of the event to register the callback for. + * @param callback - The callback function to be called when the event is triggered. + * @returns A function that, when called, will unregister the callback from the event. */ -export function Once(eventName: string, callback: Function): Function; +export declare function Once(eventName: string, callback: Callback): () => void; /** * Removes event listeners for the specified event names. * - * @param {string} eventName - The name of the event to remove listeners for. - * @param {...string} additionalEventNames - Additional event names to remove listeners for. - * @return {undefined} + * @param eventNames - The name of the events to remove listeners for. */ -export function Off(eventName: string, ...additionalEventNames: string[]): undefined; +export declare function Off(...eventNames: [string, ...string[]]): void; /** * Removes all event listeners. - * - * @function OffAll - * @returns {void} */ -export function OffAll(): void; +export declare function OffAll(): void; /** - * Emits an event using the given event name. + * Emits the given event. * - * @param {WailsEvent} event - The name of the event to emit. - * @returns {any} - The result of the emitted event. + * @param event - The name of the event to emit. + * @returns A promise that will be fulfilled once the event has been emitted. */ -export function Emit(event: WailsEvent): any; -export const Types: { - Windows: { - APMPowerSettingChange: string; - APMPowerStatusChange: string; - APMResumeAutomatic: string; - APMResumeSuspend: string; - APMSuspend: string; - ApplicationStarted: string; - SystemThemeChanged: string; - WebViewNavigationCompleted: string; - WindowActive: string; - WindowBackgroundErase: string; - WindowClickActive: string; - WindowClosing: string; - WindowDidMove: string; - WindowDidResize: string; - WindowDPIChanged: string; - WindowDragDrop: string; - WindowDragEnter: string; - WindowDragLeave: string; - WindowDragOver: string; - WindowEndMove: string; - WindowEndResize: string; - WindowFullscreen: string; - WindowHide: string; - WindowInactive: string; - WindowKeyDown: string; - WindowKeyUp: string; - WindowKillFocus: string; - WindowNonClientHit: string; - WindowNonClientMouseDown: string; - WindowNonClientMouseLeave: string; - WindowNonClientMouseMove: string; - WindowNonClientMouseUp: string; - WindowPaint: string; - WindowRestore: string; - WindowSetFocus: string; - WindowShow: string; - WindowStartMove: string; - WindowStartResize: string; - WindowUnFullscreen: string; - WindowZOrderChanged: string; - WindowMinimise: string; - WindowUnMinimise: string; - WindowMaximise: string; - WindowUnMaximise: string; - }; - Mac: { - ApplicationDidBecomeActive: string; - ApplicationDidChangeBackingProperties: string; - ApplicationDidChangeEffectiveAppearance: string; - ApplicationDidChangeIcon: string; - ApplicationDidChangeOcclusionState: string; - ApplicationDidChangeScreenParameters: string; - ApplicationDidChangeStatusBarFrame: string; - ApplicationDidChangeStatusBarOrientation: string; - ApplicationDidChangeTheme: string; - ApplicationDidFinishLaunching: string; - ApplicationDidHide: string; - ApplicationDidResignActive: string; - ApplicationDidUnhide: string; - ApplicationDidUpdate: string; - ApplicationShouldHandleReopen: string; - ApplicationWillBecomeActive: string; - ApplicationWillFinishLaunching: string; - ApplicationWillHide: string; - ApplicationWillResignActive: string; - ApplicationWillTerminate: string; - ApplicationWillUnhide: string; - ApplicationWillUpdate: string; - MenuDidAddItem: string; - MenuDidBeginTracking: string; - MenuDidClose: string; - MenuDidDisplayItem: string; - MenuDidEndTracking: string; - MenuDidHighlightItem: string; - MenuDidOpen: string; - MenuDidPopUp: string; - MenuDidRemoveItem: string; - MenuDidSendAction: string; - MenuDidSendActionToItem: string; - MenuDidUpdate: string; - MenuWillAddItem: string; - MenuWillBeginTracking: string; - MenuWillDisplayItem: string; - MenuWillEndTracking: string; - MenuWillHighlightItem: string; - MenuWillOpen: string; - MenuWillPopUp: string; - MenuWillRemoveItem: string; - MenuWillSendAction: string; - MenuWillSendActionToItem: string; - MenuWillUpdate: string; - WebViewDidCommitNavigation: string; - WebViewDidFinishNavigation: string; - WebViewDidReceiveServerRedirectForProvisionalNavigation: string; - WebViewDidStartProvisionalNavigation: string; - WindowDidBecomeKey: string; - WindowDidBecomeMain: string; - WindowDidBeginSheet: string; - WindowDidChangeAlpha: string; - WindowDidChangeBackingLocation: string; - WindowDidChangeBackingProperties: string; - WindowDidChangeCollectionBehavior: string; - WindowDidChangeEffectiveAppearance: string; - WindowDidChangeOcclusionState: string; - WindowDidChangeOrderingMode: string; - WindowDidChangeScreen: string; - WindowDidChangeScreenParameters: string; - WindowDidChangeScreenProfile: string; - WindowDidChangeScreenSpace: string; - WindowDidChangeScreenSpaceProperties: string; - WindowDidChangeSharingType: string; - WindowDidChangeSpace: string; - WindowDidChangeSpaceOrderingMode: string; - WindowDidChangeTitle: string; - WindowDidChangeToolbar: string; - WindowDidDeminiaturize: string; - WindowDidEndSheet: string; - WindowDidEnterFullScreen: string; - WindowDidEnterVersionBrowser: string; - WindowDidExitFullScreen: string; - WindowDidExitVersionBrowser: string; - WindowDidExpose: string; - WindowDidFocus: string; - WindowDidMiniaturize: string; - WindowDidMove: string; - WindowDidOrderOffScreen: string; - WindowDidOrderOnScreen: string; - WindowDidResignKey: string; - WindowDidResignMain: string; - WindowDidResize: string; - WindowDidUpdate: string; - WindowDidUpdateAlpha: string; - WindowDidUpdateCollectionBehavior: string; - WindowDidUpdateCollectionProperties: string; - WindowDidUpdateShadow: string; - WindowDidUpdateTitle: string; - WindowDidUpdateToolbar: string; - WindowDidZoom: string; - WindowFileDraggingEntered: string; - WindowFileDraggingExited: string; - WindowFileDraggingPerformed: string; - WindowHide: string; - WindowMaximise: string; - WindowUnMaximise: string; - WindowMinimise: string; - WindowUnMinimise: string; - WindowShouldClose: string; - WindowShow: string; - WindowWillBecomeKey: string; - WindowWillBecomeMain: string; - WindowWillBeginSheet: string; - WindowWillChangeOrderingMode: string; - WindowWillClose: string; - WindowWillDeminiaturize: string; - WindowWillEnterFullScreen: string; - WindowWillEnterVersionBrowser: string; - WindowWillExitFullScreen: string; - WindowWillExitVersionBrowser: string; - WindowWillFocus: string; - WindowWillMiniaturize: string; - WindowWillMove: string; - WindowWillOrderOffScreen: string; - WindowWillOrderOnScreen: string; - WindowWillResignMain: string; - WindowWillResize: string; - WindowWillUnfocus: string; - WindowWillUpdate: string; - WindowWillUpdateAlpha: string; - WindowWillUpdateCollectionBehavior: string; - WindowWillUpdateCollectionProperties: string; - WindowWillUpdateShadow: string; - WindowWillUpdateTitle: string; - WindowWillUpdateToolbar: string; - WindowWillUpdateVisibility: string; - WindowWillUseStandardFrame: string; - WindowZoomIn: string; - WindowZoomOut: string; - WindowZoomReset: string; - }; - Linux: { - ApplicationStartup: string; - SystemThemeChanged: string; - WindowDeleteEvent: string; - WindowDidMove: string; - WindowDidResize: string; - WindowFocusIn: string; - WindowFocusOut: string; - WindowLoadChanged: string; - }; - Common: { - ApplicationOpenedWithFile: string; - ApplicationStarted: string; - ThemeChanged: string; - WindowClosing: string; - WindowDidMove: string; - WindowDidResize: string; - WindowDPIChanged: string; - WindowFilesDropped: string; - WindowFocus: string; - WindowFullscreen: string; - WindowHide: string; - WindowLostFocus: string; - WindowMaximise: string; - WindowMinimise: string; - WindowRestore: string; - WindowRuntimeReady: string; - WindowShow: string; - WindowUnFullscreen: string; - WindowUnMaximise: string; - WindowUnMinimise: string; - WindowZoom: string; - WindowZoomIn: string; - WindowZoomOut: string; - WindowZoomReset: string; - }; -}; -export class WailsEvent { - constructor(name: any, data?: any); - name: any; - data: any; -} +export declare function Emit(event: WailsEvent): Promise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/flags.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/flags.d.ts index 212436d04..272aa9193 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/flags.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/flags.d.ts @@ -1,7 +1,7 @@ /** * Retrieves the value associated with the specified key from the flag map. * - * @param {string} keyString - The key to retrieve the value for. - * @return {*} - The value associated with the specified key. + * @param key - The key to retrieve the value for. + * @return The value associated with the specified key. */ -export function GetFlag(keyString: string): any; +export declare function GetFlag(key: string): any; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/index.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/index.d.ts index c1dc50fad..54dca2206 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/index.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/index.d.ts @@ -1,14 +1,16 @@ -export function init(): void; -import * as Application from "./application"; -import * as Browser from "./browser"; -import * as Call from "./calls"; -import * as Clipboard from "./clipboard"; -import * as Create from "./create"; -import * as Dialogs from "./dialogs"; -import * as Events from "./events"; -import * as Flags from "./flags"; -import * as Screens from "./screens"; -import * as System from "./system"; -import Window from "./window"; -import * as WML from "./wml"; -export { Application, Browser, Call, Clipboard, Create, Dialogs, Events, Flags, Screens, System, Window, WML }; +import "./contextmenu.js"; +import "./drag.js"; +import * as Application from "./application.js"; +import * as Browser from "./browser.js"; +import * as Call from "./calls.js"; +import * as Clipboard from "./clipboard.js"; +import * as Create from "./create.js"; +import * as Dialogs from "./dialogs.js"; +import * as Events from "./events.js"; +import * as Flags from "./flags.js"; +import * as Screens from "./screens.js"; +import * as System from "./system.js"; +import Window from "./window.js"; +import * as WML from "./wml.js"; +export { Application, Browser, Call, Clipboard, Dialogs, Events, Flags, Screens, System, Window, WML }; +export * from "./cancellable.js"; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/listener.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/listener.d.ts new file mode 100644 index 000000000..75bb5c458 --- /dev/null +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/listener.d.ts @@ -0,0 +1,9 @@ +export declare const eventListeners: Map; +export declare class Listener { + eventName: string; + callback: (data: any) => void; + maxCallbacks: number; + constructor(eventName: string, callback: (data: any) => void, maxCallbacks: number); + dispatch(data: any): boolean; +} +export declare function listenerOff(listener: Listener): void; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/nanoid.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/nanoid.d.ts index dce98a05e..a691510e5 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/nanoid.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/nanoid.d.ts @@ -1 +1 @@ -export function nanoid(size?: number): string; +export declare function nanoid(size?: number): string; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/runtime.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/runtime.d.ts index ffff3dc66..60f760628 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/runtime.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/runtime.d.ts @@ -1,30 +1,22 @@ -/** - * Creates a runtime caller function that invokes a specified method on a given object within a specified window context. - * - * @param {Object} object - The object on which the method is to be invoked. - * @param {string} windowName - The name of the window context in which the method should be called. - * @returns {Function} A runtime caller function that takes the method name and optionally arguments and invokes the method within the specified window context. - */ -export function newRuntimeCaller(object: any, windowName: string): Function; +export declare const objectNames: Readonly<{ + Call: 0; + Clipboard: 1; + Application: 2; + Events: 3; + ContextMenu: 4; + Dialog: 5; + Window: 6; + Screens: 7; + System: 8; + Browser: 9; + CancelCall: 10; +}>; +export declare let clientId: string; /** * Creates a new runtime caller with specified ID. * - * @param {number} object - The object to invoke the method on. - * @param {string} windowName - The name of the window. - * @return {Function} - The new runtime caller function. + * @param object - The object to invoke the method on. + * @param windowName - The name of the window. + * @return The new runtime caller function. */ -export function newRuntimeCallerWithID(object: number, windowName: string): Function; -export namespace objectNames { - let Call: number; - let Clipboard: number; - let Application: number; - let Events: number; - let ContextMenu: number; - let Dialog: number; - let Window: number; - let Screens: number; - let System: number; - let Browser: number; - let CancelCall: number; -} -export let clientId: string; +export declare function newRuntimeCaller(object: number, windowName?: string): (method: number, args?: any) => Promise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/screens.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/screens.d.ts index 7409875db..b4a2f622d 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/screens.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/screens.d.ts @@ -1,94 +1,60 @@ +export interface Size { + /** The width of a rectangular area. */ + Width: number; + /** The height of a rectangular area. */ + Height: number; +} +export interface Rect { + /** The X coordinate of the origin. */ + X: number; + /** The Y coordinate of the origin. */ + Y: number; + /** The width of the rectangle. */ + Width: number; + /** The height of the rectangle. */ + Height: number; +} +export interface Screen { + /** Unique identifier for the screen. */ + ID: string; + /** Human-readable name of the screen. */ + Name: string; + /** The scale factor of the screen (DPI/96). 1 = standard DPI, 2 = HiDPI (Retina), etc. */ + ScaleFactor: number; + /** The X coordinate of the screen. */ + X: number; + /** The Y coordinate of the screen. */ + Y: number; + /** Contains the width and height of the screen. */ + Size: Size; + /** Contains the bounds of the screen in terms of X, Y, Width, and Height. */ + Bounds: Rect; + /** Contains the physical bounds of the screen in terms of X, Y, Width, and Height (before scaling). */ + PhysicalBounds: Rect; + /** Contains the area of the screen that is actually usable (excluding taskbar and other system UI). */ + WorkArea: Rect; + /** Contains the physical WorkArea of the screen (before scaling). */ + PhysicalWorkArea: Rect; + /** True if this is the primary monitor selected by the user in the operating system. */ + IsPrimary: boolean; + /** The rotation of the screen. */ + Rotation: number; +} /** * Gets all screens. - * @returns {Promise} A promise that resolves to an array of Screen objects. + * + * @returns A promise that resolves to an array of Screen objects. */ -export function GetAll(): Promise; +export declare function GetAll(): Promise; /** * Gets the primary screen. - * @returns {Promise} A promise that resolves to the primary screen. + * + * @returns A promise that resolves to the primary screen. */ -export function GetPrimary(): Promise; +export declare function GetPrimary(): Promise; /** * Gets the current active screen. * - * @returns {Promise} A promise that resolves with the current active screen. + * @returns A promise that resolves with the current active screen. */ -export function GetCurrent(): Promise; -export type Size = { - /** - * - The width. - */ - Width: number; - /** - * - The height. - */ - Height: number; -}; -export type Rect = { - /** - * - The X coordinate of the origin. - */ - X: number; - /** - * - The Y coordinate of the origin. - */ - Y: number; - /** - * - The width of the rectangle. - */ - Width: number; - /** - * - The height of the rectangle. - */ - Height: number; -}; -export type Screen = { - /** - * - Unique identifier for the screen. - */ - ID: string; - /** - * - Human readable name of the screen. - */ - Name: string; - /** - * - The scale factor of the screen (DPI/96). 1 = standard DPI, 2 = HiDPI (Retina), etc. - */ - ScaleFactor: number; - /** - * - The X coordinate of the screen. - */ - X: number; - /** - * - The Y coordinate of the screen. - */ - Y: number; - /** - * - Contains the width and height of the screen. - */ - Size: Size; - /** - * - Contains the bounds of the screen in terms of X, Y, Width, and Height. - */ - Bounds: Rect; - /** - * - Contains the physical bounds of the screen in terms of X, Y, Width, and Height (before scaling). - */ - PhysicalBounds: Rect; - /** - * - Contains the area of the screen that is actually usable (excluding taskbar and other system UI). - */ - WorkArea: Rect; - /** - * - Contains the physical WorkArea of the screen (before scaling). - */ - PhysicalWorkArea: Rect; - /** - * - True if this is the primary monitor selected by the user in the operating system. - */ - IsPrimary: boolean; - /** - * - The rotation of the screen. - */ - Rotation: number; -}; +export declare function GetCurrent(): Promise; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/system.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/system.d.ts index b3a08f200..1e1924bd3 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/system.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/system.d.ts @@ -1,112 +1,83 @@ -export function invoke(msg: any): any; +export declare function invoke(msg: any): void; /** - * @function * Retrieves the system dark mode status. - * @returns {Promise} - A promise that resolves to a boolean value indicating if the system is in dark mode. + * + * @returns A promise that resolves to a boolean value indicating if the system is in dark mode. */ -export function IsDarkMode(): Promise; +export declare function IsDarkMode(): Promise; /** * Fetches the capabilities of the application from the server. * - * @async - * @function Capabilities - * @returns {Promise} A promise that resolves to an object containing the capabilities. + * @returns A promise that resolves to an object containing the capabilities. */ -export function Capabilities(): Promise; +export declare function Capabilities(): Promise>; +export interface OSInfo { + /** The branding of the OS. */ + Branding: string; + /** The ID of the OS. */ + ID: string; + /** The name of the OS. */ + Name: string; + /** The version of the OS. */ + Version: string; +} +export interface EnvironmentInfo { + /** The architecture of the system. */ + Arch: string; + /** True if the application is running in debug mode, otherwise false. */ + Debug: boolean; + /** The operating system in use. */ + OS: string; + /** Details of the operating system. */ + OSInfo: OSInfo; + /** Additional platform information. */ + PlatformInfo: Record; +} /** - * @typedef {Object} OSInfo - * @property {string} Branding - The branding of the OS. - * @property {string} ID - The ID of the OS. - * @property {string} Name - The name of the OS. - * @property {string} Version - The version of the OS. - */ -/** - * @typedef {Object} EnvironmentInfo - * @property {string} Arch - The architecture of the system. - * @property {boolean} Debug - True if the application is running in debug mode, otherwise false. - * @property {string} OS - The operating system in use. - * @property {OSInfo} OSInfo - Details of the operating system. - * @property {Object} PlatformInfo - Additional platform information. - */ -/** - * @function * Retrieves environment details. - * @returns {Promise} - A promise that resolves to an object containing OS and system architecture. + * + * @returns A promise that resolves to an object containing OS and system architecture. */ -export function Environment(): Promise; +export declare function Environment(): Promise; /** * Checks if the current operating system is Windows. * - * @return {boolean} True if the operating system is Windows, otherwise false. + * @return True if the operating system is Windows, otherwise false. */ -export function IsWindows(): boolean; +export declare function IsWindows(): boolean; /** * Checks if the current operating system is Linux. * - * @returns {boolean} Returns true if the current operating system is Linux, false otherwise. + * @returns Returns true if the current operating system is Linux, false otherwise. */ -export function IsLinux(): boolean; +export declare function IsLinux(): boolean; /** * Checks if the current environment is a macOS operating system. * - * @returns {boolean} True if the environment is macOS, false otherwise. + * @returns True if the environment is macOS, false otherwise. */ -export function IsMac(): boolean; +export declare function IsMac(): boolean; /** * Checks if the current environment architecture is AMD64. - * @returns {boolean} True if the current environment architecture is AMD64, false otherwise. + * + * @returns True if the current environment architecture is AMD64, false otherwise. */ -export function IsAMD64(): boolean; +export declare function IsAMD64(): boolean; /** * Checks if the current architecture is ARM. * - * @returns {boolean} True if the current architecture is ARM, false otherwise. + * @returns True if the current architecture is ARM, false otherwise. */ -export function IsARM(): boolean; +export declare function IsARM(): boolean; /** * Checks if the current environment is ARM64 architecture. * - * @returns {boolean} - Returns true if the environment is ARM64 architecture, otherwise returns false. + * @returns Returns true if the environment is ARM64 architecture, otherwise returns false. */ -export function IsARM64(): boolean; -export function IsDebug(): boolean; -export type OSInfo = { - /** - * - The branding of the OS. - */ - Branding: string; - /** - * - The ID of the OS. - */ - ID: string; - /** - * - The name of the OS. - */ - Name: string; - /** - * - The version of the OS. - */ - Version: string; -}; -export type EnvironmentInfo = { - /** - * - The architecture of the system. - */ - Arch: string; - /** - * - True if the application is running in debug mode, otherwise false. - */ - Debug: boolean; - /** - * - The operating system in use. - */ - OS: string; - /** - * - Details of the operating system. - */ - OSInfo: OSInfo; - /** - * - Additional platform information. - */ - PlatformInfo: any; -}; +export declare function IsARM64(): boolean; +/** + * Reports whether the app is being run in debug mode. + * + * @returns True if the app is being run in debug mode. + */ +export declare function IsDebug(): boolean; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/utils.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/utils.d.ts index 25fa1d62a..d748a049c 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/utils.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/utils.d.ts @@ -1,14 +1,21 @@ /** * Logs a message to the console with custom formatting. - * @param {string} message - The message to be logged. - * @return {void} + * + * @param message - The message to be logged. */ -export function debugLog(message: string): void; +export declare function debugLog(message: any): void; +/** + * Checks whether the webview supports the {@link MouseEvent#buttons} property. + * Looking at you macOS High Sierra! + */ +export declare function canTrackButtons(): boolean; /** * Checks whether the browser supports removing listeners by triggering an AbortSignal - * (see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#signal) - * - * @return {boolean} + * (see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#signal). */ -export function canAbortListeners(): boolean; -export function whenReady(callback: any): void; +export declare function canAbortListeners(): boolean; +/** + * Resolves the closest HTMLElement ancestor of an event's target. + */ +export declare function eventTarget(event: Event): HTMLElement; +export declare function whenReady(callback: () => void): void; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/window.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/window.d.ts index 4a86325ce..3acecfb38 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/window.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/window.d.ts @@ -1,407 +1,292 @@ -export class Window { +import type { Screen } from "./screens.js"; +/** + * A record describing the position of a window. + */ +interface Position { + /** The horizontal position of the window. */ + x: number; + /** The vertical position of the window. */ + y: number; +} +/** + * A record describing the size of a window. + */ +interface Size { + /** The width of the window. */ + width: number; + /** The height of the window. */ + height: number; +} +declare const callerSym: unique symbol; +declare class Window { + private [callerSym]; /** * Initialises a window object with the specified name. * * @private - * @param {string} name - The name of the target window. + * @param name - The name of the target window. */ - private constructor(); + constructor(name?: string); /** * Gets the specified window. * - * @public - * @param {string} name - The name of the window to get. - * @return {Window} - The corresponding window object. + * @param name - The name of the window to get. + * @returns The corresponding window object. */ - public Get(name: string): Window; + Get(name: string): Window; /** * Returns the absolute position of the window. * - * @public - * @return {Promise} - The current absolute position of the window. + * @returns The current absolute position of the window. */ - public Position(): Promise; + Position(): Promise; /** * Centers the window on the screen. - * - * @public - * @return {Promise} */ - public Center(): Promise; + Center(): Promise; /** * Closes the window. - * - * @public - * @return {Promise} */ - public Close(): Promise; + Close(): Promise; /** * Disables min/max size constraints. - * - * @public - * @return {Promise} */ - public DisableSizeConstraints(): Promise; + DisableSizeConstraints(): Promise; /** * Enables min/max size constraints. - * - * @public - * @return {Promise} */ - public EnableSizeConstraints(): Promise; + EnableSizeConstraints(): Promise; /** * Focuses the window. - * - * @public - * @return {Promise} */ - public Focus(): Promise; + Focus(): Promise; /** * Forces the window to reload the page assets. - * - * @public - * @return {Promise} */ - public ForceReload(): Promise; + ForceReload(): Promise; /** - * Doc. - * - * @public - * @return {Promise} + * Switches the window to fullscreen mode. */ - public Fullscreen(): Promise; + Fullscreen(): Promise; /** * Returns the screen that the window is on. * - * @public - * @return {Promise} - The screen the window is currently on + * @returns The screen the window is currently on. */ - public GetScreen(): Promise; + GetScreen(): Promise; /** * Returns the current zoom level of the window. * - * @public - * @return {Promise} - The current zoom level + * @returns The current zoom level. */ - public GetZoom(): Promise; + GetZoom(): Promise; /** * Returns the height of the window. * - * @public - * @return {Promise} - The current height of the window + * @returns The current height of the window. */ - public Height(): Promise; + Height(): Promise; /** * Hides the window. - * - * @public - * @return {Promise} */ - public Hide(): Promise; + Hide(): Promise; /** * Returns true if the window is focused. * - * @public - * @return {Promise} - Whether the window is currently focused + * @returns Whether the window is currently focused. */ - public IsFocused(): Promise; + IsFocused(): Promise; /** * Returns true if the window is fullscreen. * - * @public - * @return {Promise} - Whether the window is currently fullscreen + * @returns Whether the window is currently fullscreen. */ - public IsFullscreen(): Promise; + IsFullscreen(): Promise; /** * Returns true if the window is maximised. * - * @public - * @return {Promise} - Whether the window is currently maximised + * @returns Whether the window is currently maximised. */ - public IsMaximised(): Promise; + IsMaximised(): Promise; /** * Returns true if the window is minimised. * - * @public - * @return {Promise} - Whether the window is currently minimised + * @returns Whether the window is currently minimised. */ - public IsMinimised(): Promise; + IsMinimised(): Promise; /** * Maximises the window. - * - * @public - * @return {Promise} */ - public Maximise(): Promise; + Maximise(): Promise; /** * Minimises the window. - * - * @public - * @return {Promise} */ - public Minimise(): Promise; + Minimise(): Promise; /** * Returns the name of the window. * - * @public - * @return {Promise} - The name of the window + * @returns The name of the window. */ - public Name(): Promise; + Name(): Promise; /** * Opens the development tools pane. - * - * @public - * @return {Promise} */ - public OpenDevTools(): Promise; + OpenDevTools(): Promise; /** * Returns the relative position of the window to the screen. * - * @public - * @return {Promise} - The current relative position of the window + * @returns The current relative position of the window. */ - public RelativePosition(): Promise; + RelativePosition(): Promise; /** * Reloads the page assets. - * - * @public - * @return {Promise} */ - public Reload(): Promise; + Reload(): Promise; /** * Returns true if the window is resizable. * - * @public - * @return {Promise} - Whether the window is currently resizable + * @returns Whether the window is currently resizable. */ - public Resizable(): Promise; + Resizable(): Promise; /** * Restores the window to its previous state if it was previously minimised, maximised or fullscreen. - * - * @public - * @return {Promise} */ - public Restore(): Promise; + Restore(): Promise; /** * Sets the absolute position of the window. * - * @public - * @param {number} x - The desired horizontal absolute position of the window - * @param {number} y - The desired vertical absolute position of the window - * @return {Promise} + * @param x - The desired horizontal absolute position of the window. + * @param y - The desired vertical absolute position of the window. */ - public SetPosition(x: number, y: number): Promise; + SetPosition(x: number, y: number): Promise; /** * Sets the window to be always on top. * - * @public - * @param {boolean} alwaysOnTop - Whether the window should stay on top - * @return {Promise} + * @param alwaysOnTop - Whether the window should stay on top. */ - public SetAlwaysOnTop(alwaysOnTop: boolean): Promise; + SetAlwaysOnTop(alwaysOnTop: boolean): Promise; /** * Sets the background colour of the window. * - * @public - * @param {number} r - The desired red component of the window background - * @param {number} g - The desired green component of the window background - * @param {number} b - The desired blue component of the window background - * @param {number} a - The desired alpha component of the window background - * @return {Promise} + * @param r - The desired red component of the window background. + * @param g - The desired green component of the window background. + * @param b - The desired blue component of the window background. + * @param a - The desired alpha component of the window background. */ - public SetBackgroundColour(r: number, g: number, b: number, a: number): Promise; + SetBackgroundColour(r: number, g: number, b: number, a: number): Promise; /** * Removes the window frame and title bar. * - * @public - * @param {boolean} frameless - Whether the window should be frameless - * @return {Promise} + * @param frameless - Whether the window should be frameless. */ - public SetFrameless(frameless: boolean): Promise; + SetFrameless(frameless: boolean): Promise; /** * Disables the system fullscreen button. * - * @public - * @param {boolean} enabled - Whether the fullscreen button should be enabled - * @return {Promise} + * @param enabled - Whether the fullscreen button should be enabled. */ - public SetFullscreenButtonEnabled(enabled: boolean): Promise; + SetFullscreenButtonEnabled(enabled: boolean): Promise; /** * Sets the maximum size of the window. * - * @public - * @param {number} width - The desired maximum width of the window - * @param {number} height - The desired maximum height of the window - * @return {Promise} + * @param width - The desired maximum width of the window. + * @param height - The desired maximum height of the window. */ - public SetMaxSize(width: number, height: number): Promise; + SetMaxSize(width: number, height: number): Promise; /** * Sets the minimum size of the window. * - * @public - * @param {number} width - The desired minimum width of the window - * @param {number} height - The desired minimum height of the window - * @return {Promise} + * @param width - The desired minimum width of the window. + * @param height - The desired minimum height of the window. */ - public SetMinSize(width: number, height: number): Promise; + SetMinSize(width: number, height: number): Promise; /** * Sets the relative position of the window to the screen. * - * @public - * @param {number} x - The desired horizontal relative position of the window - * @param {number} y - The desired vertical relative position of the window - * @return {Promise} + * @param x - The desired horizontal relative position of the window. + * @param y - The desired vertical relative position of the window. */ - public SetRelativePosition(x: number, y: number): Promise; + SetRelativePosition(x: number, y: number): Promise; /** * Sets whether the window is resizable. * - * @public - * @param {boolean} resizable - Whether the window should be resizable - * @return {Promise} + * @param resizable - Whether the window should be resizable. */ - public SetResizable(resizable: boolean): Promise; + SetResizable(resizable: boolean): Promise; /** * Sets the size of the window. * - * @public - * @param {number} width - The desired width of the window - * @param {number} height - The desired height of the window - * @return {Promise} + * @param width - The desired width of the window. + * @param height - The desired height of the window. */ - public SetSize(width: number, height: number): Promise; + SetSize(width: number, height: number): Promise; /** * Sets the title of the window. * - * @public - * @param {string} title - The desired title of the window - * @return {Promise} + * @param title - The desired title of the window. */ - public SetTitle(title: string): Promise; + SetTitle(title: string): Promise; /** * Sets the zoom level of the window. * - * @public - * @param {number} zoom - The desired zoom level - * @return {Promise} + * @param zoom - The desired zoom level. */ - public SetZoom(zoom: number): Promise; + SetZoom(zoom: number): Promise; /** * Shows the window. - * - * @public - * @return {Promise} */ - public Show(): Promise; + Show(): Promise; /** * Returns the size of the window. * - * @public - * @return {Promise} - The current size of the window + * @returns The current size of the window. */ - public Size(): Promise; + Size(): Promise; /** * Toggles the window between fullscreen and normal. - * - * @public - * @return {Promise} */ - public ToggleFullscreen(): Promise; + ToggleFullscreen(): Promise; /** * Toggles the window between maximised and normal. - * - * @public - * @return {Promise} */ - public ToggleMaximise(): Promise; + ToggleMaximise(): Promise; /** * Un-fullscreens the window. - * - * @public - * @return {Promise} */ - public UnFullscreen(): Promise; + UnFullscreen(): Promise; /** * Un-maximises the window. - * - * @public - * @return {Promise} */ - public UnMaximise(): Promise; + UnMaximise(): Promise; /** * Un-minimises the window. - * - * @public - * @return {Promise} */ - public UnMinimise(): Promise; + UnMinimise(): Promise; /** * Returns the width of the window. * - * @public - * @return {Promise} - The current width of the window + * @returns The current width of the window. */ - public Width(): Promise; + Width(): Promise; /** * Zooms the window. - * - * @public - * @return {Promise} */ - public Zoom(): Promise; + Zoom(): Promise; /** * Increases the zoom level of the webview content. - * - * @public - * @return {Promise} */ - public ZoomIn(): Promise; + ZoomIn(): Promise; /** * Decreases the zoom level of the webview content. - * - * @public - * @return {Promise} */ - public ZoomOut(): Promise; + ZoomOut(): Promise; /** * Resets the zoom level of the webview content. - * - * @public - * @return {Promise} */ - public ZoomReset(): Promise; + ZoomReset(): Promise; } -export default thisWindow; -export type Screen = import("./screens").Screen; -/** - * A record describing the position of a window. - */ -export type Position = { - /** - * - The horizontal position of the window - */ - x: number; - /** - * - The vertical position of the window - */ - y: number; -}; -/** - * A record describing the size of a window. - */ -export type Size = { - /** - * - The width of the window - */ - width: number; - /** - * - The height of the window - */ - height: number; -}; /** * The window within which the script is running. - * - * @type {Window} */ declare const thisWindow: Window; +export default thisWindow; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/wml.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/wml.d.ts index 037912e56..020a3c59d 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/wml.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/wml.d.ts @@ -1,12 +1,8 @@ /** * Schedules an automatic reload of WML to be performed as soon as the document is fully loaded. - * - * @return {void} */ -export function Enable(): void; +export declare function Enable(): void; /** * Reloads the WML page by adding necessary event listeners and browser listeners. - * - * @return {void} */ -export function Reload(): void; +export declare function Reload(): void;