@wailsio/runtime 3.0.0-alpha.13 → 3.0.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -2
- package/src/calls.js +38 -2
- package/src/dialogs.js +69 -8
- package/src/event_types.js +181 -0
- package/src/events.js +19 -5
- package/src/index.js +5 -27
- package/src/screens.js +12 -1
- package/src/window.js +242 -21
- package/src/wml.js +22 -1
- package/tsconfig.json +19 -19
- package/types/calls.d.ts +0 -2
- package/types/dialogs.d.ts +184 -28
- package/types/event_types.d.ts +181 -0
- package/types/events.d.ts +206 -3
- package/types/index.d.ts +12 -49
- package/types/screens.d.ts +38 -1
- package/types/window.d.ts +174 -9
- package/types/wml.d.ts +6 -6
- package/src/index.d.ts +0 -136
package/types/wml.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reloads the WML
|
|
3
|
-
*
|
|
4
|
-
* @return {void}
|
|
5
|
-
*/
|
|
6
|
-
export function Reload(): void;
|
|
1
|
+
/**
|
|
2
|
+
* Reloads the WML page by adding necessary event listeners and browser listeners.
|
|
3
|
+
*
|
|
4
|
+
* @return {void}
|
|
5
|
+
*/
|
|
6
|
+
export function Reload(): void;
|
package/src/index.d.ts
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
declare module '@wailsio/runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Describes the properties of a Button object.
|
|
5
|
-
*/
|
|
6
|
-
export interface Button {
|
|
7
|
-
// Text that appears within the button.
|
|
8
|
-
Label?: string;
|
|
9
|
-
// True if the button should cancel an operation when clicked.
|
|
10
|
-
IsCancel?: boolean;
|
|
11
|
-
// True if the button should be the default action when the user presses enter.
|
|
12
|
-
IsDefault?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Describes the properties of a FileFilter object.
|
|
17
|
-
*/
|
|
18
|
-
export interface FileFilter {
|
|
19
|
-
// Display name for the filter, it could be "Text Files", "Images" etc.
|
|
20
|
-
DisplayName?: string;
|
|
21
|
-
// Pattern to match for the filter, e.g. "*.txt;*.md" for text markdown files.
|
|
22
|
-
Pattern?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Describes the properties of a Position object.
|
|
27
|
-
*/
|
|
28
|
-
export interface Position {
|
|
29
|
-
X: number;
|
|
30
|
-
Y: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Describes the properties of a Size object.
|
|
35
|
-
* Extends the properties of Position.
|
|
36
|
-
*/
|
|
37
|
-
export type Size = Position;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Describes the properties of a Rect object.
|
|
41
|
-
* Extends the properties of Size.
|
|
42
|
-
*/
|
|
43
|
-
export type Rect = Size & Position;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Describes the possible rotations a Screen can have.
|
|
47
|
-
*/
|
|
48
|
-
export enum Rotation {
|
|
49
|
-
Zero = 0,
|
|
50
|
-
Ninety = 90,
|
|
51
|
-
OneEighty = 180,
|
|
52
|
-
TwoSeventy = 270
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Describes the properties of a Screen object.
|
|
57
|
-
*/
|
|
58
|
-
export interface Screen {
|
|
59
|
-
// Unique identifier for the screen.
|
|
60
|
-
Id: string;
|
|
61
|
-
// Human readable name of the screen.
|
|
62
|
-
Name: string;
|
|
63
|
-
// The resolution scale of the screen. 1 = standard resolution, 2 = high (Retina), etc.
|
|
64
|
-
Scale: number;
|
|
65
|
-
// Contains the X and Y coordinates of the screen's position.
|
|
66
|
-
Position: Position;
|
|
67
|
-
// Contains the width and height of the screen.
|
|
68
|
-
Size: Size;
|
|
69
|
-
// Contains the bounds of the screen in terms of X, Y, Width, and Height.
|
|
70
|
-
Bounds: Rect;
|
|
71
|
-
// Contains the area of the screen that is actually usable (excluding taskbar and other system UI).
|
|
72
|
-
WorkArea: Rect;
|
|
73
|
-
// True if this is the primary monitor selected by the user in the operating system.
|
|
74
|
-
IsPrimary: boolean;
|
|
75
|
-
// The rotation of the screen. Can be one of 0, 90, 180, 270 degrees.
|
|
76
|
-
Rotation: Rotation;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Describes the properties of a MessageDialogOptions object.
|
|
81
|
-
*/
|
|
82
|
-
export interface MessageDialogOptions {
|
|
83
|
-
// The title of the dialog window.
|
|
84
|
-
Title?: string;
|
|
85
|
-
// The main message to show in the dialog.
|
|
86
|
-
Message?: string;
|
|
87
|
-
// Array of button options to show in the dialog.
|
|
88
|
-
Buttons?: Button[];
|
|
89
|
-
// True if the dialog should appear detached from the main window (if applicable).
|
|
90
|
-
Detached?: boolean;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Describes the properties common to OpenFileDialogOptions and SaveFileDialogOptions objects.
|
|
95
|
-
*/
|
|
96
|
-
export interface DialogOptions {
|
|
97
|
-
CanChooseDirectories?: boolean;
|
|
98
|
-
CanChooseFiles?: boolean;
|
|
99
|
-
CanCreateDirectories?: boolean;
|
|
100
|
-
ShowHiddenFiles?: boolean;
|
|
101
|
-
ResolvesAliases?: boolean;
|
|
102
|
-
AllowsMultipleSelection?: boolean;
|
|
103
|
-
HideExtension?: boolean;
|
|
104
|
-
CanSelectHiddenExtension?: boolean;
|
|
105
|
-
TreatsFilePackagesAsDirectories?: boolean;
|
|
106
|
-
AllowsOtherFiletypes?: boolean;
|
|
107
|
-
Filters?: FileFilter[];
|
|
108
|
-
Title?: string;
|
|
109
|
-
Message?: string;
|
|
110
|
-
ButtonText?: string;
|
|
111
|
-
Directory?: string;
|
|
112
|
-
Detached?: boolean;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Describes properties unique to OpenFileDialogOptions.
|
|
117
|
-
*/
|
|
118
|
-
export type OpenFileDialogOptions = DialogOptions;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Describes properties unique to SaveFileDialogOptions.
|
|
122
|
-
*/
|
|
123
|
-
export type SaveFileDialogOptions = DialogOptions & {
|
|
124
|
-
// Default filename to use for the save dialog.
|
|
125
|
-
Filename?: string;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Describes the properties of a WailsEvent object.
|
|
130
|
-
*/
|
|
131
|
-
export interface WailsEvent {
|
|
132
|
-
// The name of the event.
|
|
133
|
-
Name: string;
|
|
134
|
-
// Any data associated with the event.
|
|
135
|
-
Data?: unknown;
|
|
136
|
-
}
|