@girs/handy-1 4.4.0 → 4.6.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/handy-1.d.ts CHANGED
@@ -48,11 +48,11 @@ export namespace Handy {
48
48
  /**
49
49
  * Keep the title centered when possible
50
50
  */
51
- LOOSE,
51
+ LOOSE = 0,
52
52
  /**
53
53
  * Keep the title centered at all cost
54
54
  */
55
- STRICT,
55
+ STRICT = 1,
56
56
  }
57
57
 
58
58
 
@@ -74,25 +74,25 @@ export namespace Handy {
74
74
  * {@link StyleManager} returned by {@link StyleManager.get_default}, it's
75
75
  * equivalent to `HDY_COLOR_SCHEME_FORCE_LIGHT`.
76
76
  */
77
- DEFAULT,
77
+ DEFAULT = 0,
78
78
  /**
79
79
  * Always use light appearance.
80
80
  */
81
- FORCE_LIGHT,
81
+ FORCE_LIGHT = 1,
82
82
  /**
83
83
  * Use light appearance unless the system
84
84
  * prefers dark colors.
85
85
  */
86
- PREFER_LIGHT,
86
+ PREFER_LIGHT = 2,
87
87
  /**
88
88
  * Use dark appearance unless the system prefers
89
89
  * light colors.
90
90
  */
91
- PREFER_DARK,
91
+ PREFER_DARK = 3,
92
92
  /**
93
93
  * Always use dark appearance.
94
94
  */
95
- FORCE_DARK,
95
+ FORCE_DARK = 4,
96
96
  }
97
97
 
98
98
 
@@ -116,18 +116,18 @@ export namespace Handy {
116
116
  * sliding from or towards the end according to orientation, text direction
117
117
  * and children order
118
118
  */
119
- OVER,
119
+ OVER = 0,
120
120
  /**
121
121
  * Uncover the new page or cover the old page,
122
122
  * sliding from or towards the start according to orientation, text direction
123
123
  * and children order
124
124
  */
125
- UNDER,
125
+ UNDER = 1,
126
126
  /**
127
127
  * Slide from left, right, up or down according
128
128
  * to the orientation, text direction and the children order
129
129
  */
130
- SLIDE,
130
+ SLIDE = 2,
131
131
  }
132
132
 
133
133
 
@@ -148,16 +148,16 @@ export namespace Handy {
148
148
  * Disable folding, the flap cannot reach narrow
149
149
  * sizes.
150
150
  */
151
- NEVER,
151
+ NEVER = 0,
152
152
  /**
153
153
  * Keep the flap always folded.
154
154
  */
155
- ALWAYS,
155
+ ALWAYS = 1,
156
156
  /**
157
157
  * Fold and unfold the flap based on available
158
158
  * space.
159
159
  */
160
- AUTO,
160
+ AUTO = 2,
161
161
  }
162
162
 
163
163
 
@@ -184,18 +184,18 @@ export namespace Handy {
184
184
  * The flap slides over the content, which is
185
185
  * dimmed. When folded, only the flap can be swiped.
186
186
  */
187
- OVER,
187
+ OVER = 0,
188
188
  /**
189
189
  * The content slides over the flap. Only the
190
190
  * content can be swiped.
191
191
  */
192
- UNDER,
192
+ UNDER = 1,
193
193
  /**
194
194
  * The flap slides offscreen when hidden,
195
195
  * neither the flap nor content overlap each other. Both widgets can be
196
196
  * swiped.
197
197
  */
198
- SLIDE,
198
+ SLIDE = 2,
199
199
  }
200
200
 
201
201
 
@@ -217,17 +217,17 @@ export namespace Handy {
217
217
  /**
218
218
  * The child is a {@link HeaderBar}
219
219
  */
220
- HEADER_BAR,
220
+ HEADER_BAR = 0,
221
221
  /**
222
222
  * The child is a
223
223
  * {@link Gtk.HeaderBar}
224
224
  */
225
- GTK_HEADER_BAR,
225
+ GTK_HEADER_BAR = 1,
226
226
  /**
227
227
  * The child is a
228
228
  * {@link HeaderGroup}
229
229
  */
230
- HEADER_GROUP,
230
+ HEADER_GROUP = 2,
231
231
  }
232
232
 
233
233
 
@@ -251,18 +251,18 @@ export namespace Handy {
251
251
  * page, sliding from or towards the end according to orientation, text
252
252
  * direction and children order
253
253
  */
254
- OVER,
254
+ OVER = 0,
255
255
  /**
256
256
  * Uncover the new page or cover the old
257
257
  * page, sliding from or towards the start according to orientation, text
258
258
  * direction and children order
259
259
  */
260
- UNDER,
260
+ UNDER = 1,
261
261
  /**
262
262
  * Slide from left, right, up or down
263
263
  * according to the orientation, text direction and the children order
264
264
  */
265
- SLIDE,
265
+ SLIDE = 2,
266
266
  }
267
267
 
268
268
 
@@ -283,12 +283,12 @@ export namespace Handy {
283
283
  * Corresponds to start or top, depending on
284
284
  * orientation and text direction
285
285
  */
286
- BACK,
286
+ BACK = 0,
287
287
  /**
288
288
  * Corresponds to end or bottom, depending on
289
289
  * orientation and text direction
290
290
  */
291
- FORWARD,
291
+ FORWARD = 1,
292
292
  }
293
293
 
294
294
 
@@ -308,11 +308,11 @@ export namespace Handy {
308
308
  /**
309
309
  * No transition
310
310
  */
311
- NONE,
311
+ NONE = 0,
312
312
  /**
313
313
  * A cross-fade
314
314
  */
315
- CROSSFADE,
315
+ CROSSFADE = 1,
316
316
  }
317
317
 
318
318
 
@@ -332,15 +332,15 @@ export namespace Handy {
332
332
  /**
333
333
  * Automatically adapt to the best fitting mode
334
334
  */
335
- AUTO,
335
+ AUTO = 0,
336
336
  /**
337
337
  * Force the narrow mode
338
338
  */
339
- NARROW,
339
+ NARROW = 1,
340
340
  /**
341
341
  * Force the wide mode
342
342
  */
343
- WIDE,
343
+ WIDE = 2,
344
344
  }
345
345
 
346
346
 
@@ -818,7 +818,7 @@ export namespace Handy {
818
818
 
819
819
  namespace ApplicationWindow {
820
820
  // Signal signatures
821
- interface SignalSignatures extends Gtk.ApplicationWindow.SignalSignatures {
821
+ interface SignalSignatures extends Gtk.ApplicationWindow.SignalSignatures, Gio.ActionGroup.SignalSignatures {
822
822
  "notify::show-menubar": (pspec: GObject.ParamSpec) => void;
823
823
  "notify::accept-focus": (pspec: GObject.ParamSpec) => void;
824
824
  "notify::application": (pspec: GObject.ParamSpec) => void;
@@ -1882,7 +1882,7 @@ export namespace Handy {
1882
1882
 
1883
1883
  namespace Carousel {
1884
1884
  // Signal signatures
1885
- interface SignalSignatures extends Gtk.EventBox.SignalSignatures {
1885
+ interface SignalSignatures extends Gtk.EventBox.SignalSignatures, Swipeable.SignalSignatures {
1886
1886
  /**
1887
1887
  * This signal is emitted after a page has been changed.
1888
1888
  *
@@ -1892,7 +1892,7 @@ export namespace Handy {
1892
1892
  * @since 1.0
1893
1893
  * @run-last
1894
1894
  */
1895
- "page-changed": (arg0: number) => void;
1895
+ "page-changed": (index: number) => void;
1896
1896
  "notify::allow-long-swipes": (pspec: GObject.ParamSpec) => void;
1897
1897
  "notify::allow-mouse-drag": (pspec: GObject.ParamSpec) => void;
1898
1898
  "notify::allow-scroll-wheel": (pspec: GObject.ParamSpec) => void;
@@ -3350,7 +3350,7 @@ export namespace Handy {
3350
3350
 
3351
3351
  namespace Deck {
3352
3352
  // Signal signatures
3353
- interface SignalSignatures extends Gtk.Container.SignalSignatures {
3353
+ interface SignalSignatures extends Gtk.Container.SignalSignatures, Swipeable.SignalSignatures {
3354
3354
  "notify::can-swipe-back": (pspec: GObject.ParamSpec) => void;
3355
3355
  "notify::can-swipe-forward": (pspec: GObject.ParamSpec) => void;
3356
3356
  "notify::hhomogeneous": (pspec: GObject.ParamSpec) => void;
@@ -4441,7 +4441,7 @@ export namespace Handy {
4441
4441
 
4442
4442
  namespace Flap {
4443
4443
  // Signal signatures
4444
- interface SignalSignatures extends Gtk.Container.SignalSignatures {
4444
+ interface SignalSignatures extends Gtk.Container.SignalSignatures, Swipeable.SignalSignatures {
4445
4445
  "notify::content": (pspec: GObject.ParamSpec) => void;
4446
4446
  "notify::flap": (pspec: GObject.ParamSpec) => void;
4447
4447
  "notify::flap-position": (pspec: GObject.ParamSpec) => void;
@@ -6610,7 +6610,7 @@ export namespace Handy {
6610
6610
 
6611
6611
  namespace Leaflet {
6612
6612
  // Signal signatures
6613
- interface SignalSignatures extends Gtk.Container.SignalSignatures {
6613
+ interface SignalSignatures extends Gtk.Container.SignalSignatures, Swipeable.SignalSignatures {
6614
6614
  "notify::can-swipe-back": (pspec: GObject.ParamSpec) => void;
6615
6615
  "notify::can-swipe-forward": (pspec: GObject.ParamSpec) => void;
6616
6616
  "notify::child-transition-duration": (pspec: GObject.ParamSpec) => void;
@@ -9781,21 +9781,21 @@ export namespace Handy {
9781
9781
  * @since 1.0
9782
9782
  * @run-first
9783
9783
  */
9784
- "begin-swipe": (arg0: NavigationDirection, arg1: boolean) => void;
9784
+ "begin-swipe": (direction: NavigationDirection, direct: boolean) => void;
9785
9785
  /**
9786
9786
  * This signal is emitted as soon as the gesture has stopped.
9787
9787
  * @signal
9788
9788
  * @since 1.0
9789
9789
  * @run-first
9790
9790
  */
9791
- "end-swipe": (arg0: number, arg1: number) => void;
9791
+ "end-swipe": (duration: number, to: number) => void;
9792
9792
  /**
9793
9793
  * This signal is emitted every time the progress value changes.
9794
9794
  * @signal
9795
9795
  * @since 1.0
9796
9796
  * @run-first
9797
9797
  */
9798
- "update-swipe": (arg0: number) => void;
9798
+ "update-swipe": (progress: number) => void;
9799
9799
  "notify::allow-long-swipes": (pspec: GObject.ParamSpec) => void;
9800
9800
  "notify::allow-mouse-drag": (pspec: GObject.ParamSpec) => void;
9801
9801
  "notify::enabled": (pspec: GObject.ParamSpec) => void;
@@ -10055,7 +10055,7 @@ export namespace Handy {
10055
10055
  * @since 1.2
10056
10056
  * @run-last
10057
10057
  */
10058
- "extra-drag-data-received": (arg0: TabPage, arg1: Gdk.DragContext, arg2: Gtk.SelectionData, arg3: number, arg4: number) => void;
10058
+ "extra-drag-data-received": (page: TabPage, context: Gdk.DragContext, data: Gtk.SelectionData, info: number, time: number) => void;
10059
10059
  "notify::autohide": (pspec: GObject.ParamSpec) => void;
10060
10060
  "notify::end-action-widget": (pspec: GObject.ParamSpec) => void;
10061
10061
  "notify::expand-tabs": (pspec: GObject.ParamSpec) => void;
@@ -10881,7 +10881,7 @@ export namespace Handy {
10881
10881
  * @since 1.2
10882
10882
  * @run-last
10883
10883
  */
10884
- "close-page": (arg0: TabPage) => boolean | void;
10884
+ "close-page": (page: TabPage) => boolean | void;
10885
10885
  /**
10886
10886
  * Emitted when a tab should be transferred into a new window.
10887
10887
  *
@@ -10903,7 +10903,7 @@ export namespace Handy {
10903
10903
  * @since 1.2
10904
10904
  * @run-last
10905
10905
  */
10906
- "indicator-activated": (arg0: TabPage) => void;
10906
+ "indicator-activated": (page: TabPage) => void;
10907
10907
  /**
10908
10908
  * Emitted when a page has been created or transferred to the view.
10909
10909
  *
@@ -10913,7 +10913,7 @@ export namespace Handy {
10913
10913
  * @since 1.2
10914
10914
  * @run-last
10915
10915
  */
10916
- "page-attached": (arg0: TabPage, arg1: number) => void;
10916
+ "page-attached": (page: TabPage, position: number) => void;
10917
10917
  /**
10918
10918
  * Emitted when a page has been removed or transferred to another view.
10919
10919
  *
@@ -10928,14 +10928,14 @@ export namespace Handy {
10928
10928
  * @since 1.2
10929
10929
  * @run-last
10930
10930
  */
10931
- "page-detached": (arg0: TabPage, arg1: number) => void;
10931
+ "page-detached": (page: TabPage, position: number) => void;
10932
10932
  /**
10933
10933
  * This signal is emitted after `page` has been reordered to `position`.
10934
10934
  * @signal
10935
10935
  * @since 1.2
10936
10936
  * @run-last
10937
10937
  */
10938
- "page-reordered": (arg0: TabPage, arg1: number) => void;
10938
+ "page-reordered": (page: TabPage, position: number) => void;
10939
10939
  /**
10940
10940
  * Emitted when a context menu is opened or closed for `page`.
10941
10941
  *
@@ -10947,7 +10947,7 @@ export namespace Handy {
10947
10947
  * @since 1.2
10948
10948
  * @run-last
10949
10949
  */
10950
- "setup-menu": (arg0: TabPage) => void;
10950
+ "setup-menu": (page: TabPage) => void;
10951
10951
  "notify::default-icon": (pspec: GObject.ParamSpec) => void;
10952
10952
  "notify::is-transferring-page": (pspec: GObject.ParamSpec) => void;
10953
10953
  "notify::menu-model": (pspec: GObject.ParamSpec) => void;
@@ -13092,6 +13092,20 @@ export namespace Handy {
13092
13092
  type WindowHandleClass = typeof WindowHandle;
13093
13093
 
13094
13094
  namespace Swipeable {
13095
+ // Signal signatures
13096
+ interface SignalSignatures {
13097
+ /**
13098
+ * Emitted when the widget's visible child is changed.
13099
+ *
13100
+ * `duration` can be 0 if the child is switched without animation.
13101
+ *
13102
+ * This is used by {@link SwipeGroup}, applications should not connect to it.
13103
+ * @signal
13104
+ * @since 1.0
13105
+ * @run-first
13106
+ */
13107
+ "child-switched": (index: number, duration: number) => void;
13108
+ }
13095
13109
  /**
13096
13110
  * Interface for implementing Swipeable.
13097
13111
  * Contains only the virtual methods that need to be implemented.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/handy-1",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "description": "GJS TypeScript type definitions for Handy-1",
5
5
  "type": "module",
6
6
  "module": "handy-1.js",
@@ -16,10 +16,10 @@
16
16
  "import": "./handy-1-import.js",
17
17
  "default": "./handy-1-import.js"
18
18
  },
19
- "./surface": {
20
- "types": "./handy-1-surface.d.ts",
21
- "import": "./handy-1-surface.js",
22
- "default": "./handy-1-surface.js"
19
+ "./vocabulary": {
20
+ "types": "./handy-1-vocabulary.d.ts",
21
+ "import": "./handy-1-vocabulary.js",
22
+ "default": "./handy-1-vocabulary.js"
23
23
  },
24
24
  "./handy-1": {
25
25
  "types": "./handy-1.d.ts",
@@ -36,20 +36,20 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.4.0",
40
- "@girs/gtk-3.0": "^4.4.0",
41
- "@girs/xlib-2.0": "^4.4.0",
42
- "@girs/gdk-3.0": "^4.4.0",
43
- "@girs/cairo-1.0": "^4.4.0",
44
- "@girs/gobject-2.0": "^4.4.0",
45
- "@girs/glib-2.0": "^4.4.0",
46
- "@girs/pango-1.0": "^4.4.0",
47
- "@girs/harfbuzz-0.0": "^4.4.0",
48
- "@girs/freetype2-2.0": "^4.4.0",
49
- "@girs/gio-2.0": "^4.4.0",
50
- "@girs/gmodule-2.0": "^4.4.0",
51
- "@girs/gdkpixbuf-2.0": "^4.4.0",
52
- "@girs/atk-1.0": "^4.4.0" },
39
+ "@girs/gjs": "^4.6.0",
40
+ "@girs/gtk-3.0": "^4.6.0",
41
+ "@girs/xlib-2.0": "^4.6.0",
42
+ "@girs/gdk-3.0": "^4.6.0",
43
+ "@girs/cairo-1.0": "^4.6.0",
44
+ "@girs/gobject-2.0": "^4.6.0",
45
+ "@girs/glib-2.0": "^4.6.0",
46
+ "@girs/pango-1.0": "^4.6.0",
47
+ "@girs/harfbuzz-0.0": "^4.6.0",
48
+ "@girs/freetype2-2.0": "^4.6.0",
49
+ "@girs/gio-2.0": "^4.6.0",
50
+ "@girs/gmodule-2.0": "^4.6.0",
51
+ "@girs/gdkpixbuf-2.0": "^4.6.0",
52
+ "@girs/atk-1.0": "^4.6.0" },
53
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },
package/tsconfig.json CHANGED
@@ -62,7 +62,7 @@
62
62
  ]
63
63
  }
64
64
  },
65
- "include": ["./handy-1.d.ts","./handy-1-surface.d.ts"]
65
+ "include": ["./handy-1.d.ts","./handy-1-vocabulary.d.ts"]
66
66
  }
67
67
 
68
68