@ts-for-gir/lib 3.0.0-beta.12 → 3.0.0

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 (212) hide show
  1. package/lib/constants.d.ts +7 -3
  2. package/lib/constants.js +14 -2
  3. package/lib/constants.js.map +1 -1
  4. package/lib/dependency-manager.d.ts +52 -3
  5. package/lib/dependency-manager.js +138 -18
  6. package/lib/dependency-manager.js.map +1 -1
  7. package/lib/gir-module.d.ts +12 -5
  8. package/lib/gir-module.js +25 -8
  9. package/lib/gir-module.js.map +1 -1
  10. package/lib/index.d.ts +3 -1
  11. package/lib/index.js +3 -1
  12. package/lib/index.js.map +1 -1
  13. package/lib/injection/classes/gjs/index.js +3 -3
  14. package/lib/injection/classes/index.js +1 -1
  15. package/lib/injection/classes/node-gtk/index.js +8 -8
  16. package/lib/messages.d.ts +0 -2
  17. package/lib/messages.js +1 -3
  18. package/lib/messages.js.map +1 -1
  19. package/lib/package-data-parser.d.ts +13 -0
  20. package/lib/package-data-parser.js +67 -0
  21. package/lib/package-data-parser.js.map +1 -0
  22. package/lib/package-data.d.ts +9 -0
  23. package/lib/package-data.js +41 -0
  24. package/lib/package-data.js.map +1 -0
  25. package/lib/symtable.js +2 -1
  26. package/lib/symtable.js.map +1 -1
  27. package/lib/template-processor.d.ts +59 -19
  28. package/lib/template-processor.js +128 -41
  29. package/lib/template-processor.js.map +1 -1
  30. package/lib/transformation.d.ts +2 -1
  31. package/lib/transformation.js +44 -26
  32. package/lib/transformation.js.map +1 -1
  33. package/lib/types/construct-name.d.ts +1 -1
  34. package/lib/types/dependency.d.ts +17 -2
  35. package/lib/types/generate-config.d.ts +9 -2
  36. package/lib/types/index.d.ts +5 -0
  37. package/lib/types/index.js +5 -0
  38. package/lib/types/index.js.map +1 -1
  39. package/lib/types/module-type.d.ts +1 -1
  40. package/lib/types/package-data-parsed.d.ts +28 -0
  41. package/lib/types/package-data-parsed.js +2 -0
  42. package/lib/types/package-data-parsed.js.map +1 -0
  43. package/lib/types/package-data.d.ts +23 -0
  44. package/lib/types/package-data.js +2 -0
  45. package/lib/types/package-data.js.map +1 -0
  46. package/lib/types/package-section-parsed.d.ts +8 -0
  47. package/lib/types/package-section-parsed.js +2 -0
  48. package/lib/types/package-section-parsed.js.map +1 -0
  49. package/lib/types/package-section.d.ts +8 -0
  50. package/lib/types/package-section.js +2 -0
  51. package/lib/types/package-section.js.map +1 -0
  52. package/lib/types/parsed-package-data.d.ts +6 -0
  53. package/lib/types/parsed-package-data.js +2 -0
  54. package/lib/types/parsed-package-data.js.map +1 -0
  55. package/lib/types/template-data.d.ts +2 -1
  56. package/lib/types/transformation-case.d.ts +1 -1
  57. package/lib/types/transformations.d.ts +1 -1
  58. package/lib/types/user-config.d.ts +6 -2
  59. package/lib/utils.d.ts +31 -16
  60. package/lib/utils.js +68 -30
  61. package/lib/utils.js.map +1 -1
  62. package/package.json +20 -19
  63. package/templates/README.md +102 -0
  64. package/templates/gjs/README-GJS.md +109 -0
  65. package/templates/gjs/ambient.d.ts +59 -0
  66. package/templates/gjs/cairo-1.0.d.ts +9 -0
  67. package/templates/gjs/cairo.d.ts +8 -0
  68. package/templates/gjs/cairo.js +11 -0
  69. package/templates/gjs/gettext.d.ts +41 -0
  70. package/templates/gjs/gettext.js +11 -0
  71. package/templates/{Gjs/Gio-2.0.d.ts → gjs/gio-2.0.d.ts} +1 -1
  72. package/templates/{Gjs/index.d.ts → gjs/gjs.d.ts} +221 -58
  73. package/templates/gjs/gjs.js +10 -0
  74. package/templates/{Gjs/GObject-2.0.d.ts → gjs/gobject-2.0.d.ts} +1 -1
  75. package/templates/gjs/module-ambient.d.ts +31 -0
  76. package/templates/gjs/module-import.d.ts +33 -0
  77. package/templates/gjs/module.append.d.ts +1 -0
  78. package/templates/gjs/module.d.ts +12 -0
  79. package/templates/gjs/module.js +17 -0
  80. package/templates/gjs/system.d.ts +32 -0
  81. package/templates/gjs/system.js +11 -0
  82. package/templates/gjs/tsconfig.alias.json +12 -0
  83. package/templates/node-gtk/README-NODE-GTK.md +71 -0
  84. package/templates/node-gtk/ambient.d.ts +19 -0
  85. package/templates/node-gtk/module-import.d.ts +29 -0
  86. package/templates/node-gtk/module.append.d.ts +1 -0
  87. package/templates/node-gtk/module.d.ts +4 -0
  88. package/templates/node-gtk/module.js +2 -1
  89. package/templates/node-gtk/node-gtk.d.ts +25 -0
  90. package/templates/node-gtk/{index.js → node-gtk.js} +0 -2
  91. package/templates/package.json +173 -0
  92. package/templates/tsconfig.doc.json +30 -0
  93. package/lib/injection/classes/GooCanvas-2.0.d.ts +0 -2
  94. package/lib/injection/classes/GooCanvas-2.0.js +0 -26
  95. package/lib/injection/classes/GooCanvas-2.0.js.map +0 -1
  96. package/lib/injection/classes/GooCanvas-3.0.d.ts +0 -2
  97. package/lib/injection/classes/GooCanvas-3.0.js +0 -26
  98. package/lib/injection/classes/GooCanvas-3.0.js.map +0 -1
  99. package/lib/injection/classes/GooCanvas-x.0.d.ts +0 -2
  100. package/lib/injection/classes/GooCanvas-x.0.js +0 -26
  101. package/lib/injection/classes/GooCanvas-x.0.js.map +0 -1
  102. package/lib/injection/classes/gjs/GooCanvas-2.0.d.ts +0 -2
  103. package/lib/injection/classes/gjs/GooCanvas-2.0.js +0 -14
  104. package/lib/injection/classes/gjs/GooCanvas-2.0.js.map +0 -1
  105. package/lib/types/library-version.d.ts +0 -7
  106. package/lib/types/library-version.js +0 -2
  107. package/lib/types/library-version.js.map +0 -1
  108. package/templates/Gjs/Gjs.d.ts +0 -204
  109. package/templates/Gjs/Gjs.js +0 -21
  110. package/templates/Gjs/GnomeShell.d.ts +0 -154
  111. package/templates/Gjs/GnomeShell.js +0 -10
  112. package/templates/Gjs/index.js +0 -4
  113. package/templates/Gjs/misc/dbusUtils.d.ts +0 -15
  114. package/templates/Gjs/misc/dbusUtils.js +0 -6
  115. package/templates/Gjs/misc/extensionUtils.d.ts +0 -99
  116. package/templates/Gjs/misc/extensionUtils.js +0 -6
  117. package/templates/Gjs/misc/fileUtils.d.ts +0 -51
  118. package/templates/Gjs/misc/fileUtils.js +0 -6
  119. package/templates/Gjs/misc/gnomeSession.d.ts +0 -74
  120. package/templates/Gjs/misc/gnomeSession.js +0 -6
  121. package/templates/Gjs/misc/parentalControlsManager.d.ts +0 -42
  122. package/templates/Gjs/misc/parentalControlsManager.js +0 -6
  123. package/templates/Gjs/misc/signals.d.ts +0 -15
  124. package/templates/Gjs/misc/signals.js +0 -6
  125. package/templates/Gjs/module.d.ts +0 -6
  126. package/templates/Gjs/module.js +0 -16
  127. package/templates/Gjs/tsconfig.alias.json +0 -10
  128. package/templates/Gjs/ui/accessDialog.d.ts +0 -19
  129. package/templates/Gjs/ui/accessDialog.js +0 -6
  130. package/templates/Gjs/ui/altTab.d.ts +0 -124
  131. package/templates/Gjs/ui/altTab.js +0 -6
  132. package/templates/Gjs/ui/animation.d.ts +0 -58
  133. package/templates/Gjs/ui/animation.js +0 -6
  134. package/templates/Gjs/ui/appDisplay.d.ts +0 -204
  135. package/templates/Gjs/ui/appDisplay.js +0 -6
  136. package/templates/Gjs/ui/appFavorites.d.ts +0 -34
  137. package/templates/Gjs/ui/appFavorites.js +0 -6
  138. package/templates/Gjs/ui/appMenu.d.ts +0 -74
  139. package/templates/Gjs/ui/appMenu.js +0 -6
  140. package/templates/Gjs/ui/audioDeviceSelection.d.ts +0 -51
  141. package/templates/Gjs/ui/audioDeviceSelection.js +0 -6
  142. package/templates/Gjs/ui/background.d.ts +0 -255
  143. package/templates/Gjs/ui/background.js +0 -5
  144. package/templates/Gjs/ui/backgroundMenu.d.ts +0 -19
  145. package/templates/Gjs/ui/backgroundMenu.js +0 -5
  146. package/templates/Gjs/ui/barLevel.d.ts +0 -42
  147. package/templates/Gjs/ui/barLevel.js +0 -5
  148. package/templates/Gjs/ui/boxpointer.d.ts +0 -103
  149. package/templates/Gjs/ui/boxpointer.js +0 -5
  150. package/templates/Gjs/ui/calendar.d.ts +0 -261
  151. package/templates/Gjs/ui/calendar.js +0 -5
  152. package/templates/Gjs/ui/checkBox.d.ts +0 -22
  153. package/templates/Gjs/ui/checkBox.js +0 -5
  154. package/templates/Gjs/ui/closeDialog.d.ts +0 -40
  155. package/templates/Gjs/ui/closeDialog.js +0 -5
  156. package/templates/Gjs/ui/components/__init__.d.ts +0 -9
  157. package/templates/Gjs/ui/components/__init__.js +0 -6
  158. package/templates/Gjs/ui/components/automountManager.d.ts +0 -8
  159. package/templates/Gjs/ui/components/automountManager.js +0 -6
  160. package/templates/Gjs/ui/components/autorunManager.d.ts +0 -8
  161. package/templates/Gjs/ui/components/autorunManager.js +0 -6
  162. package/templates/Gjs/ui/components/index.d.ts +0 -6
  163. package/templates/Gjs/ui/components/index.js +0 -6
  164. package/templates/Gjs/ui/components/keyring.d.ts +0 -19
  165. package/templates/Gjs/ui/components/keyring.js +0 -6
  166. package/templates/Gjs/ui/components/networkAgent.d.ts +0 -10
  167. package/templates/Gjs/ui/components/networkAgent.js +0 -6
  168. package/templates/Gjs/ui/components/polkitAgent.d.ts +0 -19
  169. package/templates/Gjs/ui/components/polkitAgent.js +0 -6
  170. package/templates/Gjs/ui/components/telepathyClient.d.ts +0 -10
  171. package/templates/Gjs/ui/components/telepathyClient.js +0 -6
  172. package/templates/Gjs/ui/dialog.d.ts +0 -78
  173. package/templates/Gjs/ui/dialog.js +0 -6
  174. package/templates/Gjs/ui/dnd.d.ts +0 -127
  175. package/templates/Gjs/ui/dnd.js +0 -6
  176. package/templates/Gjs/ui/iconGrid.d.ts +0 -172
  177. package/templates/Gjs/ui/iconGrid.js +0 -6
  178. package/templates/Gjs/ui/layout.d.ts +0 -311
  179. package/templates/Gjs/ui/layout.js +0 -6
  180. package/templates/Gjs/ui/main.d.ts +0 -215
  181. package/templates/Gjs/ui/main.js +0 -6
  182. package/templates/Gjs/ui/messageList.d.ts +0 -113
  183. package/templates/Gjs/ui/messageList.js +0 -6
  184. package/templates/Gjs/ui/messageTray.d.ts +0 -423
  185. package/templates/Gjs/ui/messageTray.js +0 -6
  186. package/templates/Gjs/ui/modalDialog.d.ts +0 -96
  187. package/templates/Gjs/ui/modalDialog.js +0 -6
  188. package/templates/Gjs/ui/mpris.d.ts +0 -78
  189. package/templates/Gjs/ui/mpris.js +0 -6
  190. package/templates/Gjs/ui/notificationDaemon.d.ts +0 -5
  191. package/templates/Gjs/ui/notificationDaemon.js +0 -6
  192. package/templates/Gjs/ui/panel.d.ts +0 -65
  193. package/templates/Gjs/ui/panel.js +0 -6
  194. package/templates/Gjs/ui/panelMenu.d.ts +0 -51
  195. package/templates/Gjs/ui/panelMenu.js +0 -6
  196. package/templates/Gjs/ui/popupMenu.d.ts +0 -228
  197. package/templates/Gjs/ui/popupMenu.js +0 -6
  198. package/templates/Gjs/ui/ripples.d.ts +0 -44
  199. package/templates/Gjs/ui/ripples.js +0 -6
  200. package/templates/Gjs/ui/search.d.ts +0 -158
  201. package/templates/Gjs/ui/search.js +0 -6
  202. package/templates/Gjs/ui/switcherPopup.d.ts +0 -107
  203. package/templates/Gjs/ui/switcherPopup.js +0 -6
  204. package/templates/Gjs/ui/userWidget.d.ts +0 -13
  205. package/templates/Gjs/ui/userWidget.js +0 -6
  206. package/templates/node-gtk/index.d.ts +0 -40
  207. /package/templates/{Cogl-2.0.d.ts → cogl-2-0.d.ts} +0 -0
  208. /package/templates/{Granite-1.0.d.ts → granite-1.0.d.ts} +0 -0
  209. /package/templates/{Granite-7.0.d.ts → granite-7.0.d.ts} +0 -0
  210. /package/templates/{GstBase-0.10.d.ts → gstbase-0.10.d.ts} +0 -0
  211. /package/templates/node-gtk/{GObject-2.0.d.ts → gobject-2.0.d.ts} +0 -0
  212. /package/templates/{RygelServer-2.6.d.ts → rygelserver-2.6.d.ts} +0 -0
@@ -1,124 +0,0 @@
1
- // https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/altTab.js
2
-
3
- <% const glib = dep.find('GLib') %>
4
- <% const Clutter = dep.find('Clutter') %>
5
- <% const Meta = dep.find('Meta') %>
6
-
7
- <%_ if(noNamespace){ _%>
8
- import type * as GLib from '../<%= glib.packageName %>.js';
9
- import type * as Clutter from '../<%= Clutter.packageName %>.js';
10
- import type * as Meta from '../<%= Meta.packageName %>.js';
11
- <%_ } else { _%>
12
- import type GLib from '../<%= glib.packageName %>.js';
13
- import type Clutter from '../<%= Clutter.packageName %>.js';
14
- import type Meta from '../<%= Meta.packageName %>.js';
15
- <%_ } _%>
16
-
17
- import { SwitcherPopup } from './switcherPopup.js'
18
-
19
- export class AppSwitcherPopup extends SwitcherPopup {
20
- constructor()
21
- _init(): void
22
-
23
- _initialSelection(backward: any, binding: any): void
24
-
25
- _nextWindow(): void
26
-
27
- _previousWindow(): void
28
-
29
- _closeAppWindow(appIndex: number, windowIndex: number): void
30
-
31
- _quitApplication(appIndex: number): void
32
-
33
- _keyPressHandler(keysym: any, action: any): typeof Clutter.EVENT_STOP | typeof Clutter.EVENT_PROPAGATE
34
-
35
- _scrollHandler(direction: Clutter.ScrollDirection): void;
36
-
37
- _itemActivatedHandler(n: any): void
38
-
39
- _windowActivated(thumbnailSwitcher: any, n: any): void
40
-
41
- _windowEntered(thumbnailSwitcher: any, n: any): void
42
-
43
- _windowRemoved(thumbnailSwitcher: any, n: number): void
44
-
45
- _finish(timestamp: number): void
46
-
47
- _onDestroy(): void
48
-
49
- /**
50
- * _select:
51
- * @param app: index of the app to select
52
- * @param window: index of which of @app's windows to select
53
- * @param forceAppFocus: optional flag, see below
54
- *
55
- * Selects the indicated @app, and optional @window, and sets
56
- * this._thumbnailsFocused appropriately to indicate whether the
57
- * arrow keys should act on the app list or the thumbnail list.
58
- *
59
- * If @app is specified and @window is unspecified or %null, then
60
- * the app is highlighted (ie, given a light background), and the
61
- * current thumbnail list, if any, is destroyed. If @app has
62
- * multiple windows, and @forceAppFocus is not %true, then a
63
- * timeout is started to open a thumbnail list.
64
- *
65
- * If @app and @window are specified (and @forceAppFocus is not),
66
- * then @app will be outlined, a thumbnail list will be created
67
- * and focused (if it hasn't been already), and the @window'th
68
- * window in it will be highlighted.
69
- *
70
- * If @app and @window are specified and @forceAppFocus is %true,
71
- * then @app will be highlighted, and @window outlined, and the
72
- * app list will have the keyboard focus.
73
- */
74
- _select(app: number, window?: number, forceAppFocus?: undefined): void
75
-
76
- _timeoutPopupThumbnails(): typeof GLib.SOURCE_REMOVE | typeof GLib.SOURCE_CONTINUE
77
-
78
- _destroyThumbnails(): void
79
-
80
- _createThumbnails(): void
81
-
82
- }
83
-
84
- declare class CyclerPopup extends SwitcherPopup {
85
- constructor()
86
- _init(): void
87
-
88
- _highlightItem(index: number, _justOutline: boolean): void
89
-
90
- _finish(): void
91
-
92
- onDestroy(): void
93
- }
94
-
95
- export class GroupCyclerPopup extends CyclerPopup {
96
- constructor()
97
- _init(): void
98
-
99
- _getWindows(): Meta.Window[]
100
-
101
- _keyPressHandler(keysym: any, action: any): typeof Clutter.EVENT_STOP | typeof Clutter.EVENT_PROPAGATE
102
- }
103
-
104
- export class WindowSwitcherPopup extends SwitcherPopup {
105
- constructor()
106
- _init(): void
107
-
108
- _getWindowList(): Meta.Window[]
109
-
110
- _closeWindow(windowIndex: number): void
111
-
112
- _keyPressHandler(keysym: any, action: any): typeof Clutter.EVENT_STOP | typeof Clutter.EVENT_PROPAGATE
113
-
114
- _finish(): void
115
-
116
- }
117
-
118
- export class WindowCyclerPopup extends CyclerPopup {
119
- init(): void
120
-
121
- _getWindows(): Meta.Window[]
122
-
123
- _keyPressHandler(keysym: any, action: any): typeof Clutter.EVENT_STOP | typeof Clutter.EVENT_PROPAGATE
124
- }
@@ -1,6 +0,0 @@
1
- <% if(moduleType === 'esm') { %>
2
- export imports.ui.altTab;
3
- <% } else { %>
4
- module.exports = imports.ui.altTab;
5
- <% } %>
6
-
@@ -1,58 +0,0 @@
1
- // https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/animation.js
2
-
3
- <% const glib = dep.find('GLib') %>
4
- <% const Gio = dep.find('Gio') %>
5
- <% const St = dep.find('St') %>
6
-
7
- <%_ if(noNamespace){ _%>
8
- import type * as GLib from '../<%= glib.packageName %>.js';
9
- import type * as Gio from '../<%= Gio.packageName %>.js';
10
- import type * as St from '../<%= St.packageName %>.js';
11
- <%_ } else { _%>
12
- import type GLib from '../<%= glib.packageName %>.js';
13
- import type Gio from '../<%= Gio.packageName %>.js';
14
- import type St from '../<%= St.packageName %>.js';
15
- <%_ } _%>
16
-
17
- export class Animation extends St.Bin {
18
- constructor(file: Gio.File, width: number, height: number, speed: number);
19
-
20
- /** @hidden */
21
- public _init(props?: St.Bin.ConstructorProperties): void;
22
- public _init(file: Gio.File, width: number, height: number, speed: number): void;
23
-
24
- public play(): void;
25
- public stop(): void;
26
-
27
- protected _loadFile(file: Gio.File, width: number, height: number): void;
28
- protected _showFrame(frame: number): void;
29
- protected _update(): typeof GLib.SOURCE_CONTINUE;
30
- protected _syncAnimationSize(): void;
31
- protected _animationsLoaded(): void;
32
- protected _onDestroy(): void;
33
- }
34
-
35
- export class AnimatedIcon extends Animation {
36
- constructor(file: Gio.File, size: number);
37
- /** @hidden */
38
- public _init(props?: St.Bin.ConstructorProperties): void;
39
- /** @hidden */
40
- public _init(file: Gio.File, width: number, height: number, speed: number): void;
41
- public _init(file: Gio.File, size: number): void;
42
- }
43
-
44
- export class Spinner extends AnimatedIcon {
45
- constructor(size: number, params: {animate: boolean; hideOnStop: boolean});
46
- /** @hidden */
47
- public _init(props?: St.Bin.ConstructorProperties): void;
48
- /** @hidden */
49
- public _init(file: Gio.File, width: number, height: number, speed: number): void;
50
- /** @hidden */
51
- public _init(file: Gio.File, size: number): void;
52
- public _init(size: number, params: {animate: boolean; hideOnStop: boolean}): void;
53
-
54
- public play(): void;
55
- public stop(): void;
56
-
57
- protected _onDestroy(): void;
58
- }
@@ -1,6 +0,0 @@
1
- <% if(moduleType === 'esm') { %>
2
- export imports.ui.animation;
3
- <% } else { %>
4
- module.exports = imports.ui.animation;
5
- <% } %>
6
-
@@ -1,204 +0,0 @@
1
- // https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/appDisplay.js
2
-
3
- <% const Gio = dep.find('Gio') %>
4
- <% const St = dep.find('St') %>
5
- <% const Clutter = dep.find('Clutter') %>
6
-
7
- <%_ if(noNamespace){ _%>
8
- import type * as Gio from '../<%= Gio.packageName %>.js';
9
- import type * as St from '../<%= St.packageName %>.js';
10
- import type * as Clutter from '../<%= Clutter.packageName %>.js';
11
- <%_ } else { _%>
12
- import type Gio from '../<%= Gio.packageName %>.js';
13
- import type St from '../<%= St.packageName %>.js';
14
- import type Clutter from '../<%= Clutter.packageName %>.js';
15
- <%_ } _%>
16
-
17
- import { GridSearchResult } from './search.js';
18
-
19
- import { IconGrid, BaseIcon } from './iconGrid.js';
20
- import { DragMotionResult } from './dnd.js';
21
-
22
- export class AppGrid extends IconGrid {
23
-
24
- public indicatorsPadding: number;
25
-
26
- /** @hidden */
27
- public _init(params?: St.Viewport.ConstructorProperties): void;
28
- public _init(layoutParams?: IconGrid.ConstructorProperties): void;
29
-
30
- protected _updatePadding(): void;
31
-
32
- }
33
-
34
- export abstract class BaseAppView extends St.Widget {
35
- // TODO: 'view-loaded' signal
36
- constructor(params?: St.Widget.ConstructorProperties);
37
- public _init(params?: St.Widget.ConstructorProperties): void;
38
-
39
- protected _onDestroy(): void;
40
- protected _createGrid(): AppGrid;
41
- protected _onScroll(actor: St.Widget, event: Clutter.ScrollEvent): boolean;
42
- protected _swipeBegin(tracker: any, monitor: Clutter.EventSequence): void;
43
- protected _swipeUpdate(tracker: any, progress: number): void;
44
- protected _swipeEnd(tracker: any, duration: number, endProgress: number): void;
45
- protected _connectDnD(): void;
46
- protected _disconnectDnD(): void
47
- protected _maybeMoveItem(dragEvent: Clutter.Event): void;
48
- protected _removeDelayedMove(): void;
49
- protected _resetDragPageSwitch(): void;
50
- protected _setupDragPageSwitchRepeat(direction: number): void;
51
- protected _dragMaybeSwitchPageImmediately(dragEvent: Clutter.Event): void;
52
- protected _maybeSetupDragPageSwitchInitialTimeout(dragEvent: Clutter.Event): void;
53
- protected _onDragBegin(): void;
54
- protected _onDragMotion(dragEvent: Clutter.Event): boolean;
55
- protected _onDragDrop(dropEvent: Clutter.Event): boolean;
56
- protected _onDragEnd(): void;
57
- protected _onDragCancelled(): void;
58
- protected _canAccept(source: any): boolean;
59
- protected _findBestPageToAppend(startPage?: number): number;
60
- protected _getLinearPosition(page: number, position: number): number;
61
- protected _addItem(item: any, page: number, position: number): void;
62
- protected _removeItem(item: any): void;
63
- protected _redisplay(): void;
64
- protected _compareItems(a: any, b: any): number;
65
- protected _selectAppInternal(id: string): void;
66
- protected _getDropTarget(x: number, y: number, source: any): [number, number, number];
67
- protected _moveItem(item: any, newPage: number, newPosition: number): void;
68
-
69
- public handleDragOver(source: any): DragMotionResult;
70
- public acceptDrop(source: any): boolean;
71
- public getItemPosition(item: any): [number, number];
72
- public getAllItems(): any[];
73
- public selectApp(id: string): void;
74
- public animateSwitch(animationDirection: number): void;
75
- public goToPage(pageNumber: number, animate: boolean): void;
76
- public updateDragFocus(dragFocus: any): void;
77
- }
78
-
79
- export class AppDisplay extends BaseAppView {
80
- constructor();
81
- public _init(): void;
82
-
83
- protected _onDestroy(): void;
84
- protected _redisplay(): void;
85
- protected _savePages(): void;
86
- protected _ensureDefaultFolders(): void;
87
- protected _ensurePlaceholder(source: any): void;
88
- protected _removePlaceholder(): void;
89
- protected _getItemPosition(item: any): [number, number];
90
- protected _compareItems(a: any, b: any): number;
91
- protected _loadApps(): void;
92
- protected _onScroll(actor: St.Widget, event: Clutter.ScrollEvent): boolean;
93
- protected _onKeyPressEvent(actor: St.Widget, event: Clutter.KeyEvent): boolean;
94
- protected _maybeMoveItem(dragEvent: Clutter.Event): void;
95
- /** @hidden */
96
- protected _onDragBegin(): void;
97
- protected _onDragBegin(overview: any, source: any): void;
98
- protected _onDragMotion(dragEvent: Clutter.Event): boolean;
99
- protected _onDragEnd(): void;
100
- /** @hidden */
101
- protected _onDragCancelled(): void;
102
- protected _onDragCancelled(overview: any, source: any): void;
103
-
104
- public getAppInfos(): any[];
105
- public animateSwitch(animationDirection: number): void;
106
- public goToPage(pageNumber: number, animate?: boolean): void;
107
- public addFolderDialog(dialog: any): void;
108
- public acceptDrop(source: any): boolean;
109
- public createFolder(apps: any[]): boolean;
110
- }
111
-
112
- export class AppSearchProvider {
113
- constructor();
114
-
115
- public getResultMetas(apps: any[]): Promise<any[]>;
116
- public filterResults(results: any[], maxNumber: number): any[];
117
- public getInitialResultSet(terms: string[], cancellable: Gio.Cancellable): Promise<any[]>;
118
- public getSubsearchResultSet(previousResults: any[], terms: string[], cancellable: Gio.Cancellable): any[];
119
- public createResultObject(resultMeta: any): AppIcon | SystemActionIcon;
120
- }
121
-
122
- export class AppViewItem extends St.Button {
123
-
124
- readonly id: string;
125
- readonly app: any;
126
-
127
- constructor(params?: St.Button.ConstructorProperties);
128
- public _init(params?: St.Button.ConstructorProperties, isDraggable?: boolean, expandTitleOnHover?: boolean): void;
129
-
130
- protected _onDestroy(): void;
131
- protected _updateMultiline(): void;
132
- protected _onHover(): void;
133
- protected _onDragBegin(): void;
134
- protected _onDragCancelled(): void;
135
- protected _onDragEnd(): void;
136
- protected _canAccept(source: any): boolean;
137
- protected _setHoveringByDnd(hovering: boolean): void;
138
- protected _onDragMotion(dragEvent: Clutter.Event): boolean;
139
- protected _withinLeeways(x: number): boolean;
140
-
141
- public scaleIn(): void;
142
- public scaleAndFade(): void;
143
- public undoScaleAndFade(): void;
144
- public handleDragOver(source: any, actor: St.Widget, x: number): DragMotionResult;
145
- public acceptDrop(source: any, actor: St.Widget, x: number): boolean;
146
- public cancelActions(): void;
147
- public setForcedHighlight(highlight: boolean): void;
148
- }
149
-
150
- export namespace AppIcon {
151
- export interface ConstructorProperties extends BaseIcon.ConstructorProperties {
152
- isDraggable?: boolean;
153
- expandTitleOnHover?: boolean;
154
- }
155
- }
156
-
157
- export class AppIcon extends AppViewItem {
158
-
159
- public app: any;
160
- public icon: BaseIcon;
161
-
162
- protected _id: string;
163
- protected _name: string;
164
- protected _iconContainer: St.Widget;
165
- protected _folderPreviewId: number;
166
-
167
- constructor(app: any, iconParams?: AppIcon.ConstructorProperties);
168
-
169
- /** @hidden */
170
- public _init(params?: St.Button.ConstructorProperties, isDraggable?: boolean, expandTitleOnHover?: boolean): void;
171
- public _init(app: any, iconParams?: AppIcon.ConstructorProperties): void;
172
-
173
- protected _onDestroy(): void;
174
- protected _createIcon(iconSize: number): St.Widget;
175
- protected _removeMenuTimeout(): void;
176
- protected _setPopupTimeout(): void;
177
- protected _onKeyboardPopupMenu(): void;
178
- protected _onMenuPoppedDown(): void;
179
- protected _onMenuPoppedDown(button: St.Button): void;
180
- protected _showFolderPreview(): void;
181
- protected _hideFolderPreview(): void;
182
- protected _canAccept(source: any): boolean;
183
- protected _setHoveringByDnd(hovering: boolean): void;
184
-
185
- public onDragBegin(): void;
186
- public updateRunningStyle(): void;
187
- public getId(): string;
188
- public popupMenu(side?: St.Side): void;
189
- public animateLaunch(): void;
190
- public animateLaunchAtPos(x: number, y: number): void;
191
- public shellWorkspaceLaunch(params?: { workspace: number; timestamp: number }): void;
192
- public getDragActor(): St.Widget;
193
- /**
194
- * @returns The original actor that should align with the actor we show as the item is being dragged.
195
- */
196
- public getDragActorSource(): St.Widget;
197
- public shouldShowTooltip(): boolean;
198
- public acceptDrop(source: any, actor: St.Widget, x: number): boolean;
199
- public cancelActions(): void;
200
- }
201
-
202
- export class SystemActionIcon extends GridSearchResult {
203
- activate(): void;
204
- }
@@ -1,6 +0,0 @@
1
- <% if(moduleType === 'esm') { %>
2
- export imports.ui.appDisplay;
3
- <% } else { %>
4
- module.exports = imports.ui.appDisplay;
5
- <% } %>
6
-
@@ -1,34 +0,0 @@
1
- // https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/appFavorites.js
2
-
3
- <% const Shell = dep.find('Shell') %>
4
-
5
- <%_ if(noNamespace){ _%>
6
- import type * as Shell from '../<%= Shell.packageName %>.js';
7
- <%_ } else { _%>
8
- import type Shell from '../<%= Shell.packageName %>.js';
9
- <%_ } _%>
10
-
11
- import { EventEmitter } from '../misc/signals.js';
12
-
13
- declare class AppFavorites extends EventEmitter {
14
-
15
- protected _favorites: Map<string, Shell.App>;
16
-
17
- constructor();
18
-
19
- protected _onFavsChanged(): void;
20
- protected _getIds(): string[];
21
- protected _addFavorite(appId: string, pos: number): void;
22
- protected _removeFavorite(appId: string): void;
23
-
24
- public reload(): void;
25
- public getFavoriteMap(): Map<string, Shell.App>;
26
- public getFavorites(): Shell.App[];
27
- public isFavorite(appId: string): boolean;
28
- public addFavoriteAtPos(appId: string, pos: number): void;
29
- public addFavorite(appId: string): void;
30
- public moveFavoriteToPos(appId: string, pos: number): void;
31
- public removeFavorite(appId: string): void;
32
- }
33
-
34
- export function getAppFavorites(): AppFavorites;
@@ -1,6 +0,0 @@
1
- <% if(moduleType === 'esm') { %>
2
- export imports.ui.appFavorites;
3
- <% } else { %>
4
- module.exports = imports.ui.appFavorites;
5
- <% } %>
6
-
@@ -1,74 +0,0 @@
1
- // https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/appMenu.js
2
-
3
- <% const St = dep.find('St') %>
4
- <% const Clutter = dep.find('Clutter') %>
5
- <% const Shell = dep.find('Shell') %>
6
-
7
- <%_ if(noNamespace){ _%>
8
- import type * as St from '../<%= St.packageName %>.js';
9
- import type * as Clutter from '../<%= Clutter.packageName %>.js';
10
- import type * as Shell from '../<%= Shell.packageName %>.js';
11
- <%_ } else { _%>
12
- import type St from '../<%= St.packageName %>.js';
13
- import type Clutter from '../<%= Clutter.packageName %>.js';
14
- import type Shell from '../<%= Shell.packageName %>.js';
15
- <%_ } _%>
16
-
17
-
18
- import type { PopupMenu, PopupSeparatorMenuItem, PopupMenuSection } from './popupMenu.js';
19
- import type { getAppFavorites } from './appFavorites.js';
20
- import type { getDefault } from '../misc/parentalControlsManager.js';
21
-
22
- export class AppMenu extends PopupMenu {
23
-
24
- protected _app: Shell.App | null;
25
- protected _appSystem: Shell.AppSystem;
26
- protected _parentalControlsManager: ReturnType<typeof getDefault>;
27
- protected _appFavorites: ReturnType<typeof getAppFavorites>;
28
- protected _enableFavorites: boolean;
29
- protected _showSingleWindows: boolean;
30
-
31
- protected _windowsChangedId: number;
32
- protected _updateWindowsLaterId: number;
33
-
34
- protected _openWindowsHeader: PopupSeparatorMenuItem;
35
- protected _windowSection: PopupMenuSection;
36
- protected _newWindowItem: ReturnType<typeof this.addAction>;
37
- protected _actionSection: PopupMenuSection;
38
- protected _onGpuMenuItem: ReturnType<typeof this.addAction>;
39
- protected _detailsItem: ReturnType<typeof this.addAction>;
40
- protected _quitItem: ReturnType<typeof this.addAction>;
41
-
42
- /**
43
- * @param sourceActor - actor the menu is attached to
44
- * @param side - arrow side
45
- * @param params - options
46
- * @param params.favoritesSection - show items to add/remove favorite
47
- * @param params.showSingleWindow - show window section for a single window
48
- */
49
- constructor(sourceActor: Clutter.Actor, side?: St.Side, params?: { favoritesSection?: boolean; showSingleWindow: boolean; })
50
-
51
- protected _onAppStateChanged(sys: any, app: any): void;
52
- protected _updateQuitItem(): void;
53
- protected _updateNewWindowItem(): void;
54
- protected _updateFavoriteItem(): void;
55
- protected _updateGpuItem(): void;
56
- protected _updateDetailsVisibility(): void;
57
- protected _animateLaunch(): void;
58
- protected _getNonDefaultLaunchGpu(): Shell.AppLaunchGpu;
59
- protected _queueUpdateWindowsSection(): void;
60
- protected _updateWindowsSection(): void;
61
-
62
-
63
- public destroy(): void;
64
-
65
- /**
66
- * @returns true if the menu is empty
67
- */
68
- public isEmpty(): boolean;
69
-
70
- /**
71
- * @param app the app the menu represents
72
- */
73
- public setApp(app: Shell.App): void;
74
- }
@@ -1,6 +0,0 @@
1
- <% if(moduleType === 'esm') { %>
2
- export imports.ui.appMenu;
3
- <% } else { %>
4
- module.exports = imports.ui.appMenu;
5
- <% } %>
6
-
@@ -1,51 +0,0 @@
1
- // https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/audioDeviceSelection.js
2
-
3
- <% const Gio = dep.find('Gio') %>
4
- <% const St = dep.find('St') %>
5
-
6
- <%_ if(noNamespace){ _%>
7
- import type * as Gio from '../<%= Gio.packageName %>.js';
8
- import type * as St from '../<%= St.packageName %>.js';
9
- <%_ } else { _%>
10
- import type Gio from '../<%= Gio.packageName %>.js';
11
- import type St from '../<%= St.packageName %>.js';
12
- <%_ } _%>
13
-
14
- import type { ModalDialog } from './modalDialog.js';
15
-
16
- export enum AudioDevice {
17
- HEADPHONES = 1 << 0,
18
- HEADSET = 1 << 1,
19
- MICROPHONE = 1 << 2,
20
- }
21
-
22
- declare class AudioDeviceSelectionDialog extends ModalDialog {
23
-
24
- constructor(devices: number);
25
-
26
- /** @hidden */
27
- public _init(params?: St.Widget.ConstructorProperties): void;
28
- /** @hidden */
29
- public _init(props?: ModalDialog.ConstructorProperties): void;
30
- public _init(devices: number): void;
31
-
32
-
33
- protected _buildLayout(): void;
34
- protected _getDeviceLabel(device: AudioDevice): string | null;
35
- protected _getDeviceIcon(device: AudioDevice): string | null;
36
- protected _addDevice(device: AudioDevice): void;
37
- protected _openSettings(): void;
38
- }
39
-
40
- export class AudioDeviceSelectionDBus {
41
- protected _audioSelectionDialog: AudioDeviceSelectionDialog | null;
42
- protected _dbusImpl: Gio.DBusExportedObject;
43
-
44
- constructor();
45
-
46
- protected _onDialogClosed(): void;
47
- protected _onDeviceSelected(dialog: AudioDeviceSelectionDialog, device: AudioDevice): void;
48
-
49
- OpenAsync(params: string[], invocation: Gio.DBusMethodInvocation): void;
50
- CloseAsync(params: any, invocation: Gio.DBusMethodInvocation): void;
51
- }
@@ -1,6 +0,0 @@
1
- <% if(moduleType === 'esm') { %>
2
- export imports.ui.audioDeviceSelection;
3
- <% } else { %>
4
- module.exports = imports.ui.audioDeviceSelection;
5
- <% } %>
6
-