@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.
- package/lib/constants.d.ts +7 -3
- package/lib/constants.js +14 -2
- package/lib/constants.js.map +1 -1
- package/lib/dependency-manager.d.ts +52 -3
- package/lib/dependency-manager.js +138 -18
- package/lib/dependency-manager.js.map +1 -1
- package/lib/gir-module.d.ts +12 -5
- package/lib/gir-module.js +25 -8
- package/lib/gir-module.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/injection/classes/gjs/index.js +3 -3
- package/lib/injection/classes/index.js +1 -1
- package/lib/injection/classes/node-gtk/index.js +8 -8
- package/lib/messages.d.ts +0 -2
- package/lib/messages.js +1 -3
- package/lib/messages.js.map +1 -1
- package/lib/package-data-parser.d.ts +13 -0
- package/lib/package-data-parser.js +67 -0
- package/lib/package-data-parser.js.map +1 -0
- package/lib/package-data.d.ts +9 -0
- package/lib/package-data.js +41 -0
- package/lib/package-data.js.map +1 -0
- package/lib/symtable.js +2 -1
- package/lib/symtable.js.map +1 -1
- package/lib/template-processor.d.ts +59 -19
- package/lib/template-processor.js +128 -41
- package/lib/template-processor.js.map +1 -1
- package/lib/transformation.d.ts +2 -1
- package/lib/transformation.js +44 -26
- package/lib/transformation.js.map +1 -1
- package/lib/types/construct-name.d.ts +1 -1
- package/lib/types/dependency.d.ts +17 -2
- package/lib/types/generate-config.d.ts +9 -2
- package/lib/types/index.d.ts +5 -0
- package/lib/types/index.js +5 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/module-type.d.ts +1 -1
- package/lib/types/package-data-parsed.d.ts +28 -0
- package/lib/types/package-data-parsed.js +2 -0
- package/lib/types/package-data-parsed.js.map +1 -0
- package/lib/types/package-data.d.ts +23 -0
- package/lib/types/package-data.js +2 -0
- package/lib/types/package-data.js.map +1 -0
- package/lib/types/package-section-parsed.d.ts +8 -0
- package/lib/types/package-section-parsed.js +2 -0
- package/lib/types/package-section-parsed.js.map +1 -0
- package/lib/types/package-section.d.ts +8 -0
- package/lib/types/package-section.js +2 -0
- package/lib/types/package-section.js.map +1 -0
- package/lib/types/parsed-package-data.d.ts +6 -0
- package/lib/types/parsed-package-data.js +2 -0
- package/lib/types/parsed-package-data.js.map +1 -0
- package/lib/types/template-data.d.ts +2 -1
- package/lib/types/transformation-case.d.ts +1 -1
- package/lib/types/transformations.d.ts +1 -1
- package/lib/types/user-config.d.ts +6 -2
- package/lib/utils.d.ts +31 -16
- package/lib/utils.js +68 -30
- package/lib/utils.js.map +1 -1
- package/package.json +20 -19
- package/templates/README.md +102 -0
- package/templates/gjs/README-GJS.md +109 -0
- package/templates/gjs/ambient.d.ts +59 -0
- package/templates/gjs/cairo-1.0.d.ts +9 -0
- package/templates/gjs/cairo.d.ts +8 -0
- package/templates/gjs/cairo.js +11 -0
- package/templates/gjs/gettext.d.ts +41 -0
- package/templates/gjs/gettext.js +11 -0
- package/templates/{Gjs/Gio-2.0.d.ts → gjs/gio-2.0.d.ts} +1 -1
- package/templates/{Gjs/index.d.ts → gjs/gjs.d.ts} +221 -58
- package/templates/gjs/gjs.js +10 -0
- package/templates/{Gjs/GObject-2.0.d.ts → gjs/gobject-2.0.d.ts} +1 -1
- package/templates/gjs/module-ambient.d.ts +31 -0
- package/templates/gjs/module-import.d.ts +33 -0
- package/templates/gjs/module.append.d.ts +1 -0
- package/templates/gjs/module.d.ts +12 -0
- package/templates/gjs/module.js +17 -0
- package/templates/gjs/system.d.ts +32 -0
- package/templates/gjs/system.js +11 -0
- package/templates/gjs/tsconfig.alias.json +12 -0
- package/templates/node-gtk/README-NODE-GTK.md +71 -0
- package/templates/node-gtk/ambient.d.ts +19 -0
- package/templates/node-gtk/module-import.d.ts +29 -0
- package/templates/node-gtk/module.append.d.ts +1 -0
- package/templates/node-gtk/module.d.ts +4 -0
- package/templates/node-gtk/module.js +2 -1
- package/templates/node-gtk/node-gtk.d.ts +25 -0
- package/templates/node-gtk/{index.js → node-gtk.js} +0 -2
- package/templates/package.json +173 -0
- package/templates/tsconfig.doc.json +30 -0
- package/lib/injection/classes/GooCanvas-2.0.d.ts +0 -2
- package/lib/injection/classes/GooCanvas-2.0.js +0 -26
- package/lib/injection/classes/GooCanvas-2.0.js.map +0 -1
- package/lib/injection/classes/GooCanvas-3.0.d.ts +0 -2
- package/lib/injection/classes/GooCanvas-3.0.js +0 -26
- package/lib/injection/classes/GooCanvas-3.0.js.map +0 -1
- package/lib/injection/classes/GooCanvas-x.0.d.ts +0 -2
- package/lib/injection/classes/GooCanvas-x.0.js +0 -26
- package/lib/injection/classes/GooCanvas-x.0.js.map +0 -1
- package/lib/injection/classes/gjs/GooCanvas-2.0.d.ts +0 -2
- package/lib/injection/classes/gjs/GooCanvas-2.0.js +0 -14
- package/lib/injection/classes/gjs/GooCanvas-2.0.js.map +0 -1
- package/lib/types/library-version.d.ts +0 -7
- package/lib/types/library-version.js +0 -2
- package/lib/types/library-version.js.map +0 -1
- package/templates/Gjs/Gjs.d.ts +0 -204
- package/templates/Gjs/Gjs.js +0 -21
- package/templates/Gjs/GnomeShell.d.ts +0 -154
- package/templates/Gjs/GnomeShell.js +0 -10
- package/templates/Gjs/index.js +0 -4
- package/templates/Gjs/misc/dbusUtils.d.ts +0 -15
- package/templates/Gjs/misc/dbusUtils.js +0 -6
- package/templates/Gjs/misc/extensionUtils.d.ts +0 -99
- package/templates/Gjs/misc/extensionUtils.js +0 -6
- package/templates/Gjs/misc/fileUtils.d.ts +0 -51
- package/templates/Gjs/misc/fileUtils.js +0 -6
- package/templates/Gjs/misc/gnomeSession.d.ts +0 -74
- package/templates/Gjs/misc/gnomeSession.js +0 -6
- package/templates/Gjs/misc/parentalControlsManager.d.ts +0 -42
- package/templates/Gjs/misc/parentalControlsManager.js +0 -6
- package/templates/Gjs/misc/signals.d.ts +0 -15
- package/templates/Gjs/misc/signals.js +0 -6
- package/templates/Gjs/module.d.ts +0 -6
- package/templates/Gjs/module.js +0 -16
- package/templates/Gjs/tsconfig.alias.json +0 -10
- package/templates/Gjs/ui/accessDialog.d.ts +0 -19
- package/templates/Gjs/ui/accessDialog.js +0 -6
- package/templates/Gjs/ui/altTab.d.ts +0 -124
- package/templates/Gjs/ui/altTab.js +0 -6
- package/templates/Gjs/ui/animation.d.ts +0 -58
- package/templates/Gjs/ui/animation.js +0 -6
- package/templates/Gjs/ui/appDisplay.d.ts +0 -204
- package/templates/Gjs/ui/appDisplay.js +0 -6
- package/templates/Gjs/ui/appFavorites.d.ts +0 -34
- package/templates/Gjs/ui/appFavorites.js +0 -6
- package/templates/Gjs/ui/appMenu.d.ts +0 -74
- package/templates/Gjs/ui/appMenu.js +0 -6
- package/templates/Gjs/ui/audioDeviceSelection.d.ts +0 -51
- package/templates/Gjs/ui/audioDeviceSelection.js +0 -6
- package/templates/Gjs/ui/background.d.ts +0 -255
- package/templates/Gjs/ui/background.js +0 -5
- package/templates/Gjs/ui/backgroundMenu.d.ts +0 -19
- package/templates/Gjs/ui/backgroundMenu.js +0 -5
- package/templates/Gjs/ui/barLevel.d.ts +0 -42
- package/templates/Gjs/ui/barLevel.js +0 -5
- package/templates/Gjs/ui/boxpointer.d.ts +0 -103
- package/templates/Gjs/ui/boxpointer.js +0 -5
- package/templates/Gjs/ui/calendar.d.ts +0 -261
- package/templates/Gjs/ui/calendar.js +0 -5
- package/templates/Gjs/ui/checkBox.d.ts +0 -22
- package/templates/Gjs/ui/checkBox.js +0 -5
- package/templates/Gjs/ui/closeDialog.d.ts +0 -40
- package/templates/Gjs/ui/closeDialog.js +0 -5
- package/templates/Gjs/ui/components/__init__.d.ts +0 -9
- package/templates/Gjs/ui/components/__init__.js +0 -6
- package/templates/Gjs/ui/components/automountManager.d.ts +0 -8
- package/templates/Gjs/ui/components/automountManager.js +0 -6
- package/templates/Gjs/ui/components/autorunManager.d.ts +0 -8
- package/templates/Gjs/ui/components/autorunManager.js +0 -6
- package/templates/Gjs/ui/components/index.d.ts +0 -6
- package/templates/Gjs/ui/components/index.js +0 -6
- package/templates/Gjs/ui/components/keyring.d.ts +0 -19
- package/templates/Gjs/ui/components/keyring.js +0 -6
- package/templates/Gjs/ui/components/networkAgent.d.ts +0 -10
- package/templates/Gjs/ui/components/networkAgent.js +0 -6
- package/templates/Gjs/ui/components/polkitAgent.d.ts +0 -19
- package/templates/Gjs/ui/components/polkitAgent.js +0 -6
- package/templates/Gjs/ui/components/telepathyClient.d.ts +0 -10
- package/templates/Gjs/ui/components/telepathyClient.js +0 -6
- package/templates/Gjs/ui/dialog.d.ts +0 -78
- package/templates/Gjs/ui/dialog.js +0 -6
- package/templates/Gjs/ui/dnd.d.ts +0 -127
- package/templates/Gjs/ui/dnd.js +0 -6
- package/templates/Gjs/ui/iconGrid.d.ts +0 -172
- package/templates/Gjs/ui/iconGrid.js +0 -6
- package/templates/Gjs/ui/layout.d.ts +0 -311
- package/templates/Gjs/ui/layout.js +0 -6
- package/templates/Gjs/ui/main.d.ts +0 -215
- package/templates/Gjs/ui/main.js +0 -6
- package/templates/Gjs/ui/messageList.d.ts +0 -113
- package/templates/Gjs/ui/messageList.js +0 -6
- package/templates/Gjs/ui/messageTray.d.ts +0 -423
- package/templates/Gjs/ui/messageTray.js +0 -6
- package/templates/Gjs/ui/modalDialog.d.ts +0 -96
- package/templates/Gjs/ui/modalDialog.js +0 -6
- package/templates/Gjs/ui/mpris.d.ts +0 -78
- package/templates/Gjs/ui/mpris.js +0 -6
- package/templates/Gjs/ui/notificationDaemon.d.ts +0 -5
- package/templates/Gjs/ui/notificationDaemon.js +0 -6
- package/templates/Gjs/ui/panel.d.ts +0 -65
- package/templates/Gjs/ui/panel.js +0 -6
- package/templates/Gjs/ui/panelMenu.d.ts +0 -51
- package/templates/Gjs/ui/panelMenu.js +0 -6
- package/templates/Gjs/ui/popupMenu.d.ts +0 -228
- package/templates/Gjs/ui/popupMenu.js +0 -6
- package/templates/Gjs/ui/ripples.d.ts +0 -44
- package/templates/Gjs/ui/ripples.js +0 -6
- package/templates/Gjs/ui/search.d.ts +0 -158
- package/templates/Gjs/ui/search.js +0 -6
- package/templates/Gjs/ui/switcherPopup.d.ts +0 -107
- package/templates/Gjs/ui/switcherPopup.js +0 -6
- package/templates/Gjs/ui/userWidget.d.ts +0 -13
- package/templates/Gjs/ui/userWidget.js +0 -6
- package/templates/node-gtk/index.d.ts +0 -40
- /package/templates/{Cogl-2.0.d.ts → cogl-2-0.d.ts} +0 -0
- /package/templates/{Granite-1.0.d.ts → granite-1.0.d.ts} +0 -0
- /package/templates/{Granite-7.0.d.ts → granite-7.0.d.ts} +0 -0
- /package/templates/{GstBase-0.10.d.ts → gstbase-0.10.d.ts} +0 -0
- /package/templates/node-gtk/{GObject-2.0.d.ts → gobject-2.0.d.ts} +0 -0
- /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,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,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,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,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,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
|
-
}
|