@wailsio/runtime 3.0.0-alpha.20 → 3.0.0-alpha.22

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.
Files changed (132) hide show
  1. package/docs/{functions/Window.Size.html → assets/icons.js} +15 -2
  2. package/docs/assets/icons.svg +1 -0
  3. package/docs/assets/main.js +4 -4
  4. package/docs/assets/navigation.js +1 -1
  5. package/docs/assets/search.js +1 -1
  6. package/docs/assets/style.css +2 -1
  7. package/docs/classes/Events.WailsEvent.html +4 -4
  8. package/docs/functions/Application.Hide.html +2 -2
  9. package/docs/functions/Application.Quit.html +2 -2
  10. package/docs/functions/Application.Show.html +2 -2
  11. package/docs/functions/Browser.OpenURL.html +3 -3
  12. package/docs/functions/Call.ByID.html +4 -4
  13. package/docs/functions/Call.ByName.html +4 -4
  14. package/docs/functions/Call.Call.html +3 -3
  15. package/docs/functions/Call.Plugin.html +5 -5
  16. package/docs/functions/Clipboard.SetText.html +3 -3
  17. package/docs/functions/Clipboard.Text.html +2 -2
  18. package/docs/functions/Dialogs.Error.html +2 -2
  19. package/docs/functions/Dialogs.Info.html +2 -2
  20. package/docs/functions/Dialogs.OpenFile.html +2 -2
  21. package/docs/functions/Dialogs.Question.html +2 -2
  22. package/docs/functions/Dialogs.SaveFile.html +2 -2
  23. package/docs/functions/Dialogs.Warning.html +2 -2
  24. package/docs/functions/Events.Emit.html +3 -3
  25. package/docs/functions/Events.Off.html +4 -4
  26. package/docs/functions/Events.OffAll.html +2 -2
  27. package/docs/functions/Events.On.html +4 -4
  28. package/docs/functions/Events.OnMultiple.html +5 -5
  29. package/docs/functions/Events.Once.html +4 -4
  30. package/docs/functions/Events.setup.html +1 -1
  31. package/docs/functions/Flags.GetFlag.html +3 -3
  32. package/docs/functions/Screens.GetAll.html +3 -3
  33. package/docs/functions/Screens.GetCurrent.html +3 -3
  34. package/docs/functions/Screens.GetPrimary.html +3 -3
  35. package/docs/functions/System.Capabilities.html +2 -2
  36. package/docs/functions/System.Environment.html +2 -2
  37. package/docs/functions/System.IsAMD64.html +2 -2
  38. package/docs/functions/System.IsARM.html +2 -2
  39. package/docs/functions/System.IsARM64.html +2 -2
  40. package/docs/functions/System.IsDarkMode.html +2 -2
  41. package/docs/functions/System.IsDebug.html +1 -1
  42. package/docs/functions/System.IsLinux.html +2 -2
  43. package/docs/functions/System.IsMac.html +2 -2
  44. package/docs/functions/System.IsWindows.html +2 -2
  45. package/docs/functions/System.invoke.html +1 -1
  46. package/docs/functions/WML.Enable.html +2 -0
  47. package/docs/functions/WML.Reload.html +2 -2
  48. package/docs/index.html +2 -2
  49. package/docs/interfaces/Dialogs.Button.html +7 -7
  50. package/docs/interfaces/Dialogs.FileFilter.html +5 -5
  51. package/docs/interfaces/Dialogs.MessageDialogOptions.html +9 -9
  52. package/docs/interfaces/Dialogs.OpenFileDialogOptions.html +33 -33
  53. package/docs/interfaces/Dialogs.SaveFileDialogOptions.html +35 -35
  54. package/docs/interfaces/Screens.Position.html +5 -5
  55. package/docs/interfaces/Screens.Rect.html +9 -9
  56. package/docs/interfaces/Screens.Screen.html +19 -19
  57. package/docs/interfaces/Screens.Size.html +5 -5
  58. package/docs/interfaces/System.EnvironmentInfo.html +11 -5
  59. package/docs/interfaces/System.OSInfo.html +9 -0
  60. package/docs/modules/Application.html +4 -4
  61. package/docs/modules/Browser.html +2 -2
  62. package/docs/modules/Call.html +5 -5
  63. package/docs/modules/Clipboard.html +3 -3
  64. package/docs/modules/Dialogs.html +12 -12
  65. package/docs/modules/Events.html +10 -10
  66. package/docs/modules/Flags.html +2 -2
  67. package/docs/modules/Screens.html +8 -9
  68. package/docs/modules/System.html +14 -13
  69. package/docs/modules/WML.html +3 -2
  70. package/docs/modules.html +12 -12
  71. package/docs/variables/Events.Types.html +1 -1
  72. package/docs/variables/Window.html +2 -0
  73. package/package.json +34 -31
  74. package/src/application.js +46 -46
  75. package/src/browser.js +24 -24
  76. package/src/calls.js +180 -161
  77. package/src/clipboard.js +35 -35
  78. package/src/contextmenu.js +97 -97
  79. package/src/dialogs.js +200 -200
  80. package/src/drag.js +119 -125
  81. package/src/event_types.js +5 -0
  82. package/src/events.js +140 -140
  83. package/src/flags.js +25 -25
  84. package/src/index.js +46 -95
  85. package/src/runtime.js +123 -122
  86. package/src/screens.js +77 -83
  87. package/src/system.js +128 -117
  88. package/src/utils.js +86 -0
  89. package/src/window.js +638 -316
  90. package/src/wml.js +250 -171
  91. package/tsconfig.json +19 -19
  92. package/types/event_types.d.ts +5 -0
  93. package/types/events.d.ts +5 -0
  94. package/types/index.d.ts +2 -2
  95. package/types/runtime.d.ts +1 -0
  96. package/types/screens.d.ts +1 -5
  97. package/types/system.d.ts +44 -4
  98. package/types/utils.d.ts +14 -0
  99. package/types/window.d.ts +400 -133
  100. package/types/wml.d.ts +6 -0
  101. package/docs/functions/Window.Center.html +0 -2
  102. package/docs/functions/Window.Close.html +0 -2
  103. package/docs/functions/Window.Fullscreen.html +0 -2
  104. package/docs/functions/Window.Get.html +0 -6
  105. package/docs/functions/Window.GetZoomLevel.html +0 -2
  106. package/docs/functions/Window.Height.html +0 -2
  107. package/docs/functions/Window.Hide.html +0 -2
  108. package/docs/functions/Window.Maximise.html +0 -2
  109. package/docs/functions/Window.Minimise.html +0 -2
  110. package/docs/functions/Window.RelativePosition.html +0 -2
  111. package/docs/functions/Window.Restore.html +0 -2
  112. package/docs/functions/Window.Screen-1.html +0 -2
  113. package/docs/functions/Window.SetAlwaysOnTop.html +0 -3
  114. package/docs/functions/Window.SetBackgroundColour.html +0 -6
  115. package/docs/functions/Window.SetMaxSize.html +0 -4
  116. package/docs/functions/Window.SetMinSize.html +0 -4
  117. package/docs/functions/Window.SetRelativePosition.html +0 -4
  118. package/docs/functions/Window.SetResizable.html +0 -3
  119. package/docs/functions/Window.SetSize.html +0 -4
  120. package/docs/functions/Window.SetTitle.html +0 -3
  121. package/docs/functions/Window.SetZoomLevel.html +0 -3
  122. package/docs/functions/Window.Show.html +0 -2
  123. package/docs/functions/Window.ToggleMaximise.html +0 -2
  124. package/docs/functions/Window.UnMaximise.html +0 -2
  125. package/docs/functions/Window.UnMinimise.html +0 -2
  126. package/docs/functions/Window.Width.html +0 -2
  127. package/docs/functions/Window.ZoomIn.html +0 -2
  128. package/docs/functions/Window.ZoomOut.html +0 -2
  129. package/docs/functions/Window.ZoomReset.html +0 -2
  130. package/docs/modules/Window.html +0 -32
  131. package/docs/types/Screens.Rotation.html +0 -2
  132. package/src/log.js +0 -13
package/types/window.d.ts CHANGED
@@ -1,140 +1,407 @@
1
- /**
2
- * Gets the specified window.
3
- *
4
- * @param {string} windowName - The name of the window to get.
5
- * @return {Object} - The specified window object.
6
- */
7
- export function Get(windowName: string): any;
8
- /**
9
- * Centers the window on the screen.
10
- */
11
- export function Center(): void;
12
- /**
13
- * Sets the title of the window.
14
- * @param {string} title - The title to set.
15
- */
16
- export function SetTitle(title: string): void;
17
- /**
18
- * Sets the window to fullscreen.
19
- */
20
- export function Fullscreen(): void;
21
- /**
22
- * Sets the size of the window.
23
- * @param {number} width - The width of the window.
24
- * @param {number} height - The height of the window.
25
- */
26
- export function SetSize(width: number, height: number): void;
27
- /**
28
- * Gets the size of the window.
29
- */
30
- export function Size(): any;
31
- /**
32
- * Sets the maximum size of the window.
33
- * @param {number} width - The maximum width of the window.
34
- * @param {number} height - The maximum height of the window.
35
- */
36
- export function SetMaxSize(width: number, height: number): void;
37
- /**
38
- * Sets the minimum size of the window.
39
- * @param {number} width - The minimum width of the window.
40
- * @param {number} height - The minimum height of the window.
41
- */
42
- export function SetMinSize(width: number, height: number): void;
43
- /**
44
- * Sets the window to always be on top.
45
- * @param {boolean} onTop - Whether the window should always be on top.
46
- */
47
- export function SetAlwaysOnTop(onTop: boolean): void;
48
- /**
49
- * Sets the relative position of the window.
50
- * @param {number} x - The x-coordinate of the window's position.
51
- * @param {number} y - The y-coordinate of the window's position.
52
- */
53
- export function SetRelativePosition(x: number, y: number): void;
54
- /**
55
- * Gets the relative position of the window.
56
- */
57
- export function RelativePosition(): any;
58
- /**
59
- * Gets the screen that the window is on.
60
- */
61
- export function Screen(): any;
1
+ export default thisWindow;
62
2
  export type Screen = import("./screens").Screen;
63
3
  /**
64
- * Hides the window.
65
- */
66
- export function Hide(): void;
67
- /**
68
- * Maximises the window.
69
- */
70
- export function Maximise(): void;
71
- /**
72
- * Un-maximises the window.
73
- */
74
- export function UnMaximise(): void;
75
- /**
76
- * Toggles the maximisation of the window.
77
- */
78
- export function ToggleMaximise(): void;
79
- /**
80
- * Minimises the window.
81
- */
82
- export function Minimise(): void;
83
- /**
84
- * Un-minimises the window.
85
- */
86
- export function UnMinimise(): void;
87
- /**
88
- * Restores the window.
89
- */
90
- export function Restore(): void;
91
- /**
92
- * Shows the window.
93
- */
94
- export function Show(): void;
95
- /**
96
- * Closes the window.
97
- */
98
- export function Close(): void;
99
- /**
100
- * Sets the background colour of the window.
101
- * @param {number} r - The red component of the colour.
102
- * @param {number} g - The green component of the colour.
103
- * @param {number} b - The blue component of the colour.
104
- * @param {number} a - The alpha component of the colour.
105
- */
106
- export function SetBackgroundColour(r: number, g: number, b: number, a: number): void;
107
- /**
108
- * Sets whether the window is resizable.
109
- * @param {boolean} resizable - Whether the window should be resizable.
110
- */
111
- export function SetResizable(resizable: boolean): void;
112
- /**
113
- * Gets the width of the window.
114
- */
115
- export function Width(): any;
116
- /**
117
- * Gets the height of the window.
4
+ * A record describing the position of a window.
118
5
  */
119
- export function Height(): any;
6
+ export type Position = {
7
+ /**
8
+ * - The horizontal position of the window
9
+ */
10
+ x: number;
11
+ /**
12
+ * - The vertical position of the window
13
+ */
14
+ y: number;
15
+ };
120
16
  /**
121
- * Zooms in the window.
17
+ * A record describing the size of a window.
122
18
  */
123
- export function ZoomIn(): void;
19
+ export type Size = {
20
+ /**
21
+ * - The width of the window
22
+ */
23
+ width: number;
24
+ /**
25
+ * - The height of the window
26
+ */
27
+ height: number;
28
+ };
124
29
  /**
125
- * Zooms out the window.
126
- */
127
- export function ZoomOut(): void;
128
- /**
129
- * Resets the zoom of the window.
130
- */
131
- export function ZoomReset(): void;
132
- /**
133
- * Gets the zoom level of the window.
134
- */
135
- export function GetZoomLevel(): any;
136
- /**
137
- * Sets the zoom level of the window.
138
- * @param {number} zoomLevel - The zoom level to set.
30
+ * The window within which the script is running.
31
+ *
32
+ * @type {Window}
139
33
  */
140
- export function SetZoomLevel(zoomLevel: number): void;
34
+ declare const thisWindow: Window;
35
+ declare class Window {
36
+ /**
37
+ * Initialises a window object with the specified name.
38
+ *
39
+ * @private
40
+ * @param {string} name - The name of the target window.
41
+ */
42
+ private constructor();
43
+ /**
44
+ * Gets the specified window.
45
+ *
46
+ * @public
47
+ * @param {string} name - The name of the window to get.
48
+ * @return {Window} - The corresponding window object.
49
+ */
50
+ public Get(name: string): Window;
51
+ /**
52
+ * Returns the absolute position of the window to the screen.
53
+ *
54
+ * @public
55
+ * @return {Promise<Position>} - The current absolute position of the window.
56
+ */
57
+ public AbsolutePosition(): Promise<Position>;
58
+ /**
59
+ * Centers the window on the screen.
60
+ *
61
+ * @public
62
+ * @return {Promise<void>}
63
+ */
64
+ public Center(): Promise<void>;
65
+ /**
66
+ * Closes the window.
67
+ *
68
+ * @public
69
+ * @return {Promise<void>}
70
+ */
71
+ public Close(): Promise<void>;
72
+ /**
73
+ * Disables min/max size constraints.
74
+ *
75
+ * @public
76
+ * @return {Promise<void>}
77
+ */
78
+ public DisableSizeConstraints(): Promise<void>;
79
+ /**
80
+ * Enables min/max size constraints.
81
+ *
82
+ * @public
83
+ * @return {Promise<void>}
84
+ */
85
+ public EnableSizeConstraints(): Promise<void>;
86
+ /**
87
+ * Focuses the window.
88
+ *
89
+ * @public
90
+ * @return {Promise<void>}
91
+ */
92
+ public Focus(): Promise<void>;
93
+ /**
94
+ * Forces the window to reload the page assets.
95
+ *
96
+ * @public
97
+ * @return {Promise<void>}
98
+ */
99
+ public ForceReload(): Promise<void>;
100
+ /**
101
+ * Doc.
102
+ *
103
+ * @public
104
+ * @return {Promise<void>}
105
+ */
106
+ public Fullscreen(): Promise<void>;
107
+ /**
108
+ * Returns the screen that the window is on.
109
+ *
110
+ * @public
111
+ * @return {Promise<Screen>} - The screen the window is currently on
112
+ */
113
+ public GetScreen(): Promise<Screen>;
114
+ /**
115
+ * Returns the current zoom level of the window.
116
+ *
117
+ * @public
118
+ * @return {Promise<number>} - The current zoom level
119
+ */
120
+ public GetZoom(): Promise<number>;
121
+ /**
122
+ * Returns the height of the window.
123
+ *
124
+ * @public
125
+ * @return {Promise<number>} - The current height of the window
126
+ */
127
+ public Height(): Promise<number>;
128
+ /**
129
+ * Hides the window.
130
+ *
131
+ * @public
132
+ * @return {Promise<void>}
133
+ */
134
+ public Hide(): Promise<void>;
135
+ /**
136
+ * Returns true if the window is focused.
137
+ *
138
+ * @public
139
+ * @return {Promise<boolean>} - Whether the window is currently focused
140
+ */
141
+ public IsFocused(): Promise<boolean>;
142
+ /**
143
+ * Returns true if the window is fullscreen.
144
+ *
145
+ * @public
146
+ * @return {Promise<boolean>} - Whether the window is currently fullscreen
147
+ */
148
+ public IsFullscreen(): Promise<boolean>;
149
+ /**
150
+ * Returns true if the window is maximised.
151
+ *
152
+ * @public
153
+ * @return {Promise<boolean>} - Whether the window is currently maximised
154
+ */
155
+ public IsMaximised(): Promise<boolean>;
156
+ /**
157
+ * Returns true if the window is minimised.
158
+ *
159
+ * @public
160
+ * @return {Promise<boolean>} - Whether the window is currently minimised
161
+ */
162
+ public IsMinimised(): Promise<boolean>;
163
+ /**
164
+ * Maximises the window.
165
+ *
166
+ * @public
167
+ * @return {Promise<void>}
168
+ */
169
+ public Maximise(): Promise<void>;
170
+ /**
171
+ * Minimises the window.
172
+ *
173
+ * @public
174
+ * @return {Promise<void>}
175
+ */
176
+ public Minimise(): Promise<void>;
177
+ /**
178
+ * Returns the name of the window.
179
+ *
180
+ * @public
181
+ * @return {Promise<string>} - The name of the window
182
+ */
183
+ public Name(): Promise<string>;
184
+ /**
185
+ * Opens the development tools pane.
186
+ *
187
+ * @public
188
+ * @return {Promise<void>}
189
+ */
190
+ public OpenDevTools(): Promise<void>;
191
+ /**
192
+ * Returns the relative position of the window to the screen.
193
+ *
194
+ * @public
195
+ * @return {Promise<Position>} - The current relative position of the window
196
+ */
197
+ public RelativePosition(): Promise<Position>;
198
+ /**
199
+ * Reloads the page assets.
200
+ *
201
+ * @public
202
+ * @return {Promise<void>}
203
+ */
204
+ public Reload(): Promise<void>;
205
+ /**
206
+ * Returns true if the window is resizable.
207
+ *
208
+ * @public
209
+ * @return {Promise<boolean>} - Whether the window is currently resizable
210
+ */
211
+ public Resizable(): Promise<boolean>;
212
+ /**
213
+ * Restores the window to its previous state if it was previously minimised, maximised or fullscreen.
214
+ *
215
+ * @public
216
+ * @return {Promise<void>}
217
+ */
218
+ public Restore(): Promise<void>;
219
+ /**
220
+ * Sets the absolute position of the window to the screen.
221
+ *
222
+ * @public
223
+ * @param {number} x - The desired horizontal absolute position of the window
224
+ * @param {number} y - The desired vertical absolute position of the window
225
+ * @return {Promise<void>}
226
+ */
227
+ public SetAbsolutePosition(x: number, y: number): Promise<void>;
228
+ /**
229
+ * Sets the window to be always on top.
230
+ *
231
+ * @public
232
+ * @param {boolean} alwaysOnTop - Whether the window should stay on top
233
+ * @return {Promise<void>}
234
+ */
235
+ public SetAlwaysOnTop(alwaysOnTop: boolean): Promise<void>;
236
+ /**
237
+ * Sets the background colour of the window.
238
+ *
239
+ * @public
240
+ * @param {number} r - The desired red component of the window background
241
+ * @param {number} g - The desired green component of the window background
242
+ * @param {number} b - The desired blue component of the window background
243
+ * @param {number} a - The desired alpha component of the window background
244
+ * @return {Promise<void>}
245
+ */
246
+ public SetBackgroundColour(r: number, g: number, b: number, a: number): Promise<void>;
247
+ /**
248
+ * Removes the window frame and title bar.
249
+ *
250
+ * @public
251
+ * @param {boolean} frameless - Whether the window should be frameless
252
+ * @return {Promise<void>}
253
+ */
254
+ public SetFrameless(frameless: boolean): Promise<void>;
255
+ /**
256
+ * Disables the system fullscreen button.
257
+ *
258
+ * @public
259
+ * @param {boolean} enabled - Whether the fullscreen button should be enabled
260
+ * @return {Promise<void>}
261
+ */
262
+ public SetFullscreenButtonEnabled(enabled: boolean): Promise<void>;
263
+ /**
264
+ * Sets the maximum size of the window.
265
+ *
266
+ * @public
267
+ * @param {number} width - The desired maximum width of the window
268
+ * @param {number} height - The desired maximum height of the window
269
+ * @return {Promise<void>}
270
+ */
271
+ public SetMaxSize(width: number, height: number): Promise<void>;
272
+ /**
273
+ * Sets the minimum size of the window.
274
+ *
275
+ * @public
276
+ * @param {number} width - The desired minimum width of the window
277
+ * @param {number} height - The desired minimum height of the window
278
+ * @return {Promise<void>}
279
+ */
280
+ public SetMinSize(width: number, height: number): Promise<void>;
281
+ /**
282
+ * Sets the relative position of the window to the screen.
283
+ *
284
+ * @public
285
+ * @param {number} x - The desired horizontal relative position of the window
286
+ * @param {number} y - The desired vertical relative position of the window
287
+ * @return {Promise<void>}
288
+ */
289
+ public SetRelativePosition(x: number, y: number): Promise<void>;
290
+ /**
291
+ * Sets whether the window is resizable.
292
+ *
293
+ * @public
294
+ * @param {boolean} resizable - Whether the window should be resizable
295
+ * @return {Promise<void>}
296
+ */
297
+ public SetResizable(resizable: boolean): Promise<void>;
298
+ /**
299
+ * Sets the size of the window.
300
+ *
301
+ * @public
302
+ * @param {number} width - The desired width of the window
303
+ * @param {number} height - The desired height of the window
304
+ * @return {Promise<void>}
305
+ */
306
+ public SetSize(width: number, height: number): Promise<void>;
307
+ /**
308
+ * Sets the title of the window.
309
+ *
310
+ * @public
311
+ * @param {string} title - The desired title of the window
312
+ * @return {Promise<void>}
313
+ */
314
+ public SetTitle(title: string): Promise<void>;
315
+ /**
316
+ * Sets the zoom level of the window.
317
+ *
318
+ * @public
319
+ * @param {number} zoom - The desired zoom level
320
+ * @return {Promise<void>}
321
+ */
322
+ public SetZoom(zoom: number): Promise<void>;
323
+ /**
324
+ * Shows the window.
325
+ *
326
+ * @public
327
+ * @return {Promise<void>}
328
+ */
329
+ public Show(): Promise<void>;
330
+ /**
331
+ * Returns the size of the window.
332
+ *
333
+ * @public
334
+ * @return {Promise<Size>} - The current size of the window
335
+ */
336
+ public Size(): Promise<Size>;
337
+ /**
338
+ * Toggles the window between fullscreen and normal.
339
+ *
340
+ * @public
341
+ * @return {Promise<void>}
342
+ */
343
+ public ToggleFullscreen(): Promise<void>;
344
+ /**
345
+ * Toggles the window between maximised and normal.
346
+ *
347
+ * @public
348
+ * @return {Promise<void>}
349
+ */
350
+ public ToggleMaximise(): Promise<void>;
351
+ /**
352
+ * Un-fullscreens the window.
353
+ *
354
+ * @public
355
+ * @return {Promise<void>}
356
+ */
357
+ public UnFullscreen(): Promise<void>;
358
+ /**
359
+ * Un-maximises the window.
360
+ *
361
+ * @public
362
+ * @return {Promise<void>}
363
+ */
364
+ public UnMaximise(): Promise<void>;
365
+ /**
366
+ * Un-minimises the window.
367
+ *
368
+ * @public
369
+ * @return {Promise<void>}
370
+ */
371
+ public UnMinimise(): Promise<void>;
372
+ /**
373
+ * Returns the width of the window.
374
+ *
375
+ * @public
376
+ * @return {Promise<number>} - The current width of the window
377
+ */
378
+ public Width(): Promise<number>;
379
+ /**
380
+ * Zooms the window.
381
+ *
382
+ * @public
383
+ * @return {Promise<void>}
384
+ */
385
+ public Zoom(): Promise<void>;
386
+ /**
387
+ * Increases the zoom level of the webview content.
388
+ *
389
+ * @public
390
+ * @return {Promise<void>}
391
+ */
392
+ public ZoomIn(): Promise<void>;
393
+ /**
394
+ * Decreases the zoom level of the webview content.
395
+ *
396
+ * @public
397
+ * @return {Promise<void>}
398
+ */
399
+ public ZoomOut(): Promise<void>;
400
+ /**
401
+ * Resets the zoom level of the webview content.
402
+ *
403
+ * @public
404
+ * @return {Promise<void>}
405
+ */
406
+ public ZoomReset(): Promise<void>;
407
+ }
package/types/wml.d.ts CHANGED
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Schedules an automatic reload of WML to be performed as soon as the document is fully loaded.
3
+ *
4
+ * @return {void}
5
+ */
6
+ export function Enable(): void;
1
7
  /**
2
8
  * Reloads the WML page by adding necessary event listeners and browser listeners.
3
9
  *
@@ -1,2 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Center | @wailsio/runtime</title><meta name="description" content="Documentation for @wailsio/runtime"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@wailsio/runtime</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@wailsio/runtime</a></li><li><a href="../modules/Window.html">Window</a></li><li><a href="Window.Center.html">Center</a></li></ul><h1>Function Center</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="Center" class="tsd-anchor"></a><span class="tsd-kind-call-signature">Center</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#Center" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Centers the window on the screen.</p>
2
- </div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/wailsapp/wails/blob/5115b294/v3/internal/runtime/desktop/@wailsio/runtime/src/window.js#L102">window.js:102</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>@wailsio/runtime</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li><a href="../modules/Application.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Application</a></li><li><a href="../modules/Browser.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Browser</a></li><li><a href="../modules/Call.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Call</a></li><li><a href="../modules/Clipboard.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Clipboard</a></li><li><a href="../modules/Dialogs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Dialogs</a></li><li><a href="../modules/Events.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Events</a></li><li><a href="../modules/Flags.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Flags</a></li><li><a href="../modules/Screens.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Screens</a></li><li><a href="../modules/System.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>System</a></li><li><a href="../modules/WML.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>WML</a></li><li><a href="../modules/Window.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg>Window</a></li></ul></nav></div></div></div><div class="tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><svg style="display: none"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg></body></html>