diff --git a/v2/pkg/assetserver/assetserver.go b/v2/pkg/assetserver/assetserver.go index e2e0372eb..66ae69439 100644 --- a/v2/pkg/assetserver/assetserver.go +++ b/v2/pkg/assetserver/assetserver.go @@ -43,6 +43,7 @@ type AssetServer struct { runtimeHandler RuntimeHandler assetServerWebView + disableRuntime bool } func NewAssetServerMainPage(bindingsJSON string, options *options.App, servingFromDisk bool, logger Logger, runtime RuntimeAssets) (*AssetServer, error) { @@ -166,8 +167,10 @@ func (d *AssetServer) processIndexHTML(indexHTML []byte) ([]byte, error) { } } - if err := insertScriptInHead(htmlNode, runtimeJSPath); err != nil { - return nil, err + if !d.disableRuntime { + if err := insertScriptInHead(htmlNode, runtimeJSPath); err != nil { + return nil, err + } } if err := insertScriptInHead(htmlNode, ipcJSPath); err != nil { @@ -206,3 +209,7 @@ func (d *AssetServer) logError(message string, args ...interface{}) { d.logger.Error("[AssetServer] "+message, args...) } } + +func (d *AssetServer) DisableRuntime() { + d.disableRuntime = true +} diff --git a/v3/TODO.md b/v3/TODO.md index 1652fb1e6..40b89e1b1 100644 --- a/v3/TODO.md +++ b/v3/TODO.md @@ -31,7 +31,8 @@ Informal and incomplete list of things needed in v3. - [x] Screens - [x] Clipboard - [x] Application -- [ ] Create `.d.ts` file +- [ ] Move to typescript module +- [ ] Move WML to plugin ## Templates diff --git a/v3/internal/api/.gitignore b/v3/internal/api/.gitignore new file mode 100644 index 000000000..76add878f --- /dev/null +++ b/v3/internal/api/.gitignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/v3/internal/api/build.js b/v3/internal/api/build.js new file mode 100644 index 000000000..0631e826a --- /dev/null +++ b/v3/internal/api/build.js @@ -0,0 +1,28 @@ + +// jshint esversion: 9 +const { build } = require("esbuild"); +const { dependencies, peerDependencies } = require('./package.json'); + +let deps = dependencies || {}; +let peerDeps = peerDependencies || {}; + +const sharedConfig = { + entryPoints: ["src/index.ts"], + bundle: true, + minify: true, + external: Object.keys(deps).concat(Object.keys(peerDeps)), +}; + +build({ + ...sharedConfig, + platform: 'node', // for CJS + outfile: "dist/index.js", +}); + +build({ + ...sharedConfig, + outfile: "dist/index.esm.js", + platform: 'neutral', // for ESM + format: "esm", +}); + diff --git a/v3/internal/api/docs/api.json b/v3/internal/api/docs/api.json new file mode 100644 index 000000000..4cc4d3969 --- /dev/null +++ b/v3/internal/api/docs/api.json @@ -0,0 +1,4547 @@ +{ + "id": 0, + "name": "api", + "kind": 1, + "flags": {}, + "originalName": "", + "children": [ + { + "id": 1, + "name": "application", + "kind": 2, + "kindString": "Module", + "flags": {}, + "children": [ + { + "id": 2, + "name": "Hide", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "application.ts", + "line": 17, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/application.ts#L17" + } + ], + "signatures": [ + { + "id": 3, + "name": "Hide", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 6, + "name": "Quit", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "application.ts", + "line": 25, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/application.ts#L25" + } + ], + "signatures": [ + { + "id": 7, + "name": "Quit", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 4, + "name": "Show", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "application.ts", + "line": 21, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/application.ts#L21" + } + ], + "signatures": [ + { + "id": 5, + "name": "Show", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "children": [ + 2, + 6, + 4 + ] + } + ], + "sources": [ + { + "fileName": "application.ts", + "line": 13, + "character": 0, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/application.ts#L13" + } + ] + }, + { + "id": 8, + "name": "clipboard", + "kind": 2, + "kindString": "Module", + "flags": {}, + "children": [ + { + "id": 9, + "name": "SetText", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "clipboard.ts", + "line": 18, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/clipboard.ts#L18" + } + ], + "signatures": [ + { + "id": 10, + "name": "SetText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 11, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 12, + "name": "Text", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "clipboard.ts", + "line": 23, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/clipboard.ts#L23" + } + ], + "signatures": [ + { + "id": 13, + "name": "Text", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "children": [ + 9, + 12 + ] + } + ], + "sources": [ + { + "fileName": "clipboard.ts", + "line": 13, + "character": 0, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/clipboard.ts#L13" + } + ] + }, + { + "id": 14, + "name": "dialogs", + "kind": 2, + "kindString": "Module", + "flags": {}, + "children": [ + { + "id": 42, + "name": "DialogType", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 46, + "name": "ErrorDialog", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 67, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L67" + } + ], + "type": { + "type": "literal", + "value": 3 + } + }, + { + "id": 43, + "name": "InfoDialog", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 64, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L64" + } + ], + "type": { + "type": "literal", + "value": 0 + } + }, + { + "id": 47, + "name": "OpenDirectoryDialog", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 68, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L68" + } + ], + "type": { + "type": "literal", + "value": 4 + } + }, + { + "id": 44, + "name": "QuestionDialog", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 65, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L65" + } + ], + "type": { + "type": "literal", + "value": 1 + } + }, + { + "id": 45, + "name": "WarningDialog", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 66, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L66" + } + ], + "type": { + "type": "literal", + "value": 2 + } + } + ], + "groups": [ + { + "title": "Enumeration Members", + "children": [ + 46, + 43, + 47, + 44, + 45 + ] + } + ], + "sources": [ + { + "fileName": "dialogs.ts", + "line": 63, + "character": 12, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L63" + } + ] + }, + { + "id": 48, + "name": "Button", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 50, + "name": "IsCancel", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 74, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L74" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 51, + "name": "IsDefault", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 75, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L75" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 49, + "name": "Label", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 73, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L73" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 50, + 51, + 49 + ] + } + ], + "sources": [ + { + "fileName": "dialogs.ts", + "line": 72, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L72" + } + ] + }, + { + "id": 73, + "name": "FileFilter", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 74, + "name": "DisplayName", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 107, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L107" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 75, + "name": "Pattern", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 108, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L108" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 74, + 75 + ] + } + ], + "sources": [ + { + "fileName": "dialogs.ts", + "line": 106, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L106" + } + ] + }, + { + "id": 52, + "name": "MessageDialogOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 56, + "name": "Buttons", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 83, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L83" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 48, + "name": "Button" + } + } + }, + { + "id": 53, + "name": "DialogType", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 80, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L80" + } + ], + "type": { + "type": "reference", + "id": 42, + "name": "DialogType" + } + }, + { + "id": 55, + "name": "Message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 82, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L82" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 54, + "name": "Title", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 81, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L81" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 56, + 53, + 55, + 54 + ] + } + ], + "sources": [ + { + "fileName": "dialogs.ts", + "line": 79, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L79" + } + ] + }, + { + "id": 57, + "name": "OpenFileDialogOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 63, + "name": "AllowsMultipleSelection", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 93, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L93" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 67, + "name": "AllowsOtherFileTypes", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 97, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L97" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 71, + "name": "ButtonText", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 102, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L102" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 58, + "name": "CanChooseDirectories", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 88, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L88" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 59, + "name": "CanChooseFiles", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 89, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L89" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 60, + "name": "CanCreateDirectories", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 90, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L90" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 65, + "name": "CanSelectHiddenExtension", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 95, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L95" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 72, + "name": "Directory", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 103, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L103" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 68, + "name": "Filters", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 98, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L98" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 73, + "name": "FileFilter" + } + } + }, + { + "id": 64, + "name": "HideExtension", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 94, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L94" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 70, + "name": "Message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 101, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L101" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 62, + "name": "ResolvesAliases", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 92, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L92" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 61, + "name": "ShowHiddenFiles", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 91, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L91" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 69, + "name": "Title", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 100, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L100" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 66, + "name": "TreatsFilePackagesAsDirectories", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 96, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L96" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 63, + 67, + 71, + 58, + 59, + 60, + 65, + 72, + 68, + 64, + 70, + 62, + 61, + 69, + 66 + ] + } + ], + "sources": [ + { + "fileName": "dialogs.ts", + "line": 87, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L87" + } + ] + }, + { + "id": 76, + "name": "SaveFileDialogOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 80, + "name": "AllowOtherFileTypes", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 115, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L115" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 86, + "name": "ButtonText", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 121, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L121" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 77, + "name": "CanCreateDirectories", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 112, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L112" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 79, + "name": "CanSelectHiddenExtension", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 114, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L114" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 84, + "name": "Directory", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 119, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L119" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 85, + "name": "Filename", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 120, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L120" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 81, + "name": "HideExtension", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 116, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L116" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 83, + "name": "Message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 118, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L118" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 78, + "name": "ShowHiddenFiles", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 113, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L113" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 82, + "name": "TreatsFilePackagesAsDirectories", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 117, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L117" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 80, + 86, + 77, + 79, + 84, + 85, + 81, + 83, + 78, + 82 + ] + } + ], + "sources": [ + { + "fileName": "dialogs.ts", + "line": 111, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L111" + } + ] + }, + { + "id": 30, + "name": "Error", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 132, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L132" + } + ], + "signatures": [ + { + "id": 31, + "name": "Error", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 32, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 52, + "name": "MessageDialogOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 24, + "name": "Info", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 124, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L124" + } + ], + "signatures": [ + { + "id": 25, + "name": "Info", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 26, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 52, + "name": "MessageDialogOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 36, + "name": "OpenFile", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 140, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L140" + } + ], + "signatures": [ + { + "id": 37, + "name": "OpenFile", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 38, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 57, + "name": "OpenFileDialogOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 33, + "name": "Question", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 136, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L136" + } + ], + "signatures": [ + { + "id": 34, + "name": "Question", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 35, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 52, + "name": "MessageDialogOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 39, + "name": "SaveFile", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 144, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L144" + } + ], + "signatures": [ + { + "id": 40, + "name": "SaveFile", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 41, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 76, + "name": "SaveFileDialogOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 27, + "name": "Warning", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 128, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L128" + } + ], + "signatures": [ + { + "id": 28, + "name": "Warning", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 29, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 52, + "name": "MessageDialogOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 15, + "name": "dialogCallback", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 29, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L29" + } + ], + "signatures": [ + { + "id": 16, + "name": "dialogCallback", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 17, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 18, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 19, + "name": "isJSON", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 20, + "name": "dialogErrorCallback", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "dialogs.ts", + "line": 41, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L41" + } + ], + "signatures": [ + { + "id": 21, + "name": "dialogErrorCallback", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 22, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 23, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Enumerations", + "children": [ + 42 + ] + }, + { + "title": "Interfaces", + "children": [ + 48, + 73, + 52, + 57, + 76 + ] + }, + { + "title": "Functions", + "children": [ + 30, + 24, + 36, + 33, + 39, + 27, + 15, + 20 + ] + } + ], + "sources": [ + { + "fileName": "dialogs.ts", + "line": 13, + "character": 0, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/dialogs.ts#L13" + } + ] + }, + { + "id": 87, + "name": "events", + "kind": 2, + "kindString": "Module", + "flags": {}, + "children": [ + { + "id": 128, + "name": "CustomEvent", + "kind": 128, + "kindString": "Class", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "CustomEvent defines a custom event. It is passed to event listeners." + } + ] + }, + "children": [ + { + "id": 129, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 67, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L67" + } + ], + "signatures": [ + { + "id": 130, + "name": "new CustomEvent", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Creates an instance of CustomEvent." + } + ], + "blockTags": [ + { + "tag": "@memberof", + "content": [ + { + "kind": "text", + "text": "CustomEvent" + } + ] + } + ] + }, + "parameters": [ + { + "id": 131, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Name of the event" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 132, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Data associated with the event" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "id": 128, + "name": "CustomEvent" + } + } + ] + }, + { + "id": 134, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 60, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L60" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 133, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 59, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L59" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Constructors", + "children": [ + 129 + ] + }, + { + "title": "Properties", + "children": [ + 134, + 133 + ] + } + ], + "sources": [ + { + "fileName": "events.ts", + "line": 58, + "character": 13, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L58" + } + ] + }, + { + "id": 135, + "name": "eventListeners", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "events.ts", + "line": 73, + "character": 13, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L73" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Map", + "qualifiedName": "Map", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 125, + "name": "Emit", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 190, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L190" + } + ], + "signatures": [ + { + "id": 126, + "name": "Emit", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 127, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 128, + "name": "CustomEvent" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 119, + "name": "Off", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 171, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L171" + } + ], + "signatures": [ + { + "id": 120, + "name": "Off", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Off unregisters a listener previously registered with On,\noptionally multiple listeners can be unregistered via " + }, + { + "kind": "code", + "text": "`additionalEventNames`" + }, + { + "kind": "text", + "text": "\n\n[v3 CHANGE] Off only unregisters listeners within the current window" + } + ] + }, + "parameters": [ + { + "id": 121, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 122, + "name": "additionalEventNames", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 123, + "name": "OffAll", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 183, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L183" + } + ], + "signatures": [ + { + "id": 124, + "name": "OffAll", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "OffAll unregisters all listeners\n[v3 CHANGE] OffAll only unregisters listeners within the current window" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 98, + "name": "On", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 100, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L100" + } + ], + "signatures": [ + { + "id": 99, + "name": "On", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Registers an event listener that will be invoked every time the event is emitted" + } + ], + "blockTags": [ + { + "tag": "@export", + "content": [] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A function to cancel the listener" + } + ] + } + ] + }, + "parameters": [ + { + "id": 100, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 101, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 102, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 100, + "character": 48, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L100" + } + ], + "signatures": [ + { + "id": 103, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 104, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 128, + "name": "CustomEvent" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 105, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 89, + "character": 11, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L89" + } + ], + "signatures": [ + { + "id": 106, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ] + }, + { + "id": 88, + "name": "OnMultiple", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 84, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L84" + } + ], + "signatures": [ + { + "id": 89, + "name": "OnMultiple", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Registers an event listener that will be invoked " + }, + { + "kind": "code", + "text": "`maxCallbacks`" + }, + { + "kind": "text", + "text": " times before being destroyed" + } + ], + "blockTags": [ + { + "tag": "@export", + "content": [] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A function to cancel the listener" + } + ] + } + ] + }, + "parameters": [ + { + "id": 90, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 91, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 92, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 84, + "character": 56, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L84" + } + ], + "signatures": [ + { + "id": 93, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 94, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 128, + "name": "CustomEvent" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 95, + "name": "maxCallbacks", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 96, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 89, + "character": 11, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L89" + } + ], + "signatures": [ + { + "id": 97, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ] + }, + { + "id": 107, + "name": "Once", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 112, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L112" + } + ], + "signatures": [ + { + "id": 108, + "name": "Once", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Registers an event listener that will be invoked once then destroyed" + } + ], + "blockTags": [ + { + "tag": "@export", + "content": [] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A function to cancel the listener" + } + ] + } + ] + }, + "parameters": [ + { + "id": 109, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 110, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 111, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 112, + "character": 50, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L112" + } + ], + "signatures": [ + { + "id": 112, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 113, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 128, + "name": "CustomEvent" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 114, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 89, + "character": 11, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L89" + } + ], + "signatures": [ + { + "id": 115, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ] + }, + { + "id": 116, + "name": "dispatchCustomEvent", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "events.ts", + "line": 138, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L138" + } + ], + "signatures": [ + { + "id": 117, + "name": "dispatchCustomEvent", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dispatches an event to all listeners" + } + ], + "blockTags": [ + { + "tag": "@export", + "content": [] + } + ] + }, + "parameters": [ + { + "id": 118, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 128, + "name": "CustomEvent" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "children": [ + 128 + ] + }, + { + "title": "Variables", + "children": [ + 135 + ] + }, + { + "title": "Functions", + "children": [ + 125, + 119, + 123, + 98, + 88, + 107, + 116 + ] + } + ], + "sources": [ + { + "fileName": "events.ts", + "line": 13, + "character": 0, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/events.ts#L13" + } + ] + }, + { + "id": 136, + "name": "screens", + "kind": 2, + "kindString": "Module", + "flags": {}, + "children": [ + { + "id": 154, + "name": "Rect", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 158, + "name": "Height", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 36, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L36" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 157, + "name": "Width", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 35, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L35" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 155, + "name": "X", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 33, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L33" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 156, + "name": "Y", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 34, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L34" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 158, + 157, + 155, + 156 + ] + } + ], + "sources": [ + { + "fileName": "screens.ts", + "line": 31, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L31" + } + ] + }, + { + "id": 143, + "name": "Screen", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 150, + "name": "Bounds", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 25, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L25" + } + ], + "type": { + "type": "reference", + "id": 154, + "name": "Rect" + } + }, + { + "id": 144, + "name": "ID", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 19, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L19" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 152, + "name": "IsPrimary", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 27, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L27" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 145, + "name": "Name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 20, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 153, + "name": "Rotation", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 28, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L28" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 146, + "name": "Scale", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 21, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L21" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 149, + "name": "Size", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 24, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L24" + } + ], + "type": { + "type": "reference", + "id": 159, + "name": "Size" + } + }, + { + "id": 151, + "name": "WorkArea", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 26, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L26" + } + ], + "type": { + "type": "reference", + "id": 154, + "name": "Rect" + } + }, + { + "id": 147, + "name": "X", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 22, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L22" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 148, + "name": "Y", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 23, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 150, + 144, + 152, + 145, + 153, + 146, + 149, + 151, + 147, + 148 + ] + } + ], + "sources": [ + { + "fileName": "screens.ts", + "line": 17, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L17" + } + ] + }, + { + "id": 159, + "name": "Size", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 161, + "name": "Height", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 42, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L42" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 160, + "name": "Width", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 41, + "character": 4, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L41" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 161, + 160 + ] + } + ], + "sources": [ + { + "fileName": "screens.ts", + "line": 39, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L39" + } + ] + }, + { + "id": 137, + "name": "GetAll", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 46, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L46" + } + ], + "signatures": [ + { + "id": 138, + "name": "GetAll", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "id": 143, + "name": "Screen" + } + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 141, + "name": "GetCurrent", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 56, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L56" + } + ], + "signatures": [ + { + "id": 142, + "name": "GetCurrent", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 143, + "name": "Screen" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 139, + "name": "GetPrimary", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "screens.ts", + "line": 51, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L51" + } + ], + "signatures": [ + { + "id": 140, + "name": "GetPrimary", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 143, + "name": "Screen" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "children": [ + 154, + 143, + 159 + ] + }, + { + "title": "Functions", + "children": [ + 137, + 141, + 139 + ] + } + ], + "sources": [ + { + "fileName": "screens.ts", + "line": 13, + "character": 0, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/screens.ts#L13" + } + ] + }, + { + "id": 162, + "name": "window", + "kind": 2, + "kindString": "Module", + "flags": {}, + "children": [ + { + "id": 163, + "name": "newWindow", + "kind": 64, + "kindString": "Function", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 15, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L15" + } + ], + "signatures": [ + { + "id": 164, + "name": "newWindow", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 165, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 166, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 167, + "name": "Center", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 27, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L27" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 168, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 27, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L27" + } + ], + "signatures": [ + { + "id": 169, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 222, + "name": "Close", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 42, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L42" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 223, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 42, + "character": 15, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L42" + } + ], + "signatures": [ + { + "id": 224, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 174, + "name": "Fullscreen", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 29, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L29" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 175, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 29, + "character": 20, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L29" + } + ], + "signatures": [ + { + "id": 176, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 213, + "name": "Hide", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 39, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L39" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 214, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 39, + "character": 14, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L39" + } + ], + "signatures": [ + { + "id": 215, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 216, + "name": "Maximise", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 40, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L40" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 217, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 40, + "character": 18, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L40" + } + ], + "signatures": [ + { + "id": 218, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 231, + "name": "Minimise", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 45, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L45" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 232, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 45, + "character": 18, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L45" + } + ], + "signatures": [ + { + "id": 233, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 207, + "name": "Position", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 37, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L37" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 208, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 37, + "character": 18, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L37" + } + ], + "signatures": [ + { + "id": 209, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 210, + "name": "Screen", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 38, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L38" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 211, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 38, + "character": 16, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L38" + } + ], + "signatures": [ + { + "id": 212, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 198, + "name": "SetAlwaysOnTop", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 35, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L35" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 199, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 35, + "character": 24, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L35" + } + ], + "signatures": [ + { + "id": 200, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 201, + "name": "b", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 237, + "name": "SetBackgroundColour", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 47, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L47" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 238, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 47, + "character": 29, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L47" + } + ], + "signatures": [ + { + "id": 239, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 240, + "name": "r", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 241, + "name": "g", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 242, + "name": "b", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 243, + "name": "a", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 188, + "name": "SetMaxSize", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 33, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L33" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 189, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 33, + "character": 20, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L33" + } + ], + "signatures": [ + { + "id": 190, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 191, + "name": "width", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 192, + "name": "height", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 193, + "name": "SetMinSize", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 34, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L34" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 194, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 34, + "character": 20, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L34" + } + ], + "signatures": [ + { + "id": 195, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 196, + "name": "width", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 197, + "name": "height", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 202, + "name": "SetPosition", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 36, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L36" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 203, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 36, + "character": 21, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L36" + } + ], + "signatures": [ + { + "id": 204, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 205, + "name": "x", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 206, + "name": "y", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 180, + "name": "SetSize", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 31, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L31" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 181, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 31, + "character": 17, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L31" + } + ], + "signatures": [ + { + "id": 182, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 183, + "name": "width", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 184, + "name": "height", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 170, + "name": "SetTitle", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 28, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L28" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 171, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 28, + "character": 18, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L28" + } + ], + "signatures": [ + { + "id": 172, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 173, + "name": "title", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 219, + "name": "Show", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 41, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L41" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 220, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 41, + "character": 14, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L41" + } + ], + "signatures": [ + { + "id": 221, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 185, + "name": "Size", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 32, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L32" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 186, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 32, + "character": 14, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L32" + } + ], + "signatures": [ + { + "id": 187, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 225, + "name": "ToggleMaximise", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 43, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L43" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 226, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 43, + "character": 24, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L43" + } + ], + "signatures": [ + { + "id": 227, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 177, + "name": "UnFullscreen", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 30, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L30" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 178, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 30, + "character": 22, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L30" + } + ], + "signatures": [ + { + "id": 179, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 228, + "name": "UnMaximise", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 44, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L44" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 229, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 44, + "character": 20, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L44" + } + ], + "signatures": [ + { + "id": 230, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 234, + "name": "UnMinimise", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 46, + "character": 8, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L46" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 235, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "window.ts", + "line": 46, + "character": 20, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L46" + } + ], + "signatures": [ + { + "id": 236, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "qualifiedName": "Promise", + "package": "typescript" + } + } + ] + } + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 167, + 222, + 174, + 213, + 216, + 231, + 207, + 210, + 198, + 237, + 188, + 193, + 202, + 180, + 170, + 219, + 185, + 225, + 177, + 228, + 234 + ] + } + ], + "sources": [ + { + "fileName": "window.ts", + "line": 17, + "character": 11, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L17" + } + ] + } + } + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "children": [ + 163 + ] + } + ], + "sources": [ + { + "fileName": "window.ts", + "line": 13, + "character": 0, + "url": "https://github.com/wailsapp/wails/blob/130fab6c/v3/internal/api/src/window.ts#L13" + } + ] + } + ], + "groups": [ + { + "title": "Modules", + "children": [ + 1, + 8, + 14, + 87, + 136, + 162 + ] + } + ] +} \ No newline at end of file diff --git a/v3/internal/api/docs/assets/highlight.css b/v3/internal/api/docs/assets/highlight.css new file mode 100644 index 000000000..5674cf392 --- /dev/null +++ b/v3/internal/api/docs/assets/highlight.css @@ -0,0 +1,22 @@ +:root { + --light-code-background: #FFFFFF; + --dark-code-background: #1E1E1E; +} + +@media (prefers-color-scheme: light) { :root { + --code-background: var(--light-code-background); +} } + +@media (prefers-color-scheme: dark) { :root { + --code-background: var(--dark-code-background); +} } + +:root[data-theme='light'] { + --code-background: var(--light-code-background); +} + +:root[data-theme='dark'] { + --code-background: var(--dark-code-background); +} + +pre, code { background: var(--code-background); } diff --git a/v3/internal/api/docs/assets/main.js b/v3/internal/api/docs/assets/main.js new file mode 100644 index 000000000..f7c83669c --- /dev/null +++ b/v3/internal/api/docs/assets/main.js @@ -0,0 +1,58 @@ +"use strict"; +"use strict";(()=>{var Qe=Object.create;var ae=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Me=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ce(e))!Re.call(t,i)&&i!==n&&ae(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Qe(Oe(t)):{},Me(e||!t||!t.__esModule?ae(n,"default",{value:t,enumerable:!0}):n,t));var de=_e((ce,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 h=t.utils.clone(n)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(r.slice(a,o),h))}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(ou?h+=2:a==u&&(n+=r[l+1]*i[h+1],l+=2,h+=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 u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,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 l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),m=s.str.charAt(1),v;m in s.node.edges?v=s.node.edges[m]:(v=new t.TokenSet,s.node.edges[m]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+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),u=0;u1?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 ce=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});var le=[];function B(t,e){le.push({selector:e,constructor:t})}var Y=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){le.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()}ensureFocusedElementVisible(){this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null);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)}}};var I=class{constructor(e){this.el=e.el,this.app=e.app}};var J=class{constructor(){this.listeners={}}addEventListener(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)}removeEventListener(e,n){if(!(e in this.listeners))return;let r=this.listeners[e];for(let i=0,s=r.length;i{let n=Date.now();return(...r)=>{n+e-Date.now()<0&&(t(...r),n=Date.now())}};var re=class extends J{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",ne(()=>this.onScroll(),10)),window.addEventListener("resize",ne(()=>this.onResize(),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",()=>{this.hideShowToolbar()}),this.onResize(),this.onScroll()}triggerResize(){let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onScroll(){this.scrollTop=window.scrollY||0;let n=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(n),this.hideShowToolbar()}hideShowToolbar(){let n=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,n!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},R=re;R.instance=new re;var X=class extends I{constructor(n){super(n);this.anchors=[];this.index=-1;R.instance.addEventListener("resize",()=>this.onResize()),R.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substring(0,n.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let i=r.href;if(i.indexOf("#")==-1||i.substring(0,n.length)!=n)return;let s=i.substring(i.indexOf("#")+1),o=document.querySelector("a.tsd-anchor[name="+s+"]"),a=r.parentNode;!o||!a||this.anchors.push({link:a,anchor:o,position:0})}),this.onResize()}onResize(){let n;for(let i=0,s=this.anchors.length;ii.position-s.position);let r=new CustomEvent("scroll",{detail:{scrollTop:R.instance.scrollTop}});this.onScroll(r)}onScroll(n){let r=n.detail.scrollTop+5,i=this.anchors,s=i.length-1,o=this.index;for(;o>-1&&i[o].position>r;)o-=1;for(;o-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=o,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ue=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var me=De(de());function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let n=document.querySelector("#tsd-search input"),r=document.querySelector("#tsd-search .results");if(!n||!r)throw new Error("The input field or the result list wrapper was not found");let i=!1;r.addEventListener("mousedown",()=>i=!0),r.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),n.addEventListener("focus",()=>t.classList.add("has-focus")),n.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Fe(t,r,n,s)}function Fe(t,e,n,r){n.addEventListener("input",ue(()=>{He(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"?pe(e,-1):s.key==="ArrowDown"?pe(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 Ae(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=me.Index.load(window.searchData.index))}function He(t,e,n,r){if(Ae(r,t),!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${fe(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes??"";let m=document.createElement("a");m.href=r.base+u.url,m.innerHTML=l,h.append(m),e.appendChild(h)}}function pe(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 fe(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(ie(t.substring(s,o)),`${ie(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ie(t.substring(s))),i.join("")}var Ne={"&":"&","<":"<",">":">","'":"'",'"':"""};function ie(t){return t.replace(/[&<>"'"]/g,e=>Ne[e])}var F="mousedown",ye="mousemove",j="mouseup",Z={x:0,y:0},ge=!1,se=!1,Be=!1,A=!1,xe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(xe?"is-mobile":"not-mobile");xe&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",ye="touchmove",j="touchend");document.addEventListener(F,t=>{se=!0,A=!1;let e=F=="touchstart"?t.targetTouches[0]:t;Z.y=e.pageY||0,Z.x=e.pageX||0});document.addEventListener(ye,t=>{if(se&&!A){let e=F=="touchstart"?t.targetTouches[0]:t,n=Z.x-(e.pageX||0),r=Z.y-(e.pageY||0);A=Math.sqrt(n*n+r*r)>10}});document.addEventListener(j,()=>{se=!1});document.addEventListener("click",t=>{ge&&(t.preventDefault(),t.stopImmediatePropagation(),ge=!1)});var K=class extends I{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(j,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(j,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){A||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!A&&this.active&&n.target.closest(".col-menu")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var oe;try{oe=localStorage}catch{oe={getItem(){return null},setItem(){}}}var Q=oe;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var ee=class extends I{constructor(n){super(n);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; } +`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var te=class extends I{constructor(n){super(n);this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",r=>this.toggleVisibility(r)),this.icon.style.transform=this.getIconRotation()}getIconRotation(n=this.el.open){return`rotate(${n?0:-90}deg)`}calculateHeights(){let n=this.el.open,{position:r,left:i}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=n,this.el.style.height=n?this.expandedHeight:this.collapsedHeight,this.el.style.position=r,this.el.style.left=i}toggleVisibility(n){n.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(n=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:n?300:0})}collapse(n=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:n?300:0})}animate(n,r,{opening:i,duration:s=300}){if(this.animation)return;let o={duration:s,easing:"ease"};this.animation=this.el.animate({height:[n,r]},o),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!i),this.getIconRotation(i)]},o).addEventListener("finish",()=>{this.icon.style.transform=this.getIconRotation(i)}),this.animation.addEventListener("finish",()=>this.animationEnd(i))}animationEnd(n){this.el.open=n,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(n)}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.open}setLocalStorage(n,r=!1){this.fromLocalStorage()===n&&!r||(Q.setItem(this.key,n.toString()),this.el.open=n,this.handleValueChange(r))}handleValueChange(n=!1){this.fromLocalStorage()===this.el.open&&!n||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}};function be(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,Ee(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),Ee(t.value)})}function Ee(t){document.documentElement.dataset.theme=t}ve();B(X,".menu-highlight");B(K,"a[data-toggle]");B(te,".tsd-index-accordion");B(ee,".tsd-filter-item input[type=checkbox]");var we=document.getElementById("theme");we&&be(we);var je=new Y;Object.defineProperty(window,"app",{value:je});})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/v3/internal/api/docs/assets/search.js b/v3/internal/api/docs/assets/search.js new file mode 100644 index 000000000..ef938f808 --- /dev/null +++ b/v3/internal/api/docs/assets/search.js @@ -0,0 +1 @@ +window.searchData = JSON.parse("{\"kinds\":{\"2\":\"Module\",\"8\":\"Enumeration\",\"16\":\"Enumeration Member\",\"32\":\"Variable\",\"64\":\"Function\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"65536\":\"Type literal\"},\"rows\":[{\"kind\":2,\"name\":\"application\",\"url\":\"modules/application.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"Hide\",\"url\":\"functions/application.Hide.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"application\"},{\"kind\":64,\"name\":\"Show\",\"url\":\"functions/application.Show.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"application\"},{\"kind\":64,\"name\":\"Quit\",\"url\":\"functions/application.Quit.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"application\"},{\"kind\":2,\"name\":\"clipboard\",\"url\":\"modules/clipboard.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"SetText\",\"url\":\"functions/clipboard.SetText.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"clipboard\"},{\"kind\":64,\"name\":\"Text\",\"url\":\"functions/clipboard.Text.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"clipboard\"},{\"kind\":2,\"name\":\"dialogs\",\"url\":\"modules/dialogs.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"dialogCallback\",\"url\":\"functions/dialogs.dialogCallback.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":64,\"name\":\"dialogErrorCallback\",\"url\":\"functions/dialogs.dialogErrorCallback.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":64,\"name\":\"Info\",\"url\":\"functions/dialogs.Info.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":64,\"name\":\"Warning\",\"url\":\"functions/dialogs.Warning.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":64,\"name\":\"Error\",\"url\":\"functions/dialogs.Error.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":64,\"name\":\"Question\",\"url\":\"functions/dialogs.Question.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":64,\"name\":\"OpenFile\",\"url\":\"functions/dialogs.OpenFile.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":64,\"name\":\"SaveFile\",\"url\":\"functions/dialogs.SaveFile.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":8,\"name\":\"DialogType\",\"url\":\"enums/dialogs.DialogType.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":16,\"name\":\"InfoDialog\",\"url\":\"enums/dialogs.DialogType.html#InfoDialog\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"dialogs.DialogType\"},{\"kind\":16,\"name\":\"QuestionDialog\",\"url\":\"enums/dialogs.DialogType.html#QuestionDialog\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"dialogs.DialogType\"},{\"kind\":16,\"name\":\"WarningDialog\",\"url\":\"enums/dialogs.DialogType.html#WarningDialog\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"dialogs.DialogType\"},{\"kind\":16,\"name\":\"ErrorDialog\",\"url\":\"enums/dialogs.DialogType.html#ErrorDialog\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"dialogs.DialogType\"},{\"kind\":16,\"name\":\"OpenDirectoryDialog\",\"url\":\"enums/dialogs.DialogType.html#OpenDirectoryDialog\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"dialogs.DialogType\"},{\"kind\":256,\"name\":\"Button\",\"url\":\"interfaces/dialogs.Button.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":1024,\"name\":\"Label\",\"url\":\"interfaces/dialogs.Button.html#Label\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.Button\"},{\"kind\":1024,\"name\":\"IsCancel\",\"url\":\"interfaces/dialogs.Button.html#IsCancel\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.Button\"},{\"kind\":1024,\"name\":\"IsDefault\",\"url\":\"interfaces/dialogs.Button.html#IsDefault\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.Button\"},{\"kind\":256,\"name\":\"MessageDialogOptions\",\"url\":\"interfaces/dialogs.MessageDialogOptions.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":1024,\"name\":\"DialogType\",\"url\":\"interfaces/dialogs.MessageDialogOptions.html#DialogType\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.MessageDialogOptions\"},{\"kind\":1024,\"name\":\"Title\",\"url\":\"interfaces/dialogs.MessageDialogOptions.html#Title\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.MessageDialogOptions\"},{\"kind\":1024,\"name\":\"Message\",\"url\":\"interfaces/dialogs.MessageDialogOptions.html#Message\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.MessageDialogOptions\"},{\"kind\":1024,\"name\":\"Buttons\",\"url\":\"interfaces/dialogs.MessageDialogOptions.html#Buttons\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.MessageDialogOptions\"},{\"kind\":256,\"name\":\"OpenFileDialogOptions\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":1024,\"name\":\"CanChooseDirectories\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#CanChooseDirectories\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"CanChooseFiles\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#CanChooseFiles\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"CanCreateDirectories\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#CanCreateDirectories\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"ShowHiddenFiles\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#ShowHiddenFiles\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"ResolvesAliases\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#ResolvesAliases\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"AllowsMultipleSelection\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#AllowsMultipleSelection\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"HideExtension\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#HideExtension\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"CanSelectHiddenExtension\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#CanSelectHiddenExtension\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"TreatsFilePackagesAsDirectories\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#TreatsFilePackagesAsDirectories\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"AllowsOtherFileTypes\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#AllowsOtherFileTypes\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"Filters\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#Filters\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"Title\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#Title\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"Message\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#Message\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"ButtonText\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#ButtonText\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":1024,\"name\":\"Directory\",\"url\":\"interfaces/dialogs.OpenFileDialogOptions.html#Directory\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.OpenFileDialogOptions\"},{\"kind\":256,\"name\":\"FileFilter\",\"url\":\"interfaces/dialogs.FileFilter.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":1024,\"name\":\"DisplayName\",\"url\":\"interfaces/dialogs.FileFilter.html#DisplayName\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.FileFilter\"},{\"kind\":1024,\"name\":\"Pattern\",\"url\":\"interfaces/dialogs.FileFilter.html#Pattern\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.FileFilter\"},{\"kind\":256,\"name\":\"SaveFileDialogOptions\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"dialogs\"},{\"kind\":1024,\"name\":\"CanCreateDirectories\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#CanCreateDirectories\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"ShowHiddenFiles\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#ShowHiddenFiles\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"CanSelectHiddenExtension\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#CanSelectHiddenExtension\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"AllowOtherFileTypes\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#AllowOtherFileTypes\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"HideExtension\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#HideExtension\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"TreatsFilePackagesAsDirectories\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#TreatsFilePackagesAsDirectories\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"Message\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#Message\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"Directory\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#Directory\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"Filename\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#Filename\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":1024,\"name\":\"ButtonText\",\"url\":\"interfaces/dialogs.SaveFileDialogOptions.html#ButtonText\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"dialogs.SaveFileDialogOptions\"},{\"kind\":2,\"name\":\"events\",\"url\":\"modules/events.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"OnMultiple\",\"url\":\"functions/events.OnMultiple.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/events.OnMultiple.html#OnMultiple.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"events.OnMultiple.OnMultiple\"},{\"kind\":64,\"name\":\"On\",\"url\":\"functions/events.On.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/events.On.html#On.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"events.On.On\"},{\"kind\":64,\"name\":\"Once\",\"url\":\"functions/events.Once.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/events.Once.html#Once.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"events.Once.Once\"},{\"kind\":64,\"name\":\"dispatchCustomEvent\",\"url\":\"functions/events.dispatchCustomEvent.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":64,\"name\":\"Off\",\"url\":\"functions/events.Off.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":64,\"name\":\"OffAll\",\"url\":\"functions/events.OffAll.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":64,\"name\":\"Emit\",\"url\":\"functions/events.Emit.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":128,\"name\":\"CustomEvent\",\"url\":\"classes/events.CustomEvent.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/events.CustomEvent.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"events.CustomEvent\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"classes/events.CustomEvent.html#name\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"events.CustomEvent\"},{\"kind\":1024,\"name\":\"data\",\"url\":\"classes/events.CustomEvent.html#data\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"events.CustomEvent\"},{\"kind\":32,\"name\":\"eventListeners\",\"url\":\"variables/events.eventListeners.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"events\"},{\"kind\":2,\"name\":\"screens\",\"url\":\"modules/screens.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"GetAll\",\"url\":\"functions/screens.GetAll.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"screens\"},{\"kind\":64,\"name\":\"GetPrimary\",\"url\":\"functions/screens.GetPrimary.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"screens\"},{\"kind\":64,\"name\":\"GetCurrent\",\"url\":\"functions/screens.GetCurrent.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"screens\"},{\"kind\":256,\"name\":\"Screen\",\"url\":\"interfaces/screens.Screen.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"screens\"},{\"kind\":1024,\"name\":\"ID\",\"url\":\"interfaces/screens.Screen.html#ID\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"Name\",\"url\":\"interfaces/screens.Screen.html#Name\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"Scale\",\"url\":\"interfaces/screens.Screen.html#Scale\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"X\",\"url\":\"interfaces/screens.Screen.html#X\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"Y\",\"url\":\"interfaces/screens.Screen.html#Y\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"Size\",\"url\":\"interfaces/screens.Screen.html#Size\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"Bounds\",\"url\":\"interfaces/screens.Screen.html#Bounds\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"WorkArea\",\"url\":\"interfaces/screens.Screen.html#WorkArea\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"IsPrimary\",\"url\":\"interfaces/screens.Screen.html#IsPrimary\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":1024,\"name\":\"Rotation\",\"url\":\"interfaces/screens.Screen.html#Rotation\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Screen\"},{\"kind\":256,\"name\":\"Rect\",\"url\":\"interfaces/screens.Rect.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"screens\"},{\"kind\":1024,\"name\":\"X\",\"url\":\"interfaces/screens.Rect.html#X\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Rect\"},{\"kind\":1024,\"name\":\"Y\",\"url\":\"interfaces/screens.Rect.html#Y\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Rect\"},{\"kind\":1024,\"name\":\"Width\",\"url\":\"interfaces/screens.Rect.html#Width\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Rect\"},{\"kind\":1024,\"name\":\"Height\",\"url\":\"interfaces/screens.Rect.html#Height\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Rect\"},{\"kind\":256,\"name\":\"Size\",\"url\":\"interfaces/screens.Size.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"screens\"},{\"kind\":1024,\"name\":\"Width\",\"url\":\"interfaces/screens.Size.html#Width\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Size\"},{\"kind\":1024,\"name\":\"Height\",\"url\":\"interfaces/screens.Size.html#Height\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"screens.Size\"},{\"kind\":2,\"name\":\"window\",\"url\":\"modules/window.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"newWindow\",\"url\":\"functions/window.newWindow.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"window\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"window.newWindow.newWindow\"},{\"kind\":1024,\"name\":\"Center\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Center\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Center.__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Center\"},{\"kind\":1024,\"name\":\"SetTitle\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetTitle\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetTitle.__type-29\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.SetTitle\"},{\"kind\":1024,\"name\":\"Fullscreen\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Fullscreen\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Fullscreen.__type-5\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Fullscreen\"},{\"kind\":1024,\"name\":\"UnFullscreen\",\"url\":\"functions/window.newWindow.html#newWindow.__type.UnFullscreen\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.UnFullscreen.__type-37\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.UnFullscreen\"},{\"kind\":1024,\"name\":\"SetSize\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetSize.__type-27\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.SetSize\"},{\"kind\":1024,\"name\":\"Size\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Size\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Size.__type-33\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Size\"},{\"kind\":1024,\"name\":\"SetMaxSize\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetMaxSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetMaxSize.__type-21\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.SetMaxSize\"},{\"kind\":1024,\"name\":\"SetMinSize\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetMinSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetMinSize.__type-23\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.SetMinSize\"},{\"kind\":1024,\"name\":\"SetAlwaysOnTop\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetAlwaysOnTop\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetAlwaysOnTop.__type-17\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.SetAlwaysOnTop\"},{\"kind\":1024,\"name\":\"SetPosition\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetPosition\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetPosition.__type-25\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.SetPosition\"},{\"kind\":1024,\"name\":\"Position\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Position\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Position.__type-13\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Position\"},{\"kind\":1024,\"name\":\"Screen\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Screen\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Screen.__type-15\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Screen\"},{\"kind\":1024,\"name\":\"Hide\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Hide\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Hide.__type-7\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Hide\"},{\"kind\":1024,\"name\":\"Maximise\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Maximise\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Maximise.__type-9\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Maximise\"},{\"kind\":1024,\"name\":\"Show\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Show\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Show.__type-31\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Show\"},{\"kind\":1024,\"name\":\"Close\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Close\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Close.__type-3\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Close\"},{\"kind\":1024,\"name\":\"ToggleMaximise\",\"url\":\"functions/window.newWindow.html#newWindow.__type.ToggleMaximise\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.ToggleMaximise.__type-35\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.ToggleMaximise\"},{\"kind\":1024,\"name\":\"UnMaximise\",\"url\":\"functions/window.newWindow.html#newWindow.__type.UnMaximise\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.UnMaximise.__type-39\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.UnMaximise\"},{\"kind\":1024,\"name\":\"Minimise\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Minimise\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.Minimise.__type-11\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.Minimise\"},{\"kind\":1024,\"name\":\"UnMinimise\",\"url\":\"functions/window.newWindow.html#newWindow.__type.UnMinimise\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.UnMinimise.__type-41\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.UnMinimise\"},{\"kind\":1024,\"name\":\"SetBackgroundColour\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetBackgroundColour\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"window.newWindow.newWindow.__type\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"functions/window.newWindow.html#newWindow.__type.SetBackgroundColour.__type-19\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-property\",\"parent\":\"window.newWindow.newWindow.__type.SetBackgroundColour\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,45.781]],[\"comment/0\",[]],[\"name/1\",[1,40.673]],[\"comment/1\",[]],[\"name/2\",[2,40.673]],[\"comment/2\",[]],[\"name/3\",[3,45.781]],[\"comment/3\",[]],[\"name/4\",[4,45.781]],[\"comment/4\",[]],[\"name/5\",[5,45.781]],[\"comment/5\",[]],[\"name/6\",[6,45.781]],[\"comment/6\",[]],[\"name/7\",[7,45.781]],[\"comment/7\",[]],[\"name/8\",[8,45.781]],[\"comment/8\",[]],[\"name/9\",[9,45.781]],[\"comment/9\",[]],[\"name/10\",[10,45.781]],[\"comment/10\",[]],[\"name/11\",[11,45.781]],[\"comment/11\",[]],[\"name/12\",[12,45.781]],[\"comment/12\",[]],[\"name/13\",[13,45.781]],[\"comment/13\",[]],[\"name/14\",[14,45.781]],[\"comment/14\",[]],[\"name/15\",[15,45.781]],[\"comment/15\",[]],[\"name/16\",[16,40.673]],[\"comment/16\",[]],[\"name/17\",[17,45.781]],[\"comment/17\",[]],[\"name/18\",[18,45.781]],[\"comment/18\",[]],[\"name/19\",[19,45.781]],[\"comment/19\",[]],[\"name/20\",[20,45.781]],[\"comment/20\",[]],[\"name/21\",[21,45.781]],[\"comment/21\",[]],[\"name/22\",[22,45.781]],[\"comment/22\",[]],[\"name/23\",[23,45.781]],[\"comment/23\",[]],[\"name/24\",[24,45.781]],[\"comment/24\",[]],[\"name/25\",[25,45.781]],[\"comment/25\",[]],[\"name/26\",[26,45.781]],[\"comment/26\",[]],[\"name/27\",[16,40.673]],[\"comment/27\",[]],[\"name/28\",[27,40.673]],[\"comment/28\",[]],[\"name/29\",[28,37.308]],[\"comment/29\",[]],[\"name/30\",[29,45.781]],[\"comment/30\",[]],[\"name/31\",[30,45.781]],[\"comment/31\",[]],[\"name/32\",[31,45.781]],[\"comment/32\",[]],[\"name/33\",[32,45.781]],[\"comment/33\",[]],[\"name/34\",[33,40.673]],[\"comment/34\",[]],[\"name/35\",[34,40.673]],[\"comment/35\",[]],[\"name/36\",[35,45.781]],[\"comment/36\",[]],[\"name/37\",[36,45.781]],[\"comment/37\",[]],[\"name/38\",[37,40.673]],[\"comment/38\",[]],[\"name/39\",[38,40.673]],[\"comment/39\",[]],[\"name/40\",[39,40.673]],[\"comment/40\",[]],[\"name/41\",[40,45.781]],[\"comment/41\",[]],[\"name/42\",[41,45.781]],[\"comment/42\",[]],[\"name/43\",[27,40.673]],[\"comment/43\",[]],[\"name/44\",[28,37.308]],[\"comment/44\",[]],[\"name/45\",[42,40.673]],[\"comment/45\",[]],[\"name/46\",[43,40.673]],[\"comment/46\",[]],[\"name/47\",[44,45.781]],[\"comment/47\",[]],[\"name/48\",[45,45.781]],[\"comment/48\",[]],[\"name/49\",[46,45.781]],[\"comment/49\",[]],[\"name/50\",[47,45.781]],[\"comment/50\",[]],[\"name/51\",[33,40.673]],[\"comment/51\",[]],[\"name/52\",[34,40.673]],[\"comment/52\",[]],[\"name/53\",[38,40.673]],[\"comment/53\",[]],[\"name/54\",[48,45.781]],[\"comment/54\",[]],[\"name/55\",[37,40.673]],[\"comment/55\",[]],[\"name/56\",[39,40.673]],[\"comment/56\",[]],[\"name/57\",[28,37.308]],[\"comment/57\",[]],[\"name/58\",[43,40.673]],[\"comment/58\",[]],[\"name/59\",[49,45.781]],[\"comment/59\",[]],[\"name/60\",[42,40.673]],[\"comment/60\",[]],[\"name/61\",[50,45.781]],[\"comment/61\",[]],[\"name/62\",[51,45.781]],[\"comment/62\",[]],[\"name/63\",[52,17.449]],[\"comment/63\",[]],[\"name/64\",[53,45.781]],[\"comment/64\",[]],[\"name/65\",[52,17.449]],[\"comment/65\",[]],[\"name/66\",[54,45.781]],[\"comment/66\",[]],[\"name/67\",[52,17.449]],[\"comment/67\",[]],[\"name/68\",[55,45.781]],[\"comment/68\",[]],[\"name/69\",[56,45.781]],[\"comment/69\",[]],[\"name/70\",[57,45.781]],[\"comment/70\",[]],[\"name/71\",[58,45.781]],[\"comment/71\",[]],[\"name/72\",[59,45.781]],[\"comment/72\",[]],[\"name/73\",[60,45.781]],[\"comment/73\",[]],[\"name/74\",[61,40.673]],[\"comment/74\",[]],[\"name/75\",[62,45.781]],[\"comment/75\",[]],[\"name/76\",[63,45.781]],[\"comment/76\",[]],[\"name/77\",[64,45.781]],[\"comment/77\",[]],[\"name/78\",[65,45.781]],[\"comment/78\",[]],[\"name/79\",[66,45.781]],[\"comment/79\",[]],[\"name/80\",[67,45.781]],[\"comment/80\",[]],[\"name/81\",[68,40.673]],[\"comment/81\",[]],[\"name/82\",[69,45.781]],[\"comment/82\",[]],[\"name/83\",[61,40.673]],[\"comment/83\",[]],[\"name/84\",[70,45.781]],[\"comment/84\",[]],[\"name/85\",[71,40.673]],[\"comment/85\",[]],[\"name/86\",[72,40.673]],[\"comment/86\",[]],[\"name/87\",[73,37.308]],[\"comment/87\",[]],[\"name/88\",[74,45.781]],[\"comment/88\",[]],[\"name/89\",[75,45.781]],[\"comment/89\",[]],[\"name/90\",[76,45.781]],[\"comment/90\",[]],[\"name/91\",[77,45.781]],[\"comment/91\",[]],[\"name/92\",[78,45.781]],[\"comment/92\",[]],[\"name/93\",[71,40.673]],[\"comment/93\",[]],[\"name/94\",[72,40.673]],[\"comment/94\",[]],[\"name/95\",[79,40.673]],[\"comment/95\",[]],[\"name/96\",[80,40.673]],[\"comment/96\",[]],[\"name/97\",[73,37.308]],[\"comment/97\",[]],[\"name/98\",[79,40.673]],[\"comment/98\",[]],[\"name/99\",[80,40.673]],[\"comment/99\",[]],[\"name/100\",[81,45.781]],[\"comment/100\",[]],[\"name/101\",[82,45.781]],[\"comment/101\",[]],[\"name/102\",[52,17.449]],[\"comment/102\",[]],[\"name/103\",[83,45.781]],[\"comment/103\",[]],[\"name/104\",[52,17.449]],[\"comment/104\",[]],[\"name/105\",[84,45.781]],[\"comment/105\",[]],[\"name/106\",[52,17.449]],[\"comment/106\",[]],[\"name/107\",[85,45.781]],[\"comment/107\",[]],[\"name/108\",[52,17.449]],[\"comment/108\",[]],[\"name/109\",[86,45.781]],[\"comment/109\",[]],[\"name/110\",[52,17.449]],[\"comment/110\",[]],[\"name/111\",[87,45.781]],[\"comment/111\",[]],[\"name/112\",[52,17.449]],[\"comment/112\",[]],[\"name/113\",[73,37.308]],[\"comment/113\",[]],[\"name/114\",[52,17.449]],[\"comment/114\",[]],[\"name/115\",[88,45.781]],[\"comment/115\",[]],[\"name/116\",[52,17.449]],[\"comment/116\",[]],[\"name/117\",[89,45.781]],[\"comment/117\",[]],[\"name/118\",[52,17.449]],[\"comment/118\",[]],[\"name/119\",[90,45.781]],[\"comment/119\",[]],[\"name/120\",[52,17.449]],[\"comment/120\",[]],[\"name/121\",[91,45.781]],[\"comment/121\",[]],[\"name/122\",[52,17.449]],[\"comment/122\",[]],[\"name/123\",[92,45.781]],[\"comment/123\",[]],[\"name/124\",[52,17.449]],[\"comment/124\",[]],[\"name/125\",[68,40.673]],[\"comment/125\",[]],[\"name/126\",[52,17.449]],[\"comment/126\",[]],[\"name/127\",[1,40.673]],[\"comment/127\",[]],[\"name/128\",[52,17.449]],[\"comment/128\",[]],[\"name/129\",[93,45.781]],[\"comment/129\",[]],[\"name/130\",[52,17.449]],[\"comment/130\",[]],[\"name/131\",[2,40.673]],[\"comment/131\",[]],[\"name/132\",[52,17.449]],[\"comment/132\",[]],[\"name/133\",[94,45.781]],[\"comment/133\",[]],[\"name/134\",[52,17.449]],[\"comment/134\",[]],[\"name/135\",[95,45.781]],[\"comment/135\",[]],[\"name/136\",[52,17.449]],[\"comment/136\",[]],[\"name/137\",[96,45.781]],[\"comment/137\",[]],[\"name/138\",[52,17.449]],[\"comment/138\",[]],[\"name/139\",[97,45.781]],[\"comment/139\",[]],[\"name/140\",[52,17.449]],[\"comment/140\",[]],[\"name/141\",[98,45.781]],[\"comment/141\",[]],[\"name/142\",[52,17.449]],[\"comment/142\",[]],[\"name/143\",[99,45.781]],[\"comment/143\",[]],[\"name/144\",[52,17.449]],[\"comment/144\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":52,\"name\":{\"63\":{},\"65\":{},\"67\":{},\"102\":{},\"104\":{},\"106\":{},\"108\":{},\"110\":{},\"112\":{},\"114\":{},\"116\":{},\"118\":{},\"120\":{},\"122\":{},\"124\":{},\"126\":{},\"128\":{},\"130\":{},\"132\":{},\"134\":{},\"136\":{},\"138\":{},\"140\":{},\"142\":{},\"144\":{}},\"comment\":{}}],[\"allowotherfiletypes\",{\"_index\":48,\"name\":{\"54\":{}},\"comment\":{}}],[\"allowsmultipleselection\",{\"_index\":36,\"name\":{\"37\":{}},\"comment\":{}}],[\"allowsotherfiletypes\",{\"_index\":40,\"name\":{\"41\":{}},\"comment\":{}}],[\"application\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"bounds\",{\"_index\":74,\"name\":{\"88\":{}},\"comment\":{}}],[\"button\",{\"_index\":22,\"name\":{\"22\":{}},\"comment\":{}}],[\"buttons\",{\"_index\":29,\"name\":{\"30\":{}},\"comment\":{}}],[\"buttontext\",{\"_index\":42,\"name\":{\"45\":{},\"60\":{}},\"comment\":{}}],[\"canchoosedirectories\",{\"_index\":31,\"name\":{\"32\":{}},\"comment\":{}}],[\"canchoosefiles\",{\"_index\":32,\"name\":{\"33\":{}},\"comment\":{}}],[\"cancreatedirectories\",{\"_index\":33,\"name\":{\"34\":{},\"51\":{}},\"comment\":{}}],[\"canselecthiddenextension\",{\"_index\":38,\"name\":{\"39\":{},\"53\":{}},\"comment\":{}}],[\"center\",{\"_index\":83,\"name\":{\"103\":{}},\"comment\":{}}],[\"clipboard\",{\"_index\":4,\"name\":{\"4\":{}},\"comment\":{}}],[\"close\",{\"_index\":94,\"name\":{\"133\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":60,\"name\":{\"73\":{}},\"comment\":{}}],[\"customevent\",{\"_index\":59,\"name\":{\"72\":{}},\"comment\":{}}],[\"data\",{\"_index\":62,\"name\":{\"75\":{}},\"comment\":{}}],[\"dialogcallback\",{\"_index\":8,\"name\":{\"8\":{}},\"comment\":{}}],[\"dialogerrorcallback\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"dialogs\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"dialogtype\",{\"_index\":16,\"name\":{\"16\":{},\"27\":{}},\"comment\":{}}],[\"directory\",{\"_index\":43,\"name\":{\"46\":{},\"58\":{}},\"comment\":{}}],[\"dispatchcustomevent\",{\"_index\":55,\"name\":{\"68\":{}},\"comment\":{}}],[\"displayname\",{\"_index\":45,\"name\":{\"48\":{}},\"comment\":{}}],[\"emit\",{\"_index\":58,\"name\":{\"71\":{}},\"comment\":{}}],[\"error\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}],[\"errordialog\",{\"_index\":20,\"name\":{\"20\":{}},\"comment\":{}}],[\"eventlisteners\",{\"_index\":63,\"name\":{\"76\":{}},\"comment\":{}}],[\"events\",{\"_index\":50,\"name\":{\"61\":{}},\"comment\":{}}],[\"filefilter\",{\"_index\":44,\"name\":{\"47\":{}},\"comment\":{}}],[\"filename\",{\"_index\":49,\"name\":{\"59\":{}},\"comment\":{}}],[\"filters\",{\"_index\":41,\"name\":{\"42\":{}},\"comment\":{}}],[\"fullscreen\",{\"_index\":85,\"name\":{\"107\":{}},\"comment\":{}}],[\"getall\",{\"_index\":65,\"name\":{\"78\":{}},\"comment\":{}}],[\"getcurrent\",{\"_index\":67,\"name\":{\"80\":{}},\"comment\":{}}],[\"getprimary\",{\"_index\":66,\"name\":{\"79\":{}},\"comment\":{}}],[\"height\",{\"_index\":80,\"name\":{\"96\":{},\"99\":{}},\"comment\":{}}],[\"hide\",{\"_index\":1,\"name\":{\"1\":{},\"127\":{}},\"comment\":{}}],[\"hideextension\",{\"_index\":37,\"name\":{\"38\":{},\"55\":{}},\"comment\":{}}],[\"id\",{\"_index\":69,\"name\":{\"82\":{}},\"comment\":{}}],[\"info\",{\"_index\":10,\"name\":{\"10\":{}},\"comment\":{}}],[\"infodialog\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"iscancel\",{\"_index\":24,\"name\":{\"24\":{}},\"comment\":{}}],[\"isdefault\",{\"_index\":25,\"name\":{\"25\":{}},\"comment\":{}}],[\"isprimary\",{\"_index\":76,\"name\":{\"90\":{}},\"comment\":{}}],[\"label\",{\"_index\":23,\"name\":{\"23\":{}},\"comment\":{}}],[\"maximise\",{\"_index\":93,\"name\":{\"129\":{}},\"comment\":{}}],[\"message\",{\"_index\":28,\"name\":{\"29\":{},\"44\":{},\"57\":{}},\"comment\":{}}],[\"messagedialogoptions\",{\"_index\":26,\"name\":{\"26\":{}},\"comment\":{}}],[\"minimise\",{\"_index\":97,\"name\":{\"139\":{}},\"comment\":{}}],[\"name\",{\"_index\":61,\"name\":{\"74\":{},\"83\":{}},\"comment\":{}}],[\"newwindow\",{\"_index\":82,\"name\":{\"101\":{}},\"comment\":{}}],[\"off\",{\"_index\":56,\"name\":{\"69\":{}},\"comment\":{}}],[\"offall\",{\"_index\":57,\"name\":{\"70\":{}},\"comment\":{}}],[\"on\",{\"_index\":53,\"name\":{\"64\":{}},\"comment\":{}}],[\"once\",{\"_index\":54,\"name\":{\"66\":{}},\"comment\":{}}],[\"onmultiple\",{\"_index\":51,\"name\":{\"62\":{}},\"comment\":{}}],[\"opendirectorydialog\",{\"_index\":21,\"name\":{\"21\":{}},\"comment\":{}}],[\"openfile\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"openfiledialogoptions\",{\"_index\":30,\"name\":{\"31\":{}},\"comment\":{}}],[\"pattern\",{\"_index\":46,\"name\":{\"49\":{}},\"comment\":{}}],[\"position\",{\"_index\":92,\"name\":{\"123\":{}},\"comment\":{}}],[\"question\",{\"_index\":13,\"name\":{\"13\":{}},\"comment\":{}}],[\"questiondialog\",{\"_index\":18,\"name\":{\"18\":{}},\"comment\":{}}],[\"quit\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"rect\",{\"_index\":78,\"name\":{\"92\":{}},\"comment\":{}}],[\"resolvesaliases\",{\"_index\":35,\"name\":{\"36\":{}},\"comment\":{}}],[\"rotation\",{\"_index\":77,\"name\":{\"91\":{}},\"comment\":{}}],[\"savefile\",{\"_index\":15,\"name\":{\"15\":{}},\"comment\":{}}],[\"savefiledialogoptions\",{\"_index\":47,\"name\":{\"50\":{}},\"comment\":{}}],[\"scale\",{\"_index\":70,\"name\":{\"84\":{}},\"comment\":{}}],[\"screen\",{\"_index\":68,\"name\":{\"81\":{},\"125\":{}},\"comment\":{}}],[\"screens\",{\"_index\":64,\"name\":{\"77\":{}},\"comment\":{}}],[\"setalwaysontop\",{\"_index\":90,\"name\":{\"119\":{}},\"comment\":{}}],[\"setbackgroundcolour\",{\"_index\":99,\"name\":{\"143\":{}},\"comment\":{}}],[\"setmaxsize\",{\"_index\":88,\"name\":{\"115\":{}},\"comment\":{}}],[\"setminsize\",{\"_index\":89,\"name\":{\"117\":{}},\"comment\":{}}],[\"setposition\",{\"_index\":91,\"name\":{\"121\":{}},\"comment\":{}}],[\"setsize\",{\"_index\":87,\"name\":{\"111\":{}},\"comment\":{}}],[\"settext\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"settitle\",{\"_index\":84,\"name\":{\"105\":{}},\"comment\":{}}],[\"show\",{\"_index\":2,\"name\":{\"2\":{},\"131\":{}},\"comment\":{}}],[\"showhiddenfiles\",{\"_index\":34,\"name\":{\"35\":{},\"52\":{}},\"comment\":{}}],[\"size\",{\"_index\":73,\"name\":{\"87\":{},\"97\":{},\"113\":{}},\"comment\":{}}],[\"text\",{\"_index\":6,\"name\":{\"6\":{}},\"comment\":{}}],[\"title\",{\"_index\":27,\"name\":{\"28\":{},\"43\":{}},\"comment\":{}}],[\"togglemaximise\",{\"_index\":95,\"name\":{\"135\":{}},\"comment\":{}}],[\"treatsfilepackagesasdirectories\",{\"_index\":39,\"name\":{\"40\":{},\"56\":{}},\"comment\":{}}],[\"unfullscreen\",{\"_index\":86,\"name\":{\"109\":{}},\"comment\":{}}],[\"unmaximise\",{\"_index\":96,\"name\":{\"137\":{}},\"comment\":{}}],[\"unminimise\",{\"_index\":98,\"name\":{\"141\":{}},\"comment\":{}}],[\"warning\",{\"_index\":11,\"name\":{\"11\":{}},\"comment\":{}}],[\"warningdialog\",{\"_index\":19,\"name\":{\"19\":{}},\"comment\":{}}],[\"width\",{\"_index\":79,\"name\":{\"95\":{},\"98\":{}},\"comment\":{}}],[\"window\",{\"_index\":81,\"name\":{\"100\":{}},\"comment\":{}}],[\"workarea\",{\"_index\":75,\"name\":{\"89\":{}},\"comment\":{}}],[\"x\",{\"_index\":71,\"name\":{\"85\":{},\"93\":{}},\"comment\":{}}],[\"y\",{\"_index\":72,\"name\":{\"86\":{},\"94\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/v3/internal/api/docs/assets/style.css b/v3/internal/api/docs/assets/style.css new file mode 100644 index 000000000..496e66f21 --- /dev/null +++ b/v3/internal/api/docs/assets/style.css @@ -0,0 +1,1279 @@ +: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-text: #222; + --light-color-text-aside: #707070; + --light-color-link: #4da6ff; + --light-color-ts: #db1373; + --light-color-ts-interface: #139d2c; + --light-color-ts-enum: #9c891a; + --light-color-ts-class: #2484e5; + --light-color-ts-function: #572be7; + --light-color-ts-namespace: #b111c9; + --light-color-ts-private: #707070; + --light-color-ts-variable: #4d68ff; + --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-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + --dark-color-link: #00aff4; + --dark-color-ts: #ff6492; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-class: #61b0ff; + --dark-color-ts-function: #9772ff; + --dark-color-ts-namespace: #e14dff; + --dark-color-ts-private: #e2e2e2; + --dark-color-ts-variable: #4d68ff; + --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-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + --color-ts: var(--light-color-ts); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-class: var(--light-color-ts-class); + --color-ts-function: var(--light-color-ts-function); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-private: var(--light-color-ts-private); + --color-ts-variable: var(--light-color-ts-variable); + --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-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + --color-ts: var(--dark-color-ts); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-private: var(--dark-color-ts-private); + --color-ts-variable: var(--dark-color-ts-variable); + --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-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + --color-ts: var(--light-color-ts); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-class: var(--light-color-ts-class); + --color-ts-function: var(--light-color-ts-function); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-private: var(--light-color-ts-private); + --color-ts-variable: var(--light-color-ts-variable); + --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-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + --color-ts: var(--dark-color-ts); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-private: var(--dark-color-ts-private); + --color-ts-variable: var(--dark-color-ts-variable); + --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 { + 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; +} + +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +.container { + max-width: 1600px; + padding: 0 2rem; +} + +@media (min-width: 640px) { + .container { + padding: 0 4rem; + } +} +@media (min-width: 1200px) { + .container { + padding: 0 8rem; + } +} +@media (min-width: 1600px) { + .container { + padding: 0 12rem; + } +} + +/* 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 { + display: flex; + justify-content: space-between; + position: relative; + margin: 0 auto; +} + +.col-4, +.col-8 { + box-sizing: border-box; + float: left; + padding: 2rem 1rem; +} + +.col-4 { + flex: 0 0 25%; +} +.col-8 { + flex: 1 0; + flex-wrap: wrap; + padding-left: 0; +} + +@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 shift-to-left { + from { + transform: translate(0, 0); + } + to { + transform: translate(-25%, 0); + } +} +@keyframes unshift-to-left { + from { + transform: translate(-25%, 0); + } + to { + transform: translate(0, 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: "Segoe UI", sans-serif; + 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 { + padding: 10px; + border: 0.1em solid var(--color-accent); +} +pre code { + padding: 0; + font-size: 100%; +} + +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 h4, +.tsd-typography .tsd-index-panel h3, +.tsd-index-panel .tsd-typography h3, +.tsd-typography h5, +.tsd-typography h6 { + font-size: 1em; + margin: 0; +} +.tsd-typography h5, +.tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, +.tsd-typography ul, +.tsd-typography ol { + margin: 1em 0; +} + +@media (max-width: 1024px) { + html .col-content { + float: none; + max-width: 100%; + width: 100%; + padding-top: 3rem; + } + html .col-menu { + 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; + max-width: 25rem; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-menu > *: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 :is(header, footer, .col-content) { + animation: shift-to-left 0.4s; + } + + .to-has-menu .col-menu { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu :is(header, footer, .col-content) { + animation: unshift-to-left 0.4s; + } + + .from-has-menu .col-menu { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu :is(header, footer, .col-content) { + transform: translate(-25%, 0); + } + .has-menu .col-menu { + 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-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. + 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-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-index-panel a, +.tsd-index-panel a.tsd-parent-kind-module { + color: var(--color-ts); +} +.tsd-index-panel a.tsd-parent-kind-interface { + color: var(--color-ts-interface); +} +.tsd-index-panel a.tsd-parent-kind-enum { + color: var(--color-ts-enum); +} +.tsd-index-panel a.tsd-parent-kind-class { + color: var(--color-ts-class); +} +.tsd-index-panel a.tsd-kind-module { + color: var(--color-ts-namespace); +} +.tsd-index-panel a.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-index-panel a.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-index-panel a.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-index-panel a.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-index-panel a.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-index-panel a.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-index-panel a.tsd-is-private { + color: var(--color-ts-private); +} + +.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: absolute; + 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-member [data-tsd-kind] { + color: var(--color-ts); +} +.tsd-member [data-tsd-kind="Interface"] { + color: var(--color-ts-interface); +} +.tsd-member [data-tsd-kind="Enum"] { + color: var(--color-ts-enum); +} +.tsd-member [data-tsd-kind="Class"] { + color: var(--color-ts-class); +} +.tsd-member [data-tsd-kind="Private"] { + color: var(--color-ts-private); +} + +.tsd-navigation a { + display: block; + margin: 0.4rem 0; + border-left: 2px solid transparent; + color: var(--color-text); + text-decoration: none; + transition: border-left-color 0.1s; +} +.tsd-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul { + margin: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li { + padding: 0; +} + +.tsd-navigation.primary .tsd-accordion-details > ul { + margin-top: 0.75rem; +} +.tsd-navigation.primary a { + padding: 0.75rem 0.5rem; + margin: 0; +} +.tsd-navigation.primary ul li a { + margin-left: 0.5rem; +} +.tsd-navigation.primary ul li li a { + margin-left: 1.5rem; +} +.tsd-navigation.primary ul li li li a { + margin-left: 2.5rem; +} +.tsd-navigation.primary ul li li li li a { + margin-left: 3.5rem; +} +.tsd-navigation.primary ul li li li li li a { + margin-left: 4.5rem; +} +.tsd-navigation.primary ul li li li li li li a { + margin-left: 5.5rem; +} +.tsd-navigation.primary li.current > a { + border-left: 0.15rem var(--color-text) solid; +} +.tsd-navigation.primary li.selected > a { + font-weight: bold; + border-left: 0.2rem var(--color-text) solid; +} +.tsd-navigation.primary ul li a:hover { + border-left: 0.2rem var(--color-text-aside) solid; +} +.tsd-navigation.primary li.globals + li > span, +.tsd-navigation.primary li.globals + li > a { + padding-top: 20px; +} + +.tsd-navigation.secondary.tsd-navigation--toolbar-hide { + max-height: calc(100vh - 1rem); + top: 0.5rem; +} +.tsd-navigation.secondary > ul { + display: inline; + padding-right: 0.5rem; + transition: opacity 0.2s; +} +.tsd-navigation.secondary ul li a { + padding-left: 0; +} +.tsd-navigation.secondary ul li li a { + padding-left: 1.1rem; +} +.tsd-navigation.secondary ul li li li a { + padding-left: 2.2rem; +} +.tsd-navigation.secondary ul li li li li a { + padding-left: 3.3rem; +} +.tsd-navigation.secondary ul li li li li li a { + padding-left: 4.4rem; +} +.tsd-navigation.secondary ul li li li li li li a { + padding-left: 5.5rem; +} + +#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 { + margin: 0.25rem 0; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; +} +.tsd-accordion-summary > h1, +.tsd-accordion-summary > h2, +.tsd-accordion-summary > h3, +.tsd-accordion-summary > h4, +.tsd-accordion-summary > h5 { + display: inline-flex; + align-items: center; + vertical-align: middle; + margin-bottom: 0; + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.tsd-accordion-summary { + display: block; + cursor: pointer; +} +.tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; +} +.tsd-accordion-summary::-webkit-details-marker { + display: none; +} +.tsd-index-accordion .tsd-accordion-summary svg { + margin-right: 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; +} + +@media (min-width: 1025px) { + .col-content { + margin: 2rem auto; + } + + .menu-sticky-wrap { + position: sticky; + height: calc(100vh - 2rem); + top: 4rem; + right: 0; + padding: 0 1.5rem; + padding-top: 1rem; + margin-top: 3rem; + transition: 0.3s ease-in-out; + transition-property: top, padding-top, padding, height; + overflow-y: auto; + } + .col-menu { + border-left: 1px solid var(--color-accent); + } + .col-menu--hide { + top: 1rem; + } + .col-menu .tsd-navigation:not(:last-child) { + padding-bottom: 1.75rem; + } +} + +.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 { + padding: 0 10px; + background-color: var(--color-background); +} +#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, +#tsd-search .results li:hover { + background-color: var(--color-accent); +} +#tsd-search .results a { + display: block; +} +#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-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: fixed; + 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-page-toolbar--hide { + transform: translateY(-100%); +} + +.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; +} +@media (max-width: 1024px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } +} +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; +} + +.warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); +} + +* { + 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); +} diff --git a/v3/internal/api/docs/classes/events.CustomEvent.html b/v3/internal/api/docs/classes/events.CustomEvent.html new file mode 100644 index 000000000..291d347bd --- /dev/null +++ b/v3/internal/api/docs/classes/events.CustomEvent.html @@ -0,0 +1,115 @@ +CustomEvent | api
+
+ +
+
+
+
+ +

Class CustomEvent

+
+

CustomEvent defines a custom event. It is passed to event listeners.

+
+
+

Hierarchy

+
    +
  • CustomEvent
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Constructors

+
+ +
    + +
  • +

    Creates an instance of CustomEvent.

    + +

    Memberof

    CustomEvent

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      Name of the event

      +
    • +
    • +
      data: any
      +

      Data associated with the event

      +
    +

    Returns CustomEvent

+
+

Properties

+
+ +
data: any
+
+ +
name: string
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/enums/dialogs.DialogType.html b/v3/internal/api/docs/enums/dialogs.DialogType.html new file mode 100644 index 000000000..d7696cbcf --- /dev/null +++ b/v3/internal/api/docs/enums/dialogs.DialogType.html @@ -0,0 +1,99 @@ +DialogType | api
+
+ +
+
+
+
+ +

Enumeration DialogType

+
+
+
+ +
+
+

Enumeration Members

+
+ +
ErrorDialog: 3
+
+ +
InfoDialog: 0
+
+ +
OpenDirectoryDialog: 4
+
+ +
QuestionDialog: 1
+
+ +
WarningDialog: 2
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/application.Hide.html b/v3/internal/api/docs/functions/application.Hide.html new file mode 100644 index 000000000..7f712d61e --- /dev/null +++ b/v3/internal/api/docs/functions/application.Hide.html @@ -0,0 +1,60 @@ +Hide | api
+
+ +
+
+
+
+ +

Function Hide

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/application.Quit.html b/v3/internal/api/docs/functions/application.Quit.html new file mode 100644 index 000000000..76acbb360 --- /dev/null +++ b/v3/internal/api/docs/functions/application.Quit.html @@ -0,0 +1,60 @@ +Quit | api
+
+ +
+
+
+
+ +

Function Quit

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/application.Show.html b/v3/internal/api/docs/functions/application.Show.html new file mode 100644 index 000000000..950ff2d56 --- /dev/null +++ b/v3/internal/api/docs/functions/application.Show.html @@ -0,0 +1,60 @@ +Show | api
+
+ +
+
+
+
+ +

Function Show

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/clipboard.SetText.html b/v3/internal/api/docs/functions/clipboard.SetText.html new file mode 100644 index 000000000..3367d65dd --- /dev/null +++ b/v3/internal/api/docs/functions/clipboard.SetText.html @@ -0,0 +1,64 @@ +SetText | api
+
+ +
+
+
+
+ +

Function SetText

+
+
    + +
  • +
    +

    Parameters

    +
      +
    • +
      text: string
    +

    Returns Promise<void>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/clipboard.Text.html b/v3/internal/api/docs/functions/clipboard.Text.html new file mode 100644 index 000000000..6b3aab1e2 --- /dev/null +++ b/v3/internal/api/docs/functions/clipboard.Text.html @@ -0,0 +1,59 @@ +Text | api
+
+ +
+
+
+
+ +

Function Text

+
+
    + +
  • +

    Returns Promise<string>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.Error.html b/v3/internal/api/docs/functions/dialogs.Error.html new file mode 100644 index 000000000..a882c3894 --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.Error.html @@ -0,0 +1,76 @@ +Error | api
+
+ +
+
+
+
+ +

Function Error

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.Info.html b/v3/internal/api/docs/functions/dialogs.Info.html new file mode 100644 index 000000000..925567588 --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.Info.html @@ -0,0 +1,76 @@ +Info | api
+
+ +
+
+
+
+ +

Function Info

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.OpenFile.html b/v3/internal/api/docs/functions/dialogs.OpenFile.html new file mode 100644 index 000000000..47f089e9c --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.OpenFile.html @@ -0,0 +1,76 @@ +OpenFile | api
+
+ +
+
+
+
+ +

Function OpenFile

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.Question.html b/v3/internal/api/docs/functions/dialogs.Question.html new file mode 100644 index 000000000..5a3c1925b --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.Question.html @@ -0,0 +1,76 @@ +Question | api
+
+ +
+
+
+
+ +

Function Question

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.SaveFile.html b/v3/internal/api/docs/functions/dialogs.SaveFile.html new file mode 100644 index 000000000..35d78209c --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.SaveFile.html @@ -0,0 +1,76 @@ +SaveFile | api
+
+ +
+
+
+
+ +

Function SaveFile

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.Warning.html b/v3/internal/api/docs/functions/dialogs.Warning.html new file mode 100644 index 000000000..abd357666 --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.Warning.html @@ -0,0 +1,76 @@ +Warning | api
+
+ +
+
+
+
+ +

Function Warning

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.dialogCallback.html b/v3/internal/api/docs/functions/dialogs.dialogCallback.html new file mode 100644 index 000000000..304e3faef --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.dialogCallback.html @@ -0,0 +1,80 @@ +dialogCallback | api
+
+ +
+
+
+
+ +

Function dialogCallback

+
+
    + +
  • +
    +

    Parameters

    +
      +
    • +
      id: string
    • +
    • +
      data: any
    • +
    • +
      isJSON: boolean
    +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/dialogs.dialogErrorCallback.html b/v3/internal/api/docs/functions/dialogs.dialogErrorCallback.html new file mode 100644 index 000000000..1dfb5bcc1 --- /dev/null +++ b/v3/internal/api/docs/functions/dialogs.dialogErrorCallback.html @@ -0,0 +1,78 @@ +dialogErrorCallback | api
+
+ +
+
+
+
+ +

Function dialogErrorCallback

+
+
    + +
  • +
    +

    Parameters

    +
      +
    • +
      id: string
    • +
    • +
      message: string
    +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/events.Emit.html b/v3/internal/api/docs/functions/events.Emit.html new file mode 100644 index 000000000..0adf4093f --- /dev/null +++ b/v3/internal/api/docs/functions/events.Emit.html @@ -0,0 +1,71 @@ +Emit | api
+
+ +
+
+
+
+ +

Function Emit

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/events.Off.html b/v3/internal/api/docs/functions/events.Off.html new file mode 100644 index 000000000..503a581eb --- /dev/null +++ b/v3/internal/api/docs/functions/events.Off.html @@ -0,0 +1,77 @@ +Off | api
+
+ +
+
+
+
+ +

Function Off

+
+
    + +
  • +

    Off unregisters a listener previously registered with On, +optionally multiple listeners can be unregistered via additionalEventNames

    +

    [v3 CHANGE] Off only unregisters listeners within the current window

    +
    +
    +

    Parameters

    +
      +
    • +
      eventName: string
    • +
    • +
      Rest ...additionalEventNames: string[]
    +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/events.OffAll.html b/v3/internal/api/docs/functions/events.OffAll.html new file mode 100644 index 000000000..f975472fd --- /dev/null +++ b/v3/internal/api/docs/functions/events.OffAll.html @@ -0,0 +1,69 @@ +OffAll | api
+
+ +
+
+
+
+ +

Function OffAll

+
+
    + +
  • +

    OffAll unregisters all listeners +[v3 CHANGE] OffAll only unregisters listeners within the current window

    +
    +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/events.On.html b/v3/internal/api/docs/functions/events.On.html new file mode 100644 index 000000000..265ff8d68 --- /dev/null +++ b/v3/internal/api/docs/functions/events.On.html @@ -0,0 +1,95 @@ +On | api
+
+ +
+
+
+
+ +

Function On

+
+
    + +
  • +

    Registers an event listener that will be invoked every time the event is emitted

    + +

    Export

    +

    Returns

    A function to cancel the listener

    +
    +
    +

    Parameters

    +
    +

    Returns (() => void)

    +
      +
    • +
        +
      • (): void
      • +
      • +

        Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/events.OnMultiple.html b/v3/internal/api/docs/functions/events.OnMultiple.html new file mode 100644 index 000000000..f6c533f9f --- /dev/null +++ b/v3/internal/api/docs/functions/events.OnMultiple.html @@ -0,0 +1,97 @@ +OnMultiple | api
+
+ +
+
+
+
+ +

Function OnMultiple

+
+
    + +
  • +

    Registers an event listener that will be invoked maxCallbacks times before being destroyed

    + +

    Export

    +

    Returns

    A function to cancel the listener

    +
    +
    +

    Parameters

    +
      +
    • +
      eventName: string
    • +
    • +
      callback: ((data: CustomEvent) => void)
      +
    • +
    • +
      maxCallbacks: number
    +

    Returns (() => void)

    +
      +
    • +
        +
      • (): void
      • +
      • +

        Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/events.Once.html b/v3/internal/api/docs/functions/events.Once.html new file mode 100644 index 000000000..dd81b50c1 --- /dev/null +++ b/v3/internal/api/docs/functions/events.Once.html @@ -0,0 +1,95 @@ +Once | api
+
+ +
+
+
+
+ +

Function Once

+
+
    + +
  • +

    Registers an event listener that will be invoked once then destroyed

    + +

    Export

    +

    Returns

    A function to cancel the listener

    +
    +
    +

    Parameters

    +
    +

    Returns (() => void)

    +
      +
    • +
        +
      • (): void
      • +
      • +

        Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/events.dispatchCustomEvent.html b/v3/internal/api/docs/functions/events.dispatchCustomEvent.html new file mode 100644 index 000000000..73ce7ba91 --- /dev/null +++ b/v3/internal/api/docs/functions/events.dispatchCustomEvent.html @@ -0,0 +1,74 @@ +dispatchCustomEvent | api
+
+ +
+
+
+
+ +

Function dispatchCustomEvent

+
+
    + +
  • +

    dispatches an event to all listeners

    + +

    Export

    +
    +

    Parameters

    +
    +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/screens.GetAll.html b/v3/internal/api/docs/functions/screens.GetAll.html new file mode 100644 index 000000000..4369de0db --- /dev/null +++ b/v3/internal/api/docs/functions/screens.GetAll.html @@ -0,0 +1,63 @@ +GetAll | api
+
+ +
+
+
+
+ +

Function GetAll

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/screens.GetCurrent.html b/v3/internal/api/docs/functions/screens.GetCurrent.html new file mode 100644 index 000000000..6cf63230f --- /dev/null +++ b/v3/internal/api/docs/functions/screens.GetCurrent.html @@ -0,0 +1,63 @@ +GetCurrent | api
+
+ +
+
+
+
+ +

Function GetCurrent

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/screens.GetPrimary.html b/v3/internal/api/docs/functions/screens.GetPrimary.html new file mode 100644 index 000000000..b9ba3fe9a --- /dev/null +++ b/v3/internal/api/docs/functions/screens.GetPrimary.html @@ -0,0 +1,63 @@ +GetPrimary | api
+
+ +
+
+
+
+ +

Function GetPrimary

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/functions/window.newWindow.html b/v3/internal/api/docs/functions/window.newWindow.html new file mode 100644 index 000000000..9a289c1ac --- /dev/null +++ b/v3/internal/api/docs/functions/window.newWindow.html @@ -0,0 +1,281 @@ +newWindow | api
+
+ +
+
+
+
+ +

Function newWindow

+
+
    + +
  • +
    +

    Parameters

    +
      +
    • +
      id: number
    +

    Returns {
        Center: (() => Promise<any>);
        Close: (() => Promise<any>);
        Fullscreen: (() => Promise<any>);
        Hide: (() => Promise<any>);
        Maximise: (() => Promise<any>);
        Minimise: (() => Promise<any>);
        Position: (() => Promise<any>);
        Screen: (() => Promise<any>);
        SetAlwaysOnTop: ((b: boolean) => Promise<any>);
        SetBackgroundColour: ((r: number, g: number, b: number, a: number) => Promise<any>);
        SetMaxSize: ((width: number, height: number) => Promise<any>);
        SetMinSize: ((width: number, height: number) => Promise<any>);
        SetPosition: ((x: number, y: number) => Promise<any>);
        SetSize: ((width: number, height: number) => Promise<any>);
        SetTitle: ((title: string) => Promise<any>);
        Show: (() => Promise<any>);
        Size: (() => Promise<any>);
        ToggleMaximise: (() => Promise<any>);
        UnFullscreen: (() => Promise<any>);
        UnMaximise: (() => Promise<any>);
        UnMinimise: (() => Promise<any>);
    }

    +
      +
    • +
      Center: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Close: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Fullscreen: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Hide: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Maximise: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Minimise: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Position: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Screen: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      SetAlwaysOnTop: ((b: boolean) => Promise<any>)
      +
        +
      • +
          +
        • (b: boolean): Promise<any>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            b: boolean
          +

          Returns Promise<any>

    • +
    • +
      SetBackgroundColour: ((r: number, g: number, b: number, a: number) => Promise<any>)
      +
        +
      • +
          +
        • (r: number, g: number, b: number, a: number): Promise<any>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            r: number
          • +
          • +
            g: number
          • +
          • +
            b: number
          • +
          • +
            a: number
          +

          Returns Promise<any>

    • +
    • +
      SetMaxSize: ((width: number, height: number) => Promise<any>)
      +
        +
      • +
          +
        • (width: number, height: number): Promise<any>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            width: number
          • +
          • +
            height: number
          +

          Returns Promise<any>

    • +
    • +
      SetMinSize: ((width: number, height: number) => Promise<any>)
      +
        +
      • +
          +
        • (width: number, height: number): Promise<any>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            width: number
          • +
          • +
            height: number
          +

          Returns Promise<any>

    • +
    • +
      SetPosition: ((x: number, y: number) => Promise<any>)
      +
        +
      • +
          +
        • (x: number, y: number): Promise<any>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            x: number
          • +
          • +
            y: number
          +

          Returns Promise<any>

    • +
    • +
      SetSize: ((width: number, height: number) => Promise<any>)
      +
        +
      • +
          +
        • (width: number, height: number): Promise<any>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            width: number
          • +
          • +
            height: number
          +

          Returns Promise<any>

    • +
    • +
      SetTitle: ((title: string) => Promise<any>)
      +
        +
      • +
          +
        • (title: string): Promise<any>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            title: string
          +

          Returns Promise<any>

    • +
    • +
      Show: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      Size: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      ToggleMaximise: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      UnFullscreen: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      UnMaximise: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    • +
    • +
      UnMinimise: (() => Promise<any>)
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/index.html b/v3/internal/api/docs/index.html new file mode 100644 index 000000000..11d7e5385 --- /dev/null +++ b/v3/internal/api/docs/index.html @@ -0,0 +1,56 @@ +api
+
+ +
+
+
+
+

api

+
+
+

Index

+
+

Modules

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/dialogs.Button.html b/v3/internal/api/docs/interfaces/dialogs.Button.html new file mode 100644 index 000000000..a62df0d00 --- /dev/null +++ b/v3/internal/api/docs/interfaces/dialogs.Button.html @@ -0,0 +1,89 @@ +Button | api
+
+ +
+
+
+
+ +

Interface Button

+
+

Hierarchy

+
    +
  • Button
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
IsCancel: boolean
+
+ +
IsDefault: boolean
+
+ +
Label: string
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/dialogs.FileFilter.html b/v3/internal/api/docs/interfaces/dialogs.FileFilter.html new file mode 100644 index 000000000..95c15d014 --- /dev/null +++ b/v3/internal/api/docs/interfaces/dialogs.FileFilter.html @@ -0,0 +1,82 @@ +FileFilter | api
+
+ +
+
+
+
+ +

Interface FileFilter

+
+

Hierarchy

+
    +
  • FileFilter
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
DisplayName: string
+
+ +
Pattern: string
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/dialogs.MessageDialogOptions.html b/v3/internal/api/docs/interfaces/dialogs.MessageDialogOptions.html new file mode 100644 index 000000000..d68c9397e --- /dev/null +++ b/v3/internal/api/docs/interfaces/dialogs.MessageDialogOptions.html @@ -0,0 +1,96 @@ +MessageDialogOptions | api
+
+ +
+
+
+
+ +

Interface MessageDialogOptions

+
+

Hierarchy

+
    +
  • MessageDialogOptions
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
Buttons: Button[]
+
+ +
DialogType: DialogType
+
+ +
Message: string
+
+ +
Title: string
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/dialogs.OpenFileDialogOptions.html b/v3/internal/api/docs/interfaces/dialogs.OpenFileDialogOptions.html new file mode 100644 index 000000000..c4f391063 --- /dev/null +++ b/v3/internal/api/docs/interfaces/dialogs.OpenFileDialogOptions.html @@ -0,0 +1,173 @@ +OpenFileDialogOptions | api
+
+ +
+
+
+
+ +

Interface OpenFileDialogOptions

+
+

Hierarchy

+
    +
  • OpenFileDialogOptions
+
+
+
+ +
+
+

Properties

+
+ +
AllowsMultipleSelection: boolean
+
+ +
AllowsOtherFileTypes: boolean
+
+ +
ButtonText: string
+
+ +
CanChooseDirectories: boolean
+
+ +
CanChooseFiles: boolean
+
+ +
CanCreateDirectories: boolean
+
+ +
CanSelectHiddenExtension: boolean
+
+ +
Directory: string
+
+ +
Filters: FileFilter[]
+
+ +
HideExtension: boolean
+
+ +
Message: string
+
+ +
ResolvesAliases: boolean
+
+ +
ShowHiddenFiles: boolean
+
+ +
Title: string
+
+ +
TreatsFilePackagesAsDirectories: boolean
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/dialogs.SaveFileDialogOptions.html b/v3/internal/api/docs/interfaces/dialogs.SaveFileDialogOptions.html new file mode 100644 index 000000000..0aeea8b14 --- /dev/null +++ b/v3/internal/api/docs/interfaces/dialogs.SaveFileDialogOptions.html @@ -0,0 +1,138 @@ +SaveFileDialogOptions | api
+
+ +
+
+
+
+ +

Interface SaveFileDialogOptions

+
+

Hierarchy

+
    +
  • SaveFileDialogOptions
+
+
+
+ +
+
+

Properties

+
+ +
AllowOtherFileTypes: boolean
+
+ +
ButtonText: string
+
+ +
CanCreateDirectories: boolean
+
+ +
CanSelectHiddenExtension: boolean
+
+ +
Directory: string
+
+ +
Filename: string
+
+ +
HideExtension: boolean
+
+ +
Message: string
+
+ +
ShowHiddenFiles: boolean
+
+ +
TreatsFilePackagesAsDirectories: boolean
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/screens.Rect.html b/v3/internal/api/docs/interfaces/screens.Rect.html new file mode 100644 index 000000000..8bf7ecf47 --- /dev/null +++ b/v3/internal/api/docs/interfaces/screens.Rect.html @@ -0,0 +1,96 @@ +Rect | api
+
+ +
+
+
+
+ +

Interface Rect

+
+

Hierarchy

+
    +
  • Rect
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
Height: number
+
+ +
Width: number
+
+ +
X: number
+
+ +
Y: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/screens.Screen.html b/v3/internal/api/docs/interfaces/screens.Screen.html new file mode 100644 index 000000000..873ee5444 --- /dev/null +++ b/v3/internal/api/docs/interfaces/screens.Screen.html @@ -0,0 +1,138 @@ +Screen | api
+
+ +
+
+
+
+ +

Interface Screen

+
+

Hierarchy

+
    +
  • Screen
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
Bounds: Rect
+
+ +
ID: string
+
+ +
IsPrimary: boolean
+
+ +
Name: string
+
+ +
Rotation: number
+
+ +
Scale: number
+
+ +
Size: Size
+
+ +
WorkArea: Rect
+
+ +
X: number
+
+ +
Y: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/interfaces/screens.Size.html b/v3/internal/api/docs/interfaces/screens.Size.html new file mode 100644 index 000000000..8746328eb --- /dev/null +++ b/v3/internal/api/docs/interfaces/screens.Size.html @@ -0,0 +1,82 @@ +Size | api
+
+ +
+
+
+
+ +

Interface Size

+
+

Hierarchy

+
    +
  • Size
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
Height: number
+
+ +
Width: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/modules/application.html b/v3/internal/api/docs/modules/application.html new file mode 100644 index 000000000..5940049be --- /dev/null +++ b/v3/internal/api/docs/modules/application.html @@ -0,0 +1,65 @@ +application | api
+
+ +
+
+
+
+ +

Module application

+
+
+
+
+

Index

+
+

Functions

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/modules/clipboard.html b/v3/internal/api/docs/modules/clipboard.html new file mode 100644 index 000000000..90db12b34 --- /dev/null +++ b/v3/internal/api/docs/modules/clipboard.html @@ -0,0 +1,63 @@ +clipboard | api
+
+ +
+
+
+
+ +

Module clipboard

+
+
+
+
+

Index

+
+

Functions

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/modules/dialogs.html b/v3/internal/api/docs/modules/dialogs.html new file mode 100644 index 000000000..dd9a89480 --- /dev/null +++ b/v3/internal/api/docs/modules/dialogs.html @@ -0,0 +1,93 @@ +dialogs | api
+
+ +
+
+
+
+ +

Module dialogs

+
+
+
+
+

Index

+
+

Enumerations

+
+
+

Interfaces

+
+
+

Functions

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/modules/events.html b/v3/internal/api/docs/modules/events.html new file mode 100644 index 000000000..05e34dd8c --- /dev/null +++ b/v3/internal/api/docs/modules/events.html @@ -0,0 +1,83 @@ +events | api
+
+ +
+
+
+
+ +

Module events

+
+
+
+
+

Index

+
+

Classes

+
+
+

Variables

+
+
+

Functions

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/modules/screens.html b/v3/internal/api/docs/modules/screens.html new file mode 100644 index 000000000..8ecf61e2f --- /dev/null +++ b/v3/internal/api/docs/modules/screens.html @@ -0,0 +1,74 @@ +screens | api
+
+ +
+
+
+
+ +

Module screens

+
+
+
+
+

Index

+
+

Interfaces

+
+
+

Functions

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/modules/window.html b/v3/internal/api/docs/modules/window.html new file mode 100644 index 000000000..8a1429513 --- /dev/null +++ b/v3/internal/api/docs/modules/window.html @@ -0,0 +1,61 @@ +window | api
+
+ +
+
+
+
+ +

Module window

+
+
+
+
+

Index

+
+

Functions

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/docs/variables/events.eventListeners.html b/v3/internal/api/docs/variables/events.eventListeners.html new file mode 100644 index 000000000..6f003c98c --- /dev/null +++ b/v3/internal/api/docs/variables/events.eventListeners.html @@ -0,0 +1,62 @@ +eventListeners | api
+
+ +
+
+
+
+ +

Variable eventListenersConst

+
eventListeners: Map<any, any> = ...
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/v3/internal/api/package-lock.json b/v3/internal/api/package-lock.json new file mode 100644 index 000000000..05a00b583 --- /dev/null +++ b/v3/internal/api/package-lock.json @@ -0,0 +1,545 @@ +{ + "name": "api", + "version": "3.0.0-alpha.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "api", + "version": "3.0.0-alpha.0", + "license": "ISC", + "devDependencies": { + "@types/node": "^18.15.8", + "esbuild": "^0.17.13", + "nanoid": "^4.0.0", + "typedoc": "^0.23.28", + "typescript": "^5.0.2" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.13.tgz", + "integrity": "sha512-5tZZ/hLIfBmt7E8JsE5KbsknoAFmoElkg+A/gjyPtmSQvJjPf+9GsSJihid8VMa08lrsYyaEXOT9RLh3xXQONw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.13.tgz", + "integrity": "sha512-F5DgvJMV2ZEpLNpPCO7FEk1wy8O5tg6cikWSB6uvvncsgE1xgbPlm+Boio/4820C2/mj713X83X1h01v0qoeHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.13.tgz", + "integrity": "sha512-5m1UUslzpfVrumG3m3Zv2x9VNAcvMOQWJy009y6jt10tcHpzIq2/b0I0k4fz0QYqGSNS1GteRIhVPN4H7OyCXg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.13.tgz", + "integrity": "sha512-TXbXp/05r7heRsG8yWwbHw9diay+wXIyRNcIHFoNARRIGahYbTW/qwJzE37zkfxLIUPHgR/SyLTUlnTICg14ag==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.13.tgz", + "integrity": "sha512-Ku9Db2sblCxFvQdEO7X9nBaLR/S81uch81e2Q2+Os5z1NcnsFjuqhIYH0Gm6KNNpIKaEbC7gCLbiIPbLLMX4Pg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.13.tgz", + "integrity": "sha512-t1T5/nIf2j+FdSf1Fa3dcU0cXycr0nK4xJe52qjWa+1I249mM5NBY1ODjiabZxZ0x3CG05y4fd9bxfDLy9kQtA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.13.tgz", + "integrity": "sha512-/zbkgEO4gY2qGZr9UNAGI38w/FwUY4bx4EC88k9VeiCKNr3ukNgwH/oIgB5Z9/OqpkNLlcS4w9e2d/MIiy5fbw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.13.tgz", + "integrity": "sha512-RrhjzrCF6aCDH248nUAQoldnRmN7nHMxv85GOj5AH+qkxxYvcig7fnUmgANngntRu4btXhN9WKHMgQ5seERDMw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.13.tgz", + "integrity": "sha512-siu3QZrQ7eGrSttvFaRKyjT7kNRbUuHEKzCCyqRh19MbpGokGY13jbIsBEjx6JmH3T50hds325oweS9Ey2ihAQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.13.tgz", + "integrity": "sha512-ADHA1PqP5gIegehVP0RvxMmNPxpLgetI8QCwYOjUheGXKIKWSdUN8ZS3rusQv3NGZmFCpYdMZzFoI0QtzzGAdw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.13.tgz", + "integrity": "sha512-n1JQPxETmR0brkpWlJHeohReEPLH+m00bnJdNnFyHN3zLBt1QypevuZSmnmFWsC+7r7HTwWILj3lBDjtPH3ydg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.13.tgz", + "integrity": "sha512-d0pnD/j5KKQ43xtSIvOD+wNIy6D/Vh9GbXVRa3u4zCyiJMYWjxkPkbBzlEgNjdDmUM+5gBFen9k7B8Xscy+Myg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.13.tgz", + "integrity": "sha512-C9sMpa/VcGLjVtsT01sXtzZNS7bAZ+icUclkKkiUwBQ9hzT+J+/Xpj+EykI5hB3KgtxQVo4XUahanFoZNxbQ1g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.13.tgz", + "integrity": "sha512-jYkc5EpNpvjccAHNYekiAtklusVGWftR0VVLtng7dJzDyy+5adAsf1fOG3LllP0WALxS55/w6boLE/728J/bXw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.13.tgz", + "integrity": "sha512-4jAJI5O6E/hATL4lsrG2A+noDjZ377KlATVFKwV3SWaNHj+OvoXe/T84ScQIXEtPI7ndJyLkMYruXj8RR5Ilyw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.13.tgz", + "integrity": "sha512-eFLQhJq98qijGRcv9je/9M4Mz1suZ+pOtj62ArsLd0gubNGhhQDz6T30X2X3f1KZ8lkKkr+zN5vtZzx1GAMoFw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.13.tgz", + "integrity": "sha512-F8PXDeT+3eQpPjf4bmNJapPLu0SKKlWRGPQvBQqVS+YDGoMKnyyYp2UENLFMV8zT7kS39zKxZRZvUL3fMz/7Ww==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.13.tgz", + "integrity": "sha512-9jWfzbFCnIZdHjNs+00KQHArUbp7kjQDNmiuqkwGOQFs67m4/dKNupBv2DP5hTqVlQY4tW4RG3qpb6Y3zOHJeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.13.tgz", + "integrity": "sha512-ALbOMlTIBkAVi6KqYjONa7u2oH95RN7OpetFqMtjufFLBiSaayRuwUzhs2yuR9CfGT4qi0jv6HQDav+EG314TQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.13.tgz", + "integrity": "sha512-FJBLYL4PkrZGeuHzEqme+0DjNetxkJ+XbB+Aoeow7aQ53JCwsA0/mo8sS5aPkDHgCnMkN4A5GLoFTlDj3BKDrQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.13.tgz", + "integrity": "sha512-Qrvst9RkLz4qgi3hqswNliYuKW92/HGJnd7xLWkGaGPa8S4qsONf81FW0ebDc5iUHb0I7QJwQATutvghTabnFA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.13.tgz", + "integrity": "sha512-pZ/NIgz861XaUPlIkPFjP55nJ4PJa0o/CD4zgeRb1Q9FVE+8GvdB6ifJcK05jRhny5hKExhnRFIdgHmmCYH8vg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@types/node": { + "version": "18.15.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.8.tgz", + "integrity": "sha512-kzGNJZ57XEH7RdckxZ7wfRjB9hgZABF+NLgR1B2zogUvV0gmK0/60VYA4yb4oKZckPiiJlmmfpdqTfCN0VRX+Q==", + "dev": true + }, + "node_modules/ansi-sequence-parser": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-sequence-parser/-/ansi-sequence-parser-1.1.0.tgz", + "integrity": "sha512-lEm8mt52to2fT8GhciPCGeCXACSz2UwIN4X2e2LJSnZ5uAbn2/dsYdOmUXq0AtWS5cpAupysIneExOgH0Vd2TQ==", + "dev": true + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/esbuild": { + "version": "0.17.13", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.13.tgz", + "integrity": "sha512-4ixMwdErBcQHgTBeoxnowENCPKWFAGxgTyKHMK8gqn9sZaC7ZNWFKtim16g2rzQ2b/FYyy3lIUUJboFtjolhqg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.17.13", + "@esbuild/android-arm64": "0.17.13", + "@esbuild/android-x64": "0.17.13", + "@esbuild/darwin-arm64": "0.17.13", + "@esbuild/darwin-x64": "0.17.13", + "@esbuild/freebsd-arm64": "0.17.13", + "@esbuild/freebsd-x64": "0.17.13", + "@esbuild/linux-arm": "0.17.13", + "@esbuild/linux-arm64": "0.17.13", + "@esbuild/linux-ia32": "0.17.13", + "@esbuild/linux-loong64": "0.17.13", + "@esbuild/linux-mips64el": "0.17.13", + "@esbuild/linux-ppc64": "0.17.13", + "@esbuild/linux-riscv64": "0.17.13", + "@esbuild/linux-s390x": "0.17.13", + "@esbuild/linux-x64": "0.17.13", + "@esbuild/netbsd-x64": "0.17.13", + "@esbuild/openbsd-x64": "0.17.13", + "@esbuild/sunos-x64": "0.17.13", + "@esbuild/win32-arm64": "0.17.13", + "@esbuild/win32-ia32": "0.17.13", + "@esbuild/win32-x64": "0.17.13" + } + }, + "node_modules/jsonc-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", + "dev": true + }, + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "dev": true, + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/nanoid": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.1.tgz", + "integrity": "sha512-udKGtCCUafD3nQtJg9wBhRP3KMbPglUsgV5JVsXhvyBs/oefqb4sqMEhKBBgqZncYowu58p1prsZQBYvAj/Gww==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^14 || ^16 || >=18" + } + }, + "node_modules/shiki": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.1.tgz", + "integrity": "sha512-+Jz4nBkCBe0mEDqo1eKRcCdjRtrCjozmcbTUjbPTX7OOJfEbTZzlUWlZtGe3Gb5oV1/jnojhG//YZc3rs9zSEw==", + "dev": true, + "dependencies": { + "ansi-sequence-parser": "^1.1.0", + "jsonc-parser": "^3.2.0", + "vscode-oniguruma": "^1.7.0", + "vscode-textmate": "^8.0.0" + } + }, + "node_modules/typedoc": { + "version": "0.23.28", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.23.28.tgz", + "integrity": "sha512-9x1+hZWTHEQcGoP7qFmlo4unUoVJLB0H/8vfO/7wqTnZxg4kPuji9y3uRzEu0ZKez63OJAUmiGhUrtukC6Uj3w==", + "dev": true, + "dependencies": { + "lunr": "^2.3.9", + "marked": "^4.2.12", + "minimatch": "^7.1.3", + "shiki": "^0.14.1" + }, + "bin": { + "typedoc": "bin/typedoc" + }, + "engines": { + "node": ">= 14.14" + }, + "peerDependencies": { + "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x" + } + }, + "node_modules/typedoc/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/typedoc/node_modules/minimatch": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.3.tgz", + "integrity": "sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typescript": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz", + "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=12.20" + } + }, + "node_modules/vscode-oniguruma": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz", + "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==", + "dev": true + }, + "node_modules/vscode-textmate": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-8.0.0.tgz", + "integrity": "sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==", + "dev": true + } + } +} diff --git a/v3/internal/api/package.json b/v3/internal/api/package.json new file mode 100644 index 000000000..e3d027e72 --- /dev/null +++ b/v3/internal/api/package.json @@ -0,0 +1,29 @@ +{ + "name": "api", + "version": "3.0.0-alpha.0", + "description": "Wails API", + "scripts": { + "build": "rm -rf dist && node build.js && tsc --emitDeclarationOnly --declaration --outDir dist", + "test": "echo \"Error: no test specified\" && exit 1", + "docs": "typedoc" + }, + "files": [ + "dist/*" + ], + "module": "dist/index.esm.js", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "keywords": [ + "Wails", + "API" + ], + "author": "Lea Anthony", + "license": "ISC", + "devDependencies": { + "@types/node": "^18.15.8", + "esbuild": "^0.17.13", + "nanoid": "^4.0.0", + "typedoc": "^0.23.28", + "typescript": "^5.0.2" + } +} diff --git a/v3/internal/api/src/application.ts b/v3/internal/api/src/application.ts new file mode 100644 index 000000000..9a497b5a3 --- /dev/null +++ b/v3/internal/api/src/application.ts @@ -0,0 +1,27 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ + +import {newRuntimeCaller} from "./runtime"; + +let call : (method: string, args?: any) => Promise = newRuntimeCaller("application"); + +export function Hide() { + return call("Hide"); +} + +export function Show() { + return call("Show"); +} + +export function Quit() { + return call("Quit"); +} \ No newline at end of file diff --git a/v3/internal/api/src/calls.ts b/v3/internal/api/src/calls.ts new file mode 100644 index 000000000..9fb654788 --- /dev/null +++ b/v3/internal/api/src/calls.ts @@ -0,0 +1,66 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ + +import {newRuntimeCaller} from "./runtime"; + +import { nanoid } from "nanoid/non-secure"; + +let call = newRuntimeCaller("call"); + +let callResponses = new Map(); + +function generateID() { + let result; + do { + result = nanoid(); + } while (callResponses.has(result)); + return result; +} + +export function callCallback(id: string, data: any, isJSON: boolean) { + let p = callResponses.get(id); + if (p) { + if (isJSON) { + p.resolve(JSON.parse(data)); + } else { + p.resolve(data); + } + callResponses.delete(id); + } +} + +export function callErrorCallback(id: string, message: string) { + let p = callResponses.get(id); + if (p) { + p.reject(message); + callResponses.delete(id); + } +} + +function callBinding(type: string, options?: any) { + return new Promise((resolve, reject) => { + let id = generateID(); + options = options || {}; + options["call-id"] = id; + callResponses.set(id, {resolve, reject}); + call(type, options).catch((error) => { + reject(error); + callResponses.delete(id); + }); + }); +} + + +export function Call(options?:any) { + return callBinding("Call", options); +} + diff --git a/v3/internal/api/src/clipboard.ts b/v3/internal/api/src/clipboard.ts new file mode 100644 index 000000000..bb8ea2e9d --- /dev/null +++ b/v3/internal/api/src/clipboard.ts @@ -0,0 +1,25 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ + +import {newRuntimeCaller} from "./runtime"; + +let call : (method: string, args?: any) => Promise = newRuntimeCaller("clipboard"); + +// SetText sets the clipboard text +export function SetText(text: string) : Promise { + return call("SetText", {text}); +} + +// Text returns the clipboard text +export function Text(): Promise { + return call("Text"); +} \ No newline at end of file diff --git a/v3/internal/api/src/dialogs.ts b/v3/internal/api/src/dialogs.ts new file mode 100644 index 000000000..8742bcc6c --- /dev/null +++ b/v3/internal/api/src/dialogs.ts @@ -0,0 +1,147 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ + +import {newRuntimeCaller} from "./runtime"; + +import {nanoid} from 'nanoid/non-secure'; + +let call = newRuntimeCaller("dialog"); + +let dialogResponses = new Map(); + +function generateID() { + let result; + do { + result = nanoid(); + } while (dialogResponses.has(result)); + return result; +} + +export function dialogCallback(id: string, data: any, isJSON: boolean) { + let p = dialogResponses.get(id); + if (p) { + if (isJSON) { + p.resolve(JSON.parse(data)); + } else { + p.resolve(data); + } + dialogResponses.delete(id); + } +} + +export function dialogErrorCallback(id: string, message: string) { + let p = dialogResponses.get(id); + if (p) { + p.reject(message); + dialogResponses.delete(id); + } +} + +function dialog(type: string, options: any) { + return new Promise((resolve, reject) => { + let id = generateID(); + options = options || {}; + options["dialog-id"] = id; + dialogResponses.set(id, {resolve, reject}); + call(type, options).catch((error) => { + reject(error); + dialogResponses.delete(id); + }); + }); +} + +// DialogType is the type of dialog +export enum DialogType { + InfoDialog, + QuestionDialog, + WarningDialog, + ErrorDialog, + OpenDirectoryDialog +} + +// Button is a button in a dialog +export interface Button { + Label: string + IsCancel: boolean + IsDefault: boolean +} + +// MessageDialogOptions is the options for a message dialog +export interface MessageDialogOptions { + DialogType: DialogType + Title: string + Message: string + Buttons: Button[] +} + +// OpenFileDialogOptions is the options for an open file dialog +export interface OpenFileDialogOptions { + CanChooseDirectories: boolean + CanChooseFiles: boolean + CanCreateDirectories: boolean + ShowHiddenFiles: boolean + ResolvesAliases: boolean + AllowsMultipleSelection: boolean + HideExtension: boolean + CanSelectHiddenExtension: boolean + TreatsFilePackagesAsDirectories: boolean + AllowsOtherFileTypes: boolean + Filters: FileFilter[] + + Title: string + Message: string + ButtonText: string + Directory: string +} + +export interface FileFilter { + DisplayName: string // Filter information EG: "Image Files (*.jpg, *.png)" + Pattern: string // semicolon separated list of extensions, EG: "*.jpg;*.png" +} + +export interface SaveFileDialogOptions { + CanCreateDirectories: boolean + ShowHiddenFiles: boolean + CanSelectHiddenExtension: boolean + AllowOtherFileTypes: boolean + HideExtension: boolean + TreatsFilePackagesAsDirectories: boolean + Message: string + Directory: string + Filename: string + ButtonText: string +} + +export function Info(options: MessageDialogOptions) { + return dialog("Info", options); +} + +export function Warning(options: MessageDialogOptions) { + return dialog("Warning", options); +} + +export function Error(options: MessageDialogOptions) { + return dialog("Error", options); +} + +export function Question(options: MessageDialogOptions) { + return dialog("Question", options); +} + +export function OpenFile(options: OpenFileDialogOptions) { + return dialog("OpenFile", options); +} + +export function SaveFile(options: SaveFileDialogOptions) { + return dialog("SaveFile", options); +} + diff --git a/v3/internal/api/src/events.ts b/v3/internal/api/src/events.ts new file mode 100644 index 000000000..26409d0ee --- /dev/null +++ b/v3/internal/api/src/events.ts @@ -0,0 +1,192 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ + +import {newRuntimeCaller} from "./runtime"; + +let call = newRuntimeCaller("events"); + +/** + * The Listener class defines a listener! :-) + * + * @class Listener + */ +class Listener { + eventName: string; + private maxCallbacks: number; + Callback: (data?:any) => boolean; + /** + * Creates an instance of Listener. + * @param {string} eventName + * @param {function} callback + * @param {number} maxCallbacks + * @memberof Listener + */ + constructor(eventName: string, callback: (data:any) => void, maxCallbacks?: number) { + this.eventName = eventName; + // Default of -1 means infinite + this.maxCallbacks = maxCallbacks || -1; + // Callback invokes the callback with the given data + // Returns true if this listener should be destroyed + this.Callback = (data) => { + callback(data); + // If maxCallbacks is infinite, return false (do not destroy) + if (this.maxCallbacks === -1) { + return false; + } + // Decrement maxCallbacks. Return true if now 0, otherwise false + this.maxCallbacks -= 1; + return this.maxCallbacks === 0; + }; + } +} + + +/** + * CustomEvent defines a custom event. It is passed to event listeners. + * + * @class CustomEvent + */ +export class CustomEvent { + name: string; + data: any; + /** + * Creates an instance of CustomEvent. + * @param {string} name - Name of the event + * @param {any} data - Data associated with the event + * @memberof CustomEvent + */ + constructor(name: string, data:any) { + this.name = name; + this.data = data; + } +} + +export const eventListeners = new Map(); + +/** + * Registers an event listener that will be invoked `maxCallbacks` times before being destroyed + * + * @export + * @param {string} eventName + * @param {function(CustomEvent): void} callback + * @param {number} maxCallbacks + * @returns {function} A function to cancel the listener + */ +export function OnMultiple(eventName: string, callback: (data:CustomEvent) => void, maxCallbacks: number) { + let listeners = eventListeners.get(eventName) || []; + const thisListener = new Listener(eventName, callback, maxCallbacks); + listeners.push(thisListener); + eventListeners.set(eventName, listeners); + return () => listenerOff(thisListener); +} + +/** + * Registers an event listener that will be invoked every time the event is emitted + * + * @export + * @param {string} eventName + * @param {function(CustomEvent): void} callback + * @returns {function} A function to cancel the listener + */ +export function On(eventName: string, callback: (data:CustomEvent) => void) { + return OnMultiple(eventName, callback, -1); +} + +/** + * Registers an event listener that will be invoked once then destroyed + * + * @export + * @param {string} eventName + * @param {function(CustomEvent): void} callback + * @returns {function} A function to cancel the listener + */ +export function Once(eventName: string, callback: (data:CustomEvent) => void) { + return OnMultiple(eventName, callback, 1); +} + +/** + * listenerOff unregisters a listener previously registered with On + * + * @param {Listener} listener + */ +function listenerOff(listener: Listener) { + const eventName = listener.eventName; + // Remove local listener + let listeners = eventListeners.get(eventName).filter((l:Listener) => l !== listener); + if (listeners.length === 0) { + eventListeners.delete(eventName); + } else { + eventListeners.set(eventName, listeners); + } +} + +/** + * dispatches an event to all listeners + * + * @export + * @param {CustomEvent} event + */ +export function dispatchCustomEvent(event: CustomEvent) { + console.log("dispatching event: ", {event}); + let listeners = eventListeners.get(event.name); + if (listeners) { + // iterate listeners and call callback. If callback returns true, remove listener + let toRemove: any[] = []; + listeners.forEach((listener: Listener) => { + let remove = listener.Callback(event) + if (remove) { + toRemove.push(listener); + } + }); + // remove listeners + if (toRemove.length > 0) { + listeners = listeners.filter((l:Listener) => !toRemove.includes(l)); + if (listeners.length === 0) { + eventListeners.delete(event.name); + } else { + eventListeners.set(event.name, listeners); + } + } + } +} + +/** + * Off unregisters a listener previously registered with On, + * optionally multiple listeners can be unregistered via `additionalEventNames` + * + [v3 CHANGE] Off only unregisters listeners within the current window + * + * @param {string} eventName + * @param {...string} additionalEventNames + */ +export function Off(eventName: string, ...additionalEventNames: string[]) { + let eventsToRemove = [eventName, ...additionalEventNames]; + eventsToRemove.forEach(eventName => { + eventListeners.delete(eventName); + }) +} + +/** + * OffAll unregisters all listeners + * [v3 CHANGE] OffAll only unregisters listeners within the current window + * + */ +export function OffAll() { + eventListeners.clear(); +} + +/* + Emit emits an event to all listeners + */ +export function Emit(event: CustomEvent) { + return call("Emit", event); +} \ No newline at end of file diff --git a/v3/internal/api/src/index.ts b/v3/internal/api/src/index.ts new file mode 100644 index 000000000..932eb5418 --- /dev/null +++ b/v3/internal/api/src/index.ts @@ -0,0 +1,23 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +import * as application from "./application"; +import * as clipboard from "./clipboard"; +import * as dialogs from "./dialogs"; +import * as events from "./events"; +import * as screens from "./screens"; + +export { + application, + clipboard, + dialogs, + events, + screens, +} diff --git a/v3/internal/api/src/runtime.ts b/v3/internal/api/src/runtime.ts new file mode 100644 index 000000000..20a4ae0b5 --- /dev/null +++ b/v3/internal/api/src/runtime.ts @@ -0,0 +1,50 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ +const runtimeURL = window.location.origin + "/wails/runtime"; + +function runtimeCall(method: string, args?: any) : Promise { + let url = new URL(runtimeURL); + url.searchParams.append("method", method); + if (args) { + url.searchParams.append("args", JSON.stringify(args)); + } + return new Promise((resolve, reject) => { + fetch(url) + .then(response => { + if (response && response.ok) { + // check content type + let content_type = response.headers.get("Content-Type"); + if ( content_type && content_type.indexOf("application/json") !== -1) { + return response.json(); + } else { + return response.text(); + } + } + reject(Error(response.statusText)); + }) + .then(data => resolve(data)) + .catch(error => reject(error)); + }); +} + +export function newRuntimeCaller(object: string, id?: number) { + if (!id || id === -1) { + return function (method: string, args?: any) { + return runtimeCall(object + "." + method, args); + }; + } + return function (method: string, args?: any) { + args = args || {}; + args["windowID"] = id; + return runtimeCall(object + "." + method, args); + } +} \ No newline at end of file diff --git a/v3/internal/api/src/screens.ts b/v3/internal/api/src/screens.ts new file mode 100644 index 000000000..9bfbb31fe --- /dev/null +++ b/v3/internal/api/src/screens.ts @@ -0,0 +1,58 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ + +import {newRuntimeCaller} from "./runtime"; + +let call: (method: string, args?: any) => Promise = newRuntimeCaller("screens"); + +export interface Screen +{ + ID: string // A unique identifier for the display + Name: string // The name of the display + Scale: number // The scale factor of the display + X: number // The x-coordinate of the top-left corner of the rectangle + Y: number // The y-coordinate of the top-left corner of the rectangle + Size: Size // The size of the display + Bounds: Rect // The bounds of the display + WorkArea: Rect // The work area of the display + IsPrimary: boolean // Whether this is the primary display + Rotation: number // The rotation of the display +} + +export interface Rect +{ + X: number + Y: number + Width: number + Height: number +} + +export interface Size +{ + Width: number + Height: number +} + +// Get all screens +export function GetAll(): Promise { + return call("GetPrimary"); +} + +// Get the primary screen +export function GetPrimary(): Promise { + return call("GetPrimary"); +} + +// Get the screen the current window is on +export function GetCurrent(): Promise { + return call("GetCurrent"); +} \ No newline at end of file diff --git a/v3/internal/api/src/window.ts b/v3/internal/api/src/window.ts new file mode 100644 index 000000000..946a296e3 --- /dev/null +++ b/v3/internal/api/src/window.ts @@ -0,0 +1,49 @@ +/* + _ __ _ __ +| | / /___ _(_) /____ +| | /| / / __ `/ / / ___/ +| |/ |/ / /_/ / / (__ ) +|__/|__/\__,_/_/_/____/ +The electron alternative for Go +(c) Lea Anthony 2019-present +*/ + +/* jshint esversion: 9 */ + +import {newRuntimeCaller} from "./runtime"; + +export function newWindow(id: number) { + let call = newRuntimeCaller("window", id); + return { + // Reload: () => call('WR'), + // ReloadApp: () => call('WR'), + // SetSystemDefaultTheme: () => call('WASDT'), + // SetLightTheme: () => call('WALT'), + // SetDarkTheme: () => call('WADT'), + // IsFullscreen: () => call('WIF'), + // IsMaximized: () => call('WIM'), + // IsMinimized: () => call('WIMN'), + // IsWindowed: () => call('WIF'), + Center: () => call('Center'), + SetTitle: (title: string) => call('SetTitle', {title}), + Fullscreen: () => call('Fullscreen'), + UnFullscreen: () => call('UnFullscreen'), + SetSize: (width: number, height:number) => call('SetSize', {width,height}), + Size: () => { return call('Size') }, + SetMaxSize: (width:number, height:number) => call('SetMaxSize', {width,height}), + SetMinSize: (width:number, height:number) => call('SetMinSize', {width,height}), + SetAlwaysOnTop: (b:boolean) => call('SetAlwaysOnTop', {alwaysOnTop:b}), + SetPosition: (x:number, y:number) => call('SetPosition', {x,y}), + Position: () => { return call('Position') }, + Screen: () => { return call('Screen') }, + Hide: () => call('Hide'), + Maximise: () => call('Maximise'), + Show: () => call('Show'), + Close: () => call('Close'), + ToggleMaximise: () => call('ToggleMaximise'), + UnMaximise: () => call('UnMaximise'), + Minimise: () => call('Minimise'), + UnMinimise: () => call('UnMinimise'), + SetBackgroundColour: (r:number, g:number, b:number, a:number) => call('SetBackgroundColour', {r, g, b, a}), + } +} diff --git a/v3/internal/api/tsconfig.json b/v3/internal/api/tsconfig.json new file mode 100644 index 000000000..176b1ed5f --- /dev/null +++ b/v3/internal/api/tsconfig.json @@ -0,0 +1,109 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig to read more about this file */ + + /* Projects */ + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + + /* Language and Environment */ + "target": "es2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ + + /* Modules */ + "module": "esnext", /* Specify what module code is generated. */ + // "rootDir": "./", /* Specify the root folder within your source files. */ + "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ + // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ + // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ + // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + + /* JavaScript Support */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ + + /* Emit */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + // "outDir": "./", /* Specify an output folder for all emitted files. */ + // "removeComments": true, /* Disable emitting comments. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ + + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ + // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + + /* Type Checking */ + "strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + } +} diff --git a/v3/internal/api/typedoc.json b/v3/internal/api/typedoc.json new file mode 100644 index 000000000..1443fcc4a --- /dev/null +++ b/v3/internal/api/typedoc.json @@ -0,0 +1,16 @@ +{ + "entryPoints": [ + "src/application.ts", + "src/clipboard.ts", + "src/contextmenu.ts", + "src/dialogs.ts", + "src/events.ts", + "src/screens.ts", + "src/window.ts" + ], + "githubPages": false, + "readme": "none", + "out": "docs", + "json": "docs/api.json", + "pretty": true +} \ No newline at end of file diff --git a/v3/internal/runtime/desktop/main.js b/v3/internal/runtime/desktop/main.js index e2586943b..33c9d5d36 100644 --- a/v3/internal/runtime/desktop/main.js +++ b/v3/internal/runtime/desktop/main.js @@ -65,7 +65,7 @@ export function newRuntime(id) { OffAll, }, Window: newWindow(id), - } + }; } if (DEBUG) { diff --git a/v3/internal/runtime/desktop/wml.js b/v3/internal/runtime/desktop/wml.js index c45a9bbee..72b3ff1a8 100644 --- a/v3/internal/runtime/desktop/wml.js +++ b/v3/internal/runtime/desktop/wml.js @@ -24,9 +24,8 @@ function addWMLEventListeners() { return; } sendEvent(eventType); - } + }; // Remove existing listeners - element.removeEventListener(trigger, callback); // Add new listener @@ -59,7 +58,7 @@ function addWMLWindowListeners() { return; } callWindowMethod(windowMethod); - } + }; // Remove existing listeners element.removeEventListener(trigger, callback); diff --git a/v3/pkg/application/options_application.go b/v3/pkg/application/options_application.go index cfb11ee76..a806d0860 100644 --- a/v3/pkg/application/options_application.go +++ b/v3/pkg/application/options_application.go @@ -14,4 +14,6 @@ type Options struct { Silent bool CustomLoggers []logger.Output } + // InjectRuntime will inject the JS runtime into all created webview windows. + InjectRuntime bool } diff --git a/v3/pkg/application/webview_window.go b/v3/pkg/application/webview_window.go index dc2a7ddbb..ac9c7b16d 100644 --- a/v3/pkg/application/webview_window.go +++ b/v3/pkg/application/webview_window.go @@ -121,6 +121,9 @@ func NewWindow(options *WebviewWindowOptions) *WebviewWindow { result.messageProcessor = NewMessageProcessor(result) srv.UseRuntimeHandler(result.messageProcessor) + if !globalApplication.options.InjectRuntime { + srv.DisableRuntime() + } return result }