@gjsify/adwaita-nativescript 0.64.2 → 0.64.3-next.262

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 (105) hide show
  1. package/lib/esm/index.js +1 -1
  2. package/lib/esm/language-host.js +1 -0
  3. package/lib/esm/language-source.android.js +1 -0
  4. package/lib/esm/language-source.ios.js +1 -0
  5. package/lib/esm/language-source.js +1 -0
  6. package/lib/esm/namespace/adw.js +1 -1
  7. package/lib/esm/namespace/glib.js +1 -1
  8. package/lib/esm/namespace/gobject.js +1 -1
  9. package/lib/esm/widgets/adw-about-dialog.js +7 -2
  10. package/lib/esm/widgets/adw-action-row.js +1 -1
  11. package/lib/esm/widgets/adw-button-row.js +1 -1
  12. package/lib/esm/widgets/adw-dialog.js +1 -1
  13. package/lib/esm/widgets/adw-entry-row.js +1 -1
  14. package/lib/esm/widgets/adw-password-entry-row.js +1 -1
  15. package/lib/esm/widgets/adw-preferences-dialog.js +1 -1
  16. package/lib/esm/widgets/adw-preferences-group.js +1 -1
  17. package/lib/esm/widgets/adw-preferences-page.js +1 -1
  18. package/lib/esm/widgets/adw-spinner.js +1 -1
  19. package/lib/esm/widgets/adw-switch-row.js +1 -1
  20. package/lib/esm/widgets/adw-window-title.js +1 -1
  21. package/lib/esm/widgets/gtk-check-button.js +1 -1
  22. package/lib/esm/widgets/index.js +1 -1
  23. package/lib/esm/widgets/signals.js +1 -1
  24. package/lib/esm/widgets/style-manager-host.js +1 -0
  25. package/lib/esm/widgets/style-manager.js +1 -1
  26. package/lib/esm/widgets/widget-layout.js +1 -1
  27. package/lib/esm/widgets/window-state.js +1 -1
  28. package/lib/types/about-dialog-credits.spec.d.ts +1 -0
  29. package/lib/types/about-dialog-links.spec.d.ts +1 -0
  30. package/lib/types/action-row-properties.spec.d.ts +2 -0
  31. package/lib/types/entry-row-properties.spec.d.ts +2 -0
  32. package/lib/types/index.d.ts +2 -2
  33. package/lib/types/language-host.d.ts +3 -0
  34. package/lib/types/language-source.android.d.ts +1 -0
  35. package/lib/types/language-source.d.ts +1 -0
  36. package/lib/types/language-source.ios.d.ts +1 -0
  37. package/lib/types/namespace/adw.d.ts +1 -1
  38. package/lib/types/namespace/glib.d.ts +4 -2
  39. package/lib/types/signals-gobject.spec.d.ts +2 -0
  40. package/lib/types/signals.spec.d.ts +24 -0
  41. package/lib/types/spinner-properties.spec.d.ts +2 -0
  42. package/lib/types/switch-row-properties.spec.d.ts +2 -0
  43. package/lib/types/testing/ns-core.d.mts +6 -0
  44. package/lib/types/widgets/adw-about-dialog.d.ts +84 -16
  45. package/lib/types/widgets/adw-action-row.d.ts +50 -21
  46. package/lib/types/widgets/adw-alert-dialog.d.ts +6 -2
  47. package/lib/types/widgets/adw-avatar.d.ts +6 -2
  48. package/lib/types/widgets/adw-banner.d.ts +6 -2
  49. package/lib/types/widgets/adw-bottom-sheet.d.ts +6 -2
  50. package/lib/types/widgets/adw-button-content.d.ts +6 -2
  51. package/lib/types/widgets/adw-carousel.d.ts +6 -2
  52. package/lib/types/widgets/adw-clamp.d.ts +6 -2
  53. package/lib/types/widgets/adw-data-grid.d.ts +6 -2
  54. package/lib/types/widgets/adw-dialog.d.ts +8 -1
  55. package/lib/types/widgets/adw-entry-row.d.ts +85 -48
  56. package/lib/types/widgets/adw-header-bar.d.ts +6 -2
  57. package/lib/types/widgets/adw-image-button.d.ts +6 -2
  58. package/lib/types/widgets/adw-navigation-page.d.ts +6 -2
  59. package/lib/types/widgets/adw-navigation-view.d.ts +6 -2
  60. package/lib/types/widgets/adw-password-entry-row.d.ts +6 -1
  61. package/lib/types/widgets/adw-preferences-dialog.d.ts +15 -82
  62. package/lib/types/widgets/adw-preferences-group.d.ts +25 -2
  63. package/lib/types/widgets/adw-preferences-page.d.ts +26 -2
  64. package/lib/types/widgets/adw-shortcut-label.d.ts +6 -2
  65. package/lib/types/widgets/adw-sidebar.d.ts +6 -2
  66. package/lib/types/widgets/adw-slider-row.d.ts +6 -2
  67. package/lib/types/widgets/adw-spinner.d.ts +24 -16
  68. package/lib/types/widgets/adw-split-button.d.ts +6 -2
  69. package/lib/types/widgets/adw-status-page.d.ts +6 -2
  70. package/lib/types/widgets/adw-switch-row.d.ts +25 -20
  71. package/lib/types/widgets/adw-tab-view.d.ts +6 -2
  72. package/lib/types/widgets/adw-toast-overlay.d.ts +6 -2
  73. package/lib/types/widgets/adw-toggle-group.d.ts +6 -2
  74. package/lib/types/widgets/adw-toggle.d.ts +6 -2
  75. package/lib/types/widgets/adw-toolbar-view.d.ts +6 -2
  76. package/lib/types/widgets/adw-view-stack.d.ts +6 -2
  77. package/lib/types/widgets/adw-view-switcher-bar.d.ts +6 -2
  78. package/lib/types/widgets/adw-window-title.d.ts +16 -12
  79. package/lib/types/widgets/adw-wrap-box.d.ts +6 -2
  80. package/lib/types/widgets/carousel-indicator-base.d.ts +6 -2
  81. package/lib/types/widgets/gtk-action-bar.d.ts +6 -2
  82. package/lib/types/widgets/gtk-button.d.ts +6 -2
  83. package/lib/types/widgets/gtk-check-button.d.ts +10 -1
  84. package/lib/types/widgets/gtk-drop-down.d.ts +6 -2
  85. package/lib/types/widgets/gtk-entry.d.ts +6 -2
  86. package/lib/types/widgets/gtk-image.d.ts +6 -2
  87. package/lib/types/widgets/gtk-label.d.ts +6 -2
  88. package/lib/types/widgets/gtk-popover-menu.d.ts +6 -2
  89. package/lib/types/widgets/gtk-stack.d.ts +6 -2
  90. package/lib/types/widgets/gtk-text-view.d.ts +6 -2
  91. package/lib/types/widgets/index.d.ts +1 -3
  92. package/lib/types/widgets/signals.d.ts +81 -3
  93. package/lib/types/widgets/split-view-base.d.ts +6 -2
  94. package/lib/types/widgets/stack-page.d.ts +6 -2
  95. package/lib/types/widgets/style-manager-host.d.ts +2 -0
  96. package/lib/types/widgets/style-manager.d.ts +14 -1
  97. package/lib/types/widgets/styled-layout-base.d.ts +6 -2
  98. package/lib/types/widgets/view-stack-page.d.ts +6 -2
  99. package/lib/types/widgets/view-switcher-base.d.ts +6 -2
  100. package/lib/types/widgets/widget-layout.d.ts +4 -0
  101. package/lib/types/widgets/window-state.d.ts +26 -0
  102. package/lib/types/window-title-properties.spec.d.ts +2 -0
  103. package/package.json +14 -13
  104. package/src/testing/ns-core.mts +20 -0
  105. package/src/theme/adwaita.css +31 -4
@@ -27,6 +27,8 @@ export interface SidebarActivatedEventData extends EventData {
27
27
  title: string;
28
28
  }
29
29
  declare const AdwSidebar_base: ((abstract new (...args: any[]) => {
30
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
31
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
30
32
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
31
33
  disconnect(handlerId: number): void;
32
34
  emit(eventName: string, ...args: unknown[]): void;
@@ -73,10 +75,12 @@ declare const AdwSidebar_base: ((abstract new (...args: any[]) => {
73
75
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
74
76
  get focusable(): boolean;
75
77
  set focusable(value: boolean | string);
78
+ get focusOnClick(): boolean;
79
+ set focusOnClick(value: boolean | string);
80
+ get_focus_on_click(): boolean;
81
+ set_focus_on_click(focusOnClick: boolean): void;
76
82
  grab_focus(): boolean;
77
83
  _emit(eventName: string): void;
78
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
79
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
80
84
  notify<T extends EventData>(data: T): void;
81
85
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
82
86
  set(name: string, value: unknown): void;
@@ -9,6 +9,8 @@ export interface NotifySliderValueEventData extends EventData {
9
9
  value: number;
10
10
  }
11
11
  declare const AdwSliderRow_base: ((abstract new (...args: any[]) => {
12
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
13
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
12
14
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
13
15
  disconnect(handlerId: number): void;
14
16
  emit(eventName: string, ...args: unknown[]): void;
@@ -55,10 +57,12 @@ declare const AdwSliderRow_base: ((abstract new (...args: any[]) => {
55
57
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
56
58
  get focusable(): boolean;
57
59
  set focusable(value: boolean | string);
60
+ get focusOnClick(): boolean;
61
+ set focusOnClick(value: boolean | string);
62
+ get_focus_on_click(): boolean;
63
+ set_focus_on_click(focusOnClick: boolean): void;
58
64
  grab_focus(): boolean;
59
65
  _emit(eventName: string): void;
60
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
61
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
62
66
  notify<T extends EventData>(data: T): void;
63
67
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
64
68
  set(name: string, value: unknown): void;
@@ -1,8 +1,15 @@
1
1
  import { GridLayout } from '@nativescript/core';
2
2
  import { DEFAULT_SPINNER_SIZE } from './chrome.js';
3
3
  import { type ConstructProps } from './construct-props.js';
4
+ import type { GObjectNotify } from './signals.js';
4
5
  export { DEFAULT_SPINNER_SIZE };
6
+ /** Event name emitted when {@link AdwSpinner.spinning} changes. */
7
+ export declare const NOTIFY_SPINNING = "notify::spinning";
8
+ /** Event name emitted when {@link AdwSpinner.size} changes. */
9
+ export declare const NOTIFY_SIZE = "notify::size";
5
10
  declare const AdwSpinner_base: ((abstract new (...args: any[]) => {
11
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
12
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
6
13
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
7
14
  disconnect(handlerId: number): void;
8
15
  emit(eventName: string, ...args: unknown[]): void;
@@ -49,10 +56,12 @@ declare const AdwSpinner_base: ((abstract new (...args: any[]) => {
49
56
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
50
57
  get focusable(): boolean;
51
58
  set focusable(value: boolean | string);
59
+ get focusOnClick(): boolean;
60
+ set focusOnClick(value: boolean | string);
61
+ get_focus_on_click(): boolean;
62
+ set_focus_on_click(focusOnClick: boolean): void;
52
63
  grab_focus(): boolean;
53
64
  _emit(eventName: string): void;
54
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
55
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
56
65
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
57
66
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
58
67
  set(name: string, value: unknown): void;
@@ -62,18 +71,11 @@ declare const AdwSpinner_base: ((abstract new (...args: any[]) => {
62
71
  }) & typeof GridLayout;
63
72
  export declare class AdwSpinner extends AdwSpinner_base {
64
73
  static readonly GTypeName: string;
65
- /** The platform indicator — the RING, capped at 64 DIPs. */
66
- private readonly _indicator;
67
- /** The requested BOX size, floored at the measured minimum 16. */
68
- private _size;
69
- /** Whether the consumer wants it spinning, independent of whether it is mapped. */
70
- private _spinning;
71
- constructor(props?: ConstructProps<AdwSpinner>);
72
- private _applySize;
73
- private _applySpinning;
74
- /** Whether the spinner is animating. Gated on being mapped, as in GTK. */
75
- get spinning(): boolean;
76
- set spinning(value: boolean | string);
74
+ /**
75
+ * Whether the spinner is animating. Gated on being mapped, as in GTK. A string from XML is
76
+ * parsed to a boolean by the seam; anything but `'true'` / `'false'` throws.
77
+ */
78
+ spinning: boolean;
77
79
  /**
78
80
  * The BOX size in DIPs — what was requested, floored at the measured
79
81
  * minimum 16 and NOT capped.
@@ -83,8 +85,14 @@ export declare class AdwSpinner extends AdwSpinner_base {
83
85
  * the 64 cap lives. The two used to be one number, so an oversized spinner
84
86
  * silently took 64 DIPs of layout instead of the 200 it was given.
85
87
  */
86
- get size(): number;
87
- set size(value: number | string);
88
+ size: number;
89
+ /** `notify('size')` beside NativeScript's `notify({ eventName })` — see {@link GObjectNotify}. */
90
+ notify: GObjectNotify;
91
+ /** The platform indicator — the RING, capped at 64 DIPs. */
92
+ private readonly _indicator;
93
+ constructor(props?: ConstructProps<AdwSpinner>);
94
+ private _applySize;
95
+ private _applySpinning;
88
96
  /** The drawn ring diameter — `spinnerGeometry`, capped at 64. */
89
97
  get ringDiameter(): number;
90
98
  }
@@ -24,6 +24,8 @@ export interface MenuTappedEventData extends EventData {
24
24
  action?: string;
25
25
  }
26
26
  declare const AdwSplitButton_base: ((abstract new (...args: any[]) => {
27
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
28
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
27
29
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
28
30
  disconnect(handlerId: number): void;
29
31
  emit(eventName: string, ...args: unknown[]): void;
@@ -70,10 +72,12 @@ declare const AdwSplitButton_base: ((abstract new (...args: any[]) => {
70
72
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
71
73
  get focusable(): boolean;
72
74
  set focusable(value: boolean | string);
75
+ get focusOnClick(): boolean;
76
+ set focusOnClick(value: boolean | string);
77
+ get_focus_on_click(): boolean;
78
+ set_focus_on_click(focusOnClick: boolean): void;
73
79
  grab_focus(): boolean;
74
80
  _emit(eventName: string): void;
75
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
76
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
77
81
  notify<T extends EventData>(data: T): void;
78
82
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
79
83
  set(name: string, value: unknown): void;
@@ -3,6 +3,8 @@ import { GridLayout, Label, StackLayout } from '@nativescript/core';
3
3
  import { GtkImage } from './gtk-image.js';
4
4
  import { type ConstructProps } from './construct-props.js';
5
5
  declare const AdwStatusPage_base: ((abstract new (...args: any[]) => {
6
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
7
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
6
8
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
7
9
  disconnect(handlerId: number): void;
8
10
  emit(eventName: string, ...args: unknown[]): void;
@@ -49,10 +51,12 @@ declare const AdwStatusPage_base: ((abstract new (...args: any[]) => {
49
51
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
50
52
  get focusable(): boolean;
51
53
  set focusable(value: boolean | string);
54
+ get focusOnClick(): boolean;
55
+ set focusOnClick(value: boolean | string);
56
+ get_focus_on_click(): boolean;
57
+ set_focus_on_click(focusOnClick: boolean): void;
52
58
  grab_focus(): boolean;
53
59
  _emit(eventName: string): void;
54
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
55
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
56
60
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
57
61
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
58
62
  set(name: string, value: unknown): void;
@@ -1,25 +1,33 @@
1
- import { Switch, type EventData } from '@nativescript/core';
1
+ import { Switch } from '@nativescript/core';
2
2
  import { AdwActionRow } from './adw-action-row.js';
3
3
  import { type ConstructProps } from './construct-props.js';
4
- /** Event name emitted when {@link AdwSwitchRow.active} changes. Mirrors GObject `notify::active`. */
4
+ /**
5
+ * Event name emitted when {@link AdwSwitchRow.active} changes. Mirrors GObject `notify::active`,
6
+ * and like every declared member it is subscribed with `connect` alone (see `signals.ts`).
7
+ *
8
+ * There is no payload TYPE to go with it: a real `notify::` carries a `GParamSpec`, not the
9
+ * value, and the seam hands a handler the port's plain `{ eventName, object }` on both legs.
10
+ * Read the state off the emitter — `(self) => self.active`.
11
+ */
5
12
  export declare const NOTIFY_ACTIVE = "notify::active";
6
- /** Payload of the `notify::active` event. */
7
- export interface NotifyActiveEventData extends EventData {
8
- /** The new `active` state. */
9
- active: boolean;
10
- }
11
- export declare class AdwSwitchRow extends AdwActionRow {
13
+ declare const AdwSwitchRow_base: ((abstract new (...args: any[]) => {
14
+ _emit(eventName: string): void;
15
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
16
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
17
+ notify<T extends import("@nativescript/core").EventData>(data: T): void;
18
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
19
+ set(name: string, value: unknown): void;
20
+ get(name: string): unknown;
21
+ }) & {
22
+ readonly emittedSignals: readonly string[];
23
+ }) & typeof AdwActionRow;
24
+ export declare class AdwSwitchRow extends AdwSwitchRow_base {
12
25
  static readonly GTypeName: string;
13
- /** What the builder checks before it binds to `active`, one way or both. */
14
- static readonly emittedSignals: readonly string[];
26
+ /** Whether the switch is on. */
27
+ active: boolean;
15
28
  /** The suffix Switch control. */
16
29
  protected readonly _switch: Switch;
17
- /** The headless active flag + its notify rule (ADR 0004). */
18
- private readonly _switchState;
19
30
  constructor(props?: ConstructProps<AdwSwitchRow>);
20
- /** Whether the switch is on. */
21
- get active(): boolean;
22
- set active(value: boolean | string);
23
31
  get_active(): boolean;
24
32
  set_active(active: boolean): void;
25
33
  /**
@@ -34,10 +42,7 @@ export declare class AdwSwitchRow extends AdwActionRow {
34
42
  * that — `row-press.ts` reasons about the same propagation for its highlight.
35
43
  */
36
44
  activate(): void;
37
- /**
38
- * Push a state transition out to the Switch and emit `notify::active` — only
39
- * when something actually changed, which is the `g_object_notify` gate
40
- * libadwaita puts on the same transition (C:224-225 → :76).
41
- */
45
+ /** Push the state out to the `Switch`. Run from `notify::active`, which is already the gate. */
42
46
  private _apply;
43
47
  }
48
+ export {};
@@ -24,6 +24,8 @@ export interface ClosePageEventData extends EventData {
24
24
  index: number;
25
25
  }
26
26
  declare const AdwTabView_base: ((abstract new (...args: any[]) => {
27
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
28
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
27
29
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
28
30
  disconnect(handlerId: number): void;
29
31
  emit(eventName: string, ...args: unknown[]): void;
@@ -70,10 +72,12 @@ declare const AdwTabView_base: ((abstract new (...args: any[]) => {
70
72
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
71
73
  get focusable(): boolean;
72
74
  set focusable(value: boolean | string);
75
+ get focusOnClick(): boolean;
76
+ set focusOnClick(value: boolean | string);
77
+ get_focus_on_click(): boolean;
78
+ set_focus_on_click(focusOnClick: boolean): void;
73
79
  grab_focus(): boolean;
74
80
  _emit(eventName: string): void;
75
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
76
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
77
81
  notify<T extends EventData>(data: T): void;
78
82
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
79
83
  set(name: string, value: unknown): void;
@@ -5,6 +5,8 @@ import { type ConstructProps } from './construct-props.js';
5
5
  export { AdwToast, AdwToastQueue, DEFAULT_TOAST_TIMEOUT } from '@gjsify/adwaita-core';
6
6
  export type { AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, } from '@gjsify/adwaita-core';
7
7
  declare const AdwToastOverlay_base: ((abstract new (...args: any[]) => {
8
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
9
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
8
10
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
9
11
  disconnect(handlerId: number): void;
10
12
  emit(eventName: string, ...args: unknown[]): void;
@@ -51,10 +53,12 @@ declare const AdwToastOverlay_base: ((abstract new (...args: any[]) => {
51
53
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
54
  get focusable(): boolean;
53
55
  set focusable(value: boolean | string);
56
+ get focusOnClick(): boolean;
57
+ set focusOnClick(value: boolean | string);
58
+ get_focus_on_click(): boolean;
59
+ set_focus_on_click(focusOnClick: boolean): void;
54
60
  grab_focus(): boolean;
55
61
  _emit(eventName: string): void;
56
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
57
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
58
62
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
59
63
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
60
64
  set(name: string, value: unknown): void;
@@ -22,6 +22,8 @@ export interface AdwToggleSpec {
22
22
  name?: string | null;
23
23
  }
24
24
  declare const AdwToggleGroup_base: ((abstract new (...args: any[]) => {
25
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
26
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
25
27
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
26
28
  disconnect(handlerId: number): void;
27
29
  emit(eventName: string, ...args: unknown[]): void;
@@ -68,10 +70,12 @@ declare const AdwToggleGroup_base: ((abstract new (...args: any[]) => {
68
70
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
69
71
  get focusable(): boolean;
70
72
  set focusable(value: boolean | string);
73
+ get focusOnClick(): boolean;
74
+ set focusOnClick(value: boolean | string);
75
+ get_focus_on_click(): boolean;
76
+ set_focus_on_click(focusOnClick: boolean): void;
71
77
  grab_focus(): boolean;
72
78
  _emit(eventName: string): void;
73
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
74
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
75
79
  notify<T extends EventData>(data: T): void;
76
80
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
77
81
  set(name: string, value: unknown): void;
@@ -1,6 +1,8 @@
1
1
  import { Observable } from '@nativescript/core';
2
2
  import { type ConstructProps } from './construct-props.js';
3
3
  declare const AdwToggle_base: ((abstract new (...args: any[]) => {
4
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
5
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
4
6
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
5
7
  disconnect(handlerId: number): void;
6
8
  emit(eventName: string, ...args: unknown[]): void;
@@ -47,10 +49,12 @@ declare const AdwToggle_base: ((abstract new (...args: any[]) => {
47
49
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
48
50
  get focusable(): boolean;
49
51
  set focusable(value: boolean | string);
52
+ get focusOnClick(): boolean;
53
+ set focusOnClick(value: boolean | string);
54
+ get_focus_on_click(): boolean;
55
+ set_focus_on_click(focusOnClick: boolean): void;
50
56
  grab_focus(): boolean;
51
57
  _emit(eventName: string): void;
52
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
53
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
54
58
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
55
59
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
56
60
  set(name: string, value: unknown): void;
@@ -4,6 +4,8 @@ import { type AdwToolbarStyle } from './chrome.js';
4
4
  import { type SystemBarEdges } from './system-bars.js';
5
5
  import { type ConstructProps } from './construct-props.js';
6
6
  declare const AdwToolbarView_base: ((abstract new (...args: any[]) => {
7
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
8
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
7
9
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
8
10
  disconnect(handlerId: number): void;
9
11
  emit(eventName: string, ...args: unknown[]): void;
@@ -50,10 +52,12 @@ declare const AdwToolbarView_base: ((abstract new (...args: any[]) => {
50
52
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
51
53
  get focusable(): boolean;
52
54
  set focusable(value: boolean | string);
55
+ get focusOnClick(): boolean;
56
+ set focusOnClick(value: boolean | string);
57
+ get_focus_on_click(): boolean;
58
+ set_focus_on_click(focusOnClick: boolean): void;
53
59
  grab_focus(): boolean;
54
60
  _emit(eventName: string): void;
55
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
56
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
57
61
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
58
62
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
59
63
  set(name: string, value: unknown): void;
@@ -16,6 +16,8 @@ export declare const NOTIFY_VISIBLE_CHILD_NAME = "notify::visible-child-name";
16
16
  export interface NotifyVisibleChildEventData extends EventData, ViewStackNotifyPayload {
17
17
  }
18
18
  declare const AdwViewStack_base: ((abstract new (...args: any[]) => {
19
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
20
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
19
21
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
20
22
  disconnect(handlerId: number): void;
21
23
  emit(eventName: string, ...args: unknown[]): void;
@@ -62,10 +64,12 @@ declare const AdwViewStack_base: ((abstract new (...args: any[]) => {
62
64
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
63
65
  get focusable(): boolean;
64
66
  set focusable(value: boolean | string);
67
+ get focusOnClick(): boolean;
68
+ set focusOnClick(value: boolean | string);
69
+ get_focus_on_click(): boolean;
70
+ set_focus_on_click(focusOnClick: boolean): void;
65
71
  grab_focus(): boolean;
66
72
  _emit(eventName: string): void;
67
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
68
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
69
73
  notify<T extends EventData>(data: T): void;
70
74
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
71
75
  set(name: string, value: unknown): void;
@@ -3,6 +3,8 @@ import { AdwViewStack } from './adw-view-stack.js';
3
3
  import { type ViewId } from './id-reference.js';
4
4
  import { type ConstructProps } from './construct-props.js';
5
5
  declare const AdwViewSwitcherBar_base: ((abstract new (...args: any[]) => {
6
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
7
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
6
8
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
7
9
  disconnect(handlerId: number): void;
8
10
  emit(eventName: string, ...args: unknown[]): void;
@@ -49,10 +51,12 @@ declare const AdwViewSwitcherBar_base: ((abstract new (...args: any[]) => {
49
51
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
50
52
  get focusable(): boolean;
51
53
  set focusable(value: boolean | string);
54
+ get focusOnClick(): boolean;
55
+ set focusOnClick(value: boolean | string);
56
+ get_focus_on_click(): boolean;
57
+ set_focus_on_click(focusOnClick: boolean): void;
52
58
  grab_focus(): boolean;
53
59
  _emit(eventName: string): void;
54
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
55
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
56
60
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
57
61
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
58
62
  set(name: string, value: unknown): void;
@@ -1,11 +1,14 @@
1
- import { Label, StackLayout, type EventData } from '@nativescript/core';
1
+ import { Label, StackLayout } from '@nativescript/core';
2
2
  import { type ConstructProps } from './construct-props.js';
3
+ import type { GObjectNotify } from './signals.js';
3
4
  /** Event name emitted when {@link AdwWindowTitle.title} changes. */
4
5
  export declare const NOTIFY_TITLE = "notify::title";
5
6
  /** Event name emitted when {@link AdwWindowTitle.subtitle} changes. */
6
7
  export declare const NOTIFY_SUBTITLE = "notify::subtitle";
7
8
  declare const AdwWindowTitle_base: ((abstract new (...args: any[]) => {
8
- connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
9
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
10
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
11
+ connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
9
12
  disconnect(handlerId: number): void;
10
13
  emit(eventName: string, ...args: unknown[]): void;
11
14
  get_property(name: string): unknown;
@@ -51,11 +54,13 @@ declare const AdwWindowTitle_base: ((abstract new (...args: any[]) => {
51
54
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
55
  get focusable(): boolean;
53
56
  set focusable(value: boolean | string);
57
+ get focusOnClick(): boolean;
58
+ set focusOnClick(value: boolean | string);
59
+ get_focus_on_click(): boolean;
60
+ set_focus_on_click(focusOnClick: boolean): void;
54
61
  grab_focus(): boolean;
55
62
  _emit(eventName: string): void;
56
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
57
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
58
- notify<T extends EventData>(data: T): void;
63
+ notify<T extends import("@nativescript/core").EventData>(data: T): void;
59
64
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
60
65
  set(name: string, value: unknown): void;
61
66
  get(name: string): unknown;
@@ -64,6 +69,12 @@ declare const AdwWindowTitle_base: ((abstract new (...args: any[]) => {
64
69
  }) & typeof StackLayout;
65
70
  export declare class AdwWindowTitle extends AdwWindowTitle_base {
66
71
  static readonly GTypeName: string;
72
+ /** The window title (bold, top line). Empty collapses its label. */
73
+ title: string;
74
+ /** The subtitle (dim second line). Empty collapses its label. */
75
+ subtitle: string;
76
+ /** `notify('title')` beside NativeScript's `notify({ eventName })` — see {@link GObjectNotify}. */
77
+ notify: GObjectNotify;
67
78
  /** The bold title label. */
68
79
  protected readonly _titleLabel: Label;
69
80
  /** The dim subtitle label. */
@@ -71,14 +82,7 @@ export declare class AdwWindowTitle extends AdwWindowTitle_base {
71
82
  /** The headless title/subtitle pair + change detection (ADR 0004). */
72
83
  private readonly _state;
73
84
  constructor(props?: ConstructProps<AdwWindowTitle>);
74
- /** The window title (bold, top line). Empty collapses its label. */
75
- get title(): string;
76
- set title(value: string);
77
- /** The subtitle (dim second line). Empty collapses its label. */
78
- get subtitle(): string;
79
- set subtitle(value: string);
80
85
  /** Push the derived text + visibility onto the two `Label`s. */
81
86
  private _apply;
82
- private _notify;
83
87
  }
84
88
  export {};
@@ -4,6 +4,8 @@ import { type ConstructProps } from './construct-props.js';
4
4
  /** Every `notify::` an `Adw.WrapBox` emits (adw-wrap-box.c:284-497). */
5
5
  export type AdwWrapBoxProperty = 'child-spacing' | 'child-spacing-unit' | 'pack-direction' | 'align' | 'justify' | 'justify-last-line' | 'line-spacing' | 'line-spacing-unit' | 'line-homogeneous' | 'natural-line-length' | 'natural-line-length-unit' | 'wrap-reverse' | 'wrap-policy' | 'orientation';
6
6
  declare const AdwWrapBox_base: ((abstract new (...args: any[]) => {
7
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
8
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
7
9
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
8
10
  disconnect(handlerId: number): void;
9
11
  emit(eventName: string, ...args: unknown[]): void;
@@ -50,10 +52,12 @@ declare const AdwWrapBox_base: ((abstract new (...args: any[]) => {
50
52
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
51
53
  get focusable(): boolean;
52
54
  set focusable(value: boolean | string);
55
+ get focusOnClick(): boolean;
56
+ set focusOnClick(value: boolean | string);
57
+ get_focus_on_click(): boolean;
58
+ set_focus_on_click(focusOnClick: boolean): void;
53
59
  grab_focus(): boolean;
54
60
  _emit(eventName: string): void;
55
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
56
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
57
61
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
58
62
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
59
63
  set(name: string, value: unknown): void;
@@ -2,6 +2,8 @@ import { GridLayout, StackLayout } from '@nativescript/core';
2
2
  import { AdwCarousel } from './adw-carousel.js';
3
3
  import { type ViewId } from './id-reference.js';
4
4
  declare const AdwCarouselIndicatorBase_base: ((abstract new (...args: any[]) => {
5
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
6
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
5
7
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
6
8
  disconnect(handlerId: number): void;
7
9
  emit(eventName: string, ...args: unknown[]): void;
@@ -48,10 +50,12 @@ declare const AdwCarouselIndicatorBase_base: ((abstract new (...args: any[]) =>
48
50
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
49
51
  get focusable(): boolean;
50
52
  set focusable(value: boolean | string);
53
+ get focusOnClick(): boolean;
54
+ set focusOnClick(value: boolean | string);
55
+ get_focus_on_click(): boolean;
56
+ set_focus_on_click(focusOnClick: boolean): void;
51
57
  grab_focus(): boolean;
52
58
  _emit(eventName: string): void;
53
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
54
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
55
59
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
56
60
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
57
61
  set(name: string, value: unknown): void;
@@ -2,6 +2,8 @@ import type { View } from '@nativescript/core';
2
2
  import { GridLayout, StackLayout } from '@nativescript/core';
3
3
  import { type ConstructProps } from './construct-props.js';
4
4
  declare const GtkActionBar_base: ((abstract new (...args: any[]) => {
5
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
6
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
5
7
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
6
8
  disconnect(handlerId: number): void;
7
9
  emit(eventName: string, ...args: unknown[]): void;
@@ -48,10 +50,12 @@ declare const GtkActionBar_base: ((abstract new (...args: any[]) => {
48
50
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
49
51
  get focusable(): boolean;
50
52
  set focusable(value: boolean | string);
53
+ get focusOnClick(): boolean;
54
+ set focusOnClick(value: boolean | string);
55
+ get_focus_on_click(): boolean;
56
+ set_focus_on_click(focusOnClick: boolean): void;
51
57
  grab_focus(): boolean;
52
58
  _emit(eventName: string): void;
53
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
54
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
55
59
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
56
60
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
57
61
  set(name: string, value: unknown): void;
@@ -7,6 +7,8 @@ export declare const GTK_BUTTON_IMAGE_CLASS = "image-button";
7
7
  /** The class the button's own label carries, so the theme can give it Adwaita's type. */
8
8
  export declare const GTK_BUTTON_LABEL_CLASS = "adw-button-label";
9
9
  declare const GtkButton_base: ((abstract new (...args: any[]) => {
10
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
11
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
10
12
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
11
13
  disconnect(handlerId: number): void;
12
14
  emit(eventName: string, ...args: unknown[]): void;
@@ -53,10 +55,12 @@ declare const GtkButton_base: ((abstract new (...args: any[]) => {
53
55
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
54
56
  get focusable(): boolean;
55
57
  set focusable(value: boolean | string);
58
+ get focusOnClick(): boolean;
59
+ set focusOnClick(value: boolean | string);
60
+ get_focus_on_click(): boolean;
61
+ set_focus_on_click(focusOnClick: boolean): void;
56
62
  grab_focus(): boolean;
57
63
  _emit(eventName: string): void;
58
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
59
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
60
64
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
61
65
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
62
66
  set(name: string, value: unknown): void;
@@ -28,6 +28,8 @@ export declare class GtkCheckButton extends AdwStyledLayoutBase {
28
28
  private _child;
29
29
  /** A `group` written as an id before the button was in a loaded tree. */
30
30
  private _groupId;
31
+ /** The content column's unit, which {@link _syncContent} keeps. */
32
+ private _contentUnit;
31
33
  constructor(props?: ConstructProps<GtkCheckButton>);
32
34
  /** `Gtk.CheckButton:active` — whether the box is ticked. Defaults to `false`. */
33
35
  get active(): boolean;
@@ -57,7 +59,14 @@ export declare class GtkCheckButton extends AdwStyledLayoutBase {
57
59
  /** `gtk_check_button_set_active`. */
58
60
  set_active(active: boolean): void;
59
61
  _addChildFromBuilder(_name: string, view: View): void;
60
- /** The text shows only while there is a label and no child widget replacing it. */
62
+ /**
63
+ * The text shows only while there is a label and no child widget replacing it.
64
+ *
65
+ * The content column is `star` only while it holds content. An empty `star` column still
66
+ * takes the whole width a parent offers at most, so a bare check button in an
67
+ * `Adw.WrapBox` (a flexbox, which measures `AT_MOST`) filled its line and the swatches of
68
+ * Learn6502's colour selectors stacked one per line.
69
+ */
61
70
  private _syncContent;
62
71
  protected get _ownClass(): string;
63
72
  protected _restyle(): void;
@@ -16,6 +16,8 @@ export interface NotifyDropDownSelectedEventData extends EventData {
16
16
  label: string;
17
17
  }
18
18
  declare const GtkDropDown_base: ((abstract new (...args: any[]) => {
19
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
20
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
19
21
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
20
22
  disconnect(handlerId: number): void;
21
23
  emit(eventName: string, ...args: unknown[]): void;
@@ -62,10 +64,12 @@ declare const GtkDropDown_base: ((abstract new (...args: any[]) => {
62
64
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
63
65
  get focusable(): boolean;
64
66
  set focusable(value: boolean | string);
67
+ get focusOnClick(): boolean;
68
+ set focusOnClick(value: boolean | string);
69
+ get_focus_on_click(): boolean;
70
+ set_focus_on_click(focusOnClick: boolean): void;
65
71
  grab_focus(): boolean;
66
72
  _emit(eventName: string): void;
67
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
68
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
69
73
  notify<T extends EventData>(data: T): void;
70
74
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
71
75
  set(name: string, value: unknown): void;