@gjsify/adwaita-nativescript 0.64.0 → 0.64.1-next.241

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 (79) hide show
  1. package/lib/esm/canvas2d/canvas2d-bridge.js +1 -1
  2. package/lib/esm/canvas2d/native-canvas.ios.js +1 -1
  3. package/lib/esm/canvas2d/native-canvas.js +1 -1
  4. package/lib/esm/index.js +1 -1
  5. package/lib/esm/namespace/gtk.js +1 -1
  6. package/lib/esm/widgets/adw-about-dialog.js +1 -1
  7. package/lib/esm/widgets/adw-action-row.js +1 -1
  8. package/lib/esm/widgets/adw-avatar.js +1 -1
  9. package/lib/esm/widgets/adw-button-row.js +1 -1
  10. package/lib/esm/widgets/adw-combo-row.js +1 -1
  11. package/lib/esm/widgets/adw-dialog.js +1 -1
  12. package/lib/esm/widgets/adw-entry-row.js +1 -1
  13. package/lib/esm/widgets/adw-expander-row.js +1 -1
  14. package/lib/esm/widgets/adw-navigation-view.js +1 -1
  15. package/lib/esm/widgets/adw-status-page.js +1 -1
  16. package/lib/esm/widgets/adw-switch-row.js +1 -1
  17. package/lib/esm/widgets/gtk-button.js +1 -1
  18. package/lib/esm/widgets/gtk-check-button.js +1 -1
  19. package/lib/esm/widgets/gtk-label.js +1 -1
  20. package/lib/esm/widgets/gtk-menu-button.js +1 -1
  21. package/lib/esm/widgets/gtk-revealer.js +1 -1
  22. package/lib/esm/widgets/gtk-stack.js +1 -1
  23. package/lib/esm/widgets/gtk-window.js +1 -1
  24. package/lib/esm/widgets/index.js +1 -1
  25. package/lib/esm/widgets/widget-layout.js +1 -1
  26. package/lib/types/canvas2d/native-canvas.d.ts +2 -1
  27. package/lib/types/canvas2d/native-canvas.ios.d.ts +2 -1
  28. package/lib/types/widgets/adw-about-dialog.d.ts +14 -3
  29. package/lib/types/widgets/adw-action-row.d.ts +10 -0
  30. package/lib/types/widgets/adw-alert-dialog.d.ts +3 -0
  31. package/lib/types/widgets/adw-avatar.d.ts +3 -0
  32. package/lib/types/widgets/adw-banner.d.ts +3 -0
  33. package/lib/types/widgets/adw-bottom-sheet.d.ts +3 -0
  34. package/lib/types/widgets/adw-button-content.d.ts +3 -0
  35. package/lib/types/widgets/adw-carousel.d.ts +3 -0
  36. package/lib/types/widgets/adw-clamp.d.ts +3 -0
  37. package/lib/types/widgets/adw-data-grid.d.ts +3 -0
  38. package/lib/types/widgets/adw-header-bar.d.ts +3 -0
  39. package/lib/types/widgets/adw-image-button.d.ts +3 -0
  40. package/lib/types/widgets/adw-navigation-page.d.ts +3 -0
  41. package/lib/types/widgets/adw-navigation-view.d.ts +5 -0
  42. package/lib/types/widgets/adw-preferences-dialog.d.ts +3 -0
  43. package/lib/types/widgets/adw-preferences-group.d.ts +3 -0
  44. package/lib/types/widgets/adw-preferences-page.d.ts +3 -0
  45. package/lib/types/widgets/adw-shortcut-label.d.ts +3 -0
  46. package/lib/types/widgets/adw-sidebar.d.ts +3 -0
  47. package/lib/types/widgets/adw-slider-row.d.ts +3 -0
  48. package/lib/types/widgets/adw-spinner.d.ts +3 -0
  49. package/lib/types/widgets/adw-split-button.d.ts +3 -0
  50. package/lib/types/widgets/adw-status-page.d.ts +3 -0
  51. package/lib/types/widgets/adw-switch-row.d.ts +2 -0
  52. package/lib/types/widgets/adw-tab-view.d.ts +3 -0
  53. package/lib/types/widgets/adw-toast-overlay.d.ts +3 -0
  54. package/lib/types/widgets/adw-toggle-group.d.ts +3 -0
  55. package/lib/types/widgets/adw-toggle.d.ts +3 -0
  56. package/lib/types/widgets/adw-toolbar-view.d.ts +3 -0
  57. package/lib/types/widgets/adw-view-stack.d.ts +3 -0
  58. package/lib/types/widgets/adw-view-switcher-bar.d.ts +3 -0
  59. package/lib/types/widgets/adw-window-title.d.ts +3 -0
  60. package/lib/types/widgets/adw-wrap-box.d.ts +3 -0
  61. package/lib/types/widgets/carousel-indicator-base.d.ts +3 -0
  62. package/lib/types/widgets/gtk-action-bar.d.ts +3 -0
  63. package/lib/types/widgets/gtk-button.d.ts +3 -0
  64. package/lib/types/widgets/gtk-drop-down.d.ts +3 -0
  65. package/lib/types/widgets/gtk-entry.d.ts +3 -0
  66. package/lib/types/widgets/gtk-image.d.ts +3 -0
  67. package/lib/types/widgets/gtk-label.d.ts +10 -0
  68. package/lib/types/widgets/gtk-menu-button.d.ts +7 -0
  69. package/lib/types/widgets/gtk-popover-menu.d.ts +3 -0
  70. package/lib/types/widgets/gtk-stack.d.ts +3 -0
  71. package/lib/types/widgets/gtk-text-view.d.ts +3 -0
  72. package/lib/types/widgets/signals.d.ts +3 -0
  73. package/lib/types/widgets/split-view-base.d.ts +3 -0
  74. package/lib/types/widgets/stack-page.d.ts +3 -0
  75. package/lib/types/widgets/styled-layout-base.d.ts +3 -0
  76. package/lib/types/widgets/view-stack-page.d.ts +3 -0
  77. package/lib/types/widgets/view-switcher-base.d.ts +3 -0
  78. package/lib/types/widgets/widget-layout.d.ts +4 -0
  79. package/package.json +14 -13
@@ -1,2 +1,3 @@
1
+ import { type NativeCanvasDriver } from './native-driver.js';
1
2
  export type { NativeCanvasDriver } from './native-driver.js';
2
- export { createUnsupportedCanvasDriver as createNativeCanvasDriver } from './native-driver.js';
3
+ export declare function createNativeCanvasDriver(): NativeCanvasDriver;
@@ -1,5 +1,6 @@
1
1
  import { GridLayout, Label, StackLayout, type EventData } from '@nativescript/core';
2
2
  import { type ConstructProps } from './construct-props.js';
3
+ import type { View } from '@nativescript/core';
3
4
  /** Event name emitted when the dialog is closed. */
4
5
  export declare const CLOSED = "closed";
5
6
  declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
@@ -40,6 +41,9 @@ declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
40
41
  get_prev_sibling(): object | null;
41
42
  get_parent(): object | null;
42
43
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
44
+ get focusable(): boolean;
45
+ set focusable(value: boolean | string);
46
+ grab_focus(): boolean;
43
47
  _emit(eventName: string): void;
44
48
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
45
49
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -65,6 +69,8 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
65
69
  private _comments;
66
70
  private _website;
67
71
  private _copyright;
72
+ /** The window `present (parent)` mounted this in, so closing can take it back out. */
73
+ private _host;
68
74
  constructor(props?: ConstructProps<AdwAboutDialog>);
69
75
  private _addCardLabel;
70
76
  /** The application name (bold, centered). */
@@ -106,9 +112,14 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
106
112
  * `websiteRow`, which is the flat-card equivalent here.
107
113
  */
108
114
  private _render;
109
- /** Reveal the about overlay. */
110
- present(): void;
111
- /** Hide the about overlay and emit `closed`. */
115
+ /**
116
+ * Reveal the about overlay — `adw_dialog_present`.
117
+ *
118
+ * With a `parent` it is hosted in that widget's window like every other AdwDialog, so the
119
+ * window's back handling closes it first. Without one it must already sit in a layout.
120
+ */
121
+ present(parent?: View | null): void;
122
+ /** Hide the about overlay, take it out of its window and emit `closed`. */
112
123
  close(): void;
113
124
  /** Whether the dialog is currently shown. */
114
125
  get open(): boolean;
@@ -42,6 +42,9 @@ declare const AdwActionRow_base: (abstract new (...args: any[]) => {
42
42
  get_prev_sibling(): object | null;
43
43
  get_parent(): object | null;
44
44
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
45
+ get focusable(): boolean;
46
+ set focusable(value: boolean | string);
47
+ grab_focus(): boolean;
45
48
  _emit(eventName: string): void;
46
49
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
47
50
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -72,6 +75,7 @@ export declare class AdwActionRow extends AdwActionRow_base {
72
75
  /** The headless labels + activatable-widget coupling (ADR 0004). */
73
76
  protected readonly _rowState: ActionRowState<View>;
74
77
  private _prefix;
78
+ private _iconImage;
75
79
  private _suffix;
76
80
  constructor(props?: ConstructProps<AdwActionRow>);
77
81
  /**
@@ -92,6 +96,12 @@ export declare class AdwActionRow extends AdwActionRow_base {
92
96
  * this is the third renderer joining it.
93
97
  */
94
98
  add_prefix(view: View): void;
99
+ /**
100
+ * `AdwActionRow:icon-name` — an icon in the prefix slot, before the title. It takes that slot,
101
+ * so a row whose prefix was set with {@link add_prefix} refuses it rather than replace it.
102
+ */
103
+ get iconName(): string;
104
+ set iconName(value: string | null);
95
105
  get prefix(): View | null;
96
106
  /** The row title (column 1, top line). */
97
107
  get title(): string;
@@ -49,6 +49,9 @@ declare const AdwAlertDialog_base: (abstract new (...args: any[]) => {
49
49
  get_prev_sibling(): object | null;
50
50
  get_parent(): object | null;
51
51
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
+ get focusable(): boolean;
53
+ set focusable(value: boolean | string);
54
+ grab_focus(): boolean;
52
55
  _emit(eventName: string): void;
53
56
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
54
57
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -45,6 +45,9 @@ declare const AdwAvatar_base: (abstract new (...args: any[]) => {
45
45
  get_prev_sibling(): object | null;
46
46
  get_parent(): object | null;
47
47
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
48
+ get focusable(): boolean;
49
+ set focusable(value: boolean | string);
50
+ grab_focus(): boolean;
48
51
  _emit(eventName: string): void;
49
52
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
50
53
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -41,6 +41,9 @@ declare const AdwBanner_base: (abstract new (...args: any[]) => {
41
41
  get_prev_sibling(): object | null;
42
42
  get_parent(): object | null;
43
43
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
44
+ get focusable(): boolean;
45
+ set focusable(value: boolean | string);
46
+ grab_focus(): boolean;
44
47
  _emit(eventName: string): void;
45
48
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
46
49
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -52,6 +52,9 @@ declare const AdwBottomSheet_base: (abstract new (...args: any[]) => {
52
52
  get_prev_sibling(): object | null;
53
53
  get_parent(): object | null;
54
54
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
55
+ get focusable(): boolean;
56
+ set focusable(value: boolean | string);
57
+ grab_focus(): boolean;
55
58
  _emit(eventName: string): void;
56
59
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
57
60
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -40,6 +40,9 @@ declare const AdwButtonContent_base: (abstract new (...args: any[]) => {
40
40
  get_prev_sibling(): object | null;
41
41
  get_parent(): object | null;
42
42
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
43
+ get focusable(): boolean;
44
+ set focusable(value: boolean | string);
45
+ grab_focus(): boolean;
43
46
  _emit(eventName: string): void;
44
47
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
45
48
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -55,6 +55,9 @@ declare const AdwCarousel_base: (abstract new (...args: any[]) => {
55
55
  get_prev_sibling(): object | null;
56
56
  get_parent(): object | null;
57
57
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
58
+ get focusable(): boolean;
59
+ set focusable(value: boolean | string);
60
+ grab_focus(): boolean;
58
61
  _emit(eventName: string): void;
59
62
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
60
63
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -41,6 +41,9 @@ declare const AdwClamp_base: (abstract new (...args: any[]) => {
41
41
  get_prev_sibling(): object | null;
42
42
  get_parent(): object | null;
43
43
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
44
+ get focusable(): boolean;
45
+ set focusable(value: boolean | string);
46
+ grab_focus(): boolean;
44
47
  _emit(eventName: string): void;
45
48
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
46
49
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -47,6 +47,9 @@ declare const AdwDataGrid_base: (abstract new (...args: any[]) => {
47
47
  get_prev_sibling(): object | null;
48
48
  get_parent(): object | null;
49
49
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
50
+ get focusable(): boolean;
51
+ set focusable(value: boolean | string);
52
+ grab_focus(): boolean;
50
53
  _emit(eventName: string): void;
51
54
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
52
55
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -39,6 +39,9 @@ declare const AdwHeaderBar_base: (abstract new (...args: any[]) => {
39
39
  get_prev_sibling(): object | null;
40
40
  get_parent(): object | null;
41
41
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
42
+ get focusable(): boolean;
43
+ set focusable(value: boolean | string);
44
+ grab_focus(): boolean;
42
45
  _emit(eventName: string): void;
43
46
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
44
47
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -49,6 +49,9 @@ declare const AdwImageButton_base: (abstract new (...args: any[]) => {
49
49
  get_prev_sibling(): object | null;
50
50
  get_parent(): object | null;
51
51
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
+ get focusable(): boolean;
53
+ set focusable(value: boolean | string);
54
+ grab_focus(): boolean;
52
55
  _emit(eventName: string): void;
53
56
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
54
57
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -45,6 +45,9 @@ declare const AdwNavigationPage_base: (abstract new (...args: any[]) => {
45
45
  get_prev_sibling(): object | null;
46
46
  get_parent(): object | null;
47
47
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
48
+ get focusable(): boolean;
49
+ set focusable(value: boolean | string);
50
+ grab_focus(): boolean;
48
51
  _emit(eventName: string): void;
49
52
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
50
53
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -52,6 +52,9 @@ declare const AdwNavigationView_base: (abstract new (...args: any[]) => {
52
52
  get_prev_sibling(): object | null;
53
53
  get_parent(): object | null;
54
54
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
55
+ get focusable(): boolean;
56
+ set focusable(value: boolean | string);
57
+ grab_focus(): boolean;
55
58
  _emit(eventName: string): void;
56
59
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
57
60
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -136,6 +139,8 @@ export declare class AdwNavigationView extends AdwNavigationView_base {
136
139
  get visiblePage(): View | null;
137
140
  /** The currently-visible page tag, or `null`. */
138
141
  get visiblePageTag(): string | null;
142
+ /** `adw_navigation_view_get_visible_page_tag`. */
143
+ get_visible_page_tag(): string | null;
139
144
  /** The current navigation stack depth. */
140
145
  get depth(): number;
141
146
  /** The navigation stack, bottom-first. */
@@ -43,6 +43,9 @@ declare const AdwPreferencesDialog_base: (abstract new (...args: any[]) => {
43
43
  get_prev_sibling(): object | null;
44
44
  get_parent(): object | null;
45
45
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
46
+ get focusable(): boolean;
47
+ set focusable(value: boolean | string);
48
+ grab_focus(): boolean;
46
49
  _emit(eventName: string): void;
47
50
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
48
51
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -40,6 +40,9 @@ declare const AdwPreferencesGroup_base: (abstract new (...args: any[]) => {
40
40
  get_prev_sibling(): object | null;
41
41
  get_parent(): object | null;
42
42
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
43
+ get focusable(): boolean;
44
+ set focusable(value: boolean | string);
45
+ grab_focus(): boolean;
43
46
  _emit(eventName: string): void;
44
47
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
45
48
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -40,6 +40,9 @@ declare const AdwPreferencesPage_base: (abstract new (...args: any[]) => {
40
40
  get_prev_sibling(): object | null;
41
41
  get_parent(): object | null;
42
42
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
43
+ get focusable(): boolean;
44
+ set focusable(value: boolean | string);
45
+ grab_focus(): boolean;
43
46
  _emit(eventName: string): void;
44
47
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
45
48
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -38,6 +38,9 @@ declare const AdwShortcutLabel_base: (abstract new (...args: any[]) => {
38
38
  get_prev_sibling(): object | null;
39
39
  get_parent(): object | null;
40
40
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
41
+ get focusable(): boolean;
42
+ set focusable(value: boolean | string);
43
+ grab_focus(): boolean;
41
44
  _emit(eventName: string): void;
42
45
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
43
46
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -64,6 +64,9 @@ declare const AdwSidebar_base: (abstract new (...args: any[]) => {
64
64
  get_prev_sibling(): object | null;
65
65
  get_parent(): object | null;
66
66
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
67
+ get focusable(): boolean;
68
+ set focusable(value: boolean | string);
69
+ grab_focus(): boolean;
67
70
  _emit(eventName: string): void;
68
71
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
69
72
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -46,6 +46,9 @@ declare const AdwSliderRow_base: (abstract new (...args: any[]) => {
46
46
  get_prev_sibling(): object | null;
47
47
  get_parent(): object | null;
48
48
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
49
+ get focusable(): boolean;
50
+ set focusable(value: boolean | string);
51
+ grab_focus(): boolean;
49
52
  _emit(eventName: string): void;
50
53
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
51
54
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -40,6 +40,9 @@ declare const AdwSpinner_base: (abstract new (...args: any[]) => {
40
40
  get_prev_sibling(): object | null;
41
41
  get_parent(): object | null;
42
42
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
43
+ get focusable(): boolean;
44
+ set focusable(value: boolean | string);
45
+ grab_focus(): boolean;
43
46
  _emit(eventName: string): void;
44
47
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
45
48
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -61,6 +61,9 @@ declare const AdwSplitButton_base: (abstract new (...args: any[]) => {
61
61
  get_prev_sibling(): object | null;
62
62
  get_parent(): object | null;
63
63
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
64
+ get focusable(): boolean;
65
+ set focusable(value: boolean | string);
66
+ grab_focus(): boolean;
64
67
  _emit(eventName: string): void;
65
68
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
66
69
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -40,6 +40,9 @@ declare const AdwStatusPage_base: (abstract new (...args: any[]) => {
40
40
  get_prev_sibling(): object | null;
41
41
  get_parent(): object | null;
42
42
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
43
+ get focusable(): boolean;
44
+ set focusable(value: boolean | string);
45
+ grab_focus(): boolean;
43
46
  _emit(eventName: string): void;
44
47
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
45
48
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -10,6 +10,8 @@ export interface NotifyActiveEventData extends EventData {
10
10
  }
11
11
  export declare class AdwSwitchRow extends AdwActionRow {
12
12
  static readonly GTypeName: string;
13
+ /** What the builder checks before it binds to `active`, one way or both. */
14
+ static readonly emittedSignals: readonly string[];
13
15
  /** The suffix Switch control. */
14
16
  protected readonly _switch: Switch;
15
17
  /** The headless active flag + its notify rule (ADR 0004). */
@@ -61,6 +61,9 @@ declare const AdwTabView_base: (abstract new (...args: any[]) => {
61
61
  get_prev_sibling(): object | null;
62
62
  get_parent(): object | null;
63
63
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
64
+ get focusable(): boolean;
65
+ set focusable(value: boolean | string);
66
+ grab_focus(): boolean;
64
67
  _emit(eventName: string): void;
65
68
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
66
69
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -45,6 +45,9 @@ declare const AdwToastOverlay_base: (abstract new (...args: any[]) => {
45
45
  get_prev_sibling(): object | null;
46
46
  get_parent(): object | null;
47
47
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
48
+ get focusable(): boolean;
49
+ set focusable(value: boolean | string);
50
+ grab_focus(): boolean;
48
51
  _emit(eventName: string): void;
49
52
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
50
53
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -59,6 +59,9 @@ declare const AdwToggleGroup_base: (abstract new (...args: any[]) => {
59
59
  get_prev_sibling(): object | null;
60
60
  get_parent(): object | null;
61
61
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
62
+ get focusable(): boolean;
63
+ set focusable(value: boolean | string);
64
+ grab_focus(): boolean;
62
65
  _emit(eventName: string): void;
63
66
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
64
67
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -38,6 +38,9 @@ declare const AdwToggle_base: (abstract new (...args: any[]) => {
38
38
  get_prev_sibling(): object | null;
39
39
  get_parent(): object | null;
40
40
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
41
+ get focusable(): boolean;
42
+ set focusable(value: boolean | string);
43
+ grab_focus(): boolean;
41
44
  _emit(eventName: string): void;
42
45
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
43
46
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -41,6 +41,9 @@ declare const AdwToolbarView_base: (abstract new (...args: any[]) => {
41
41
  get_prev_sibling(): object | null;
42
42
  get_parent(): object | null;
43
43
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
44
+ get focusable(): boolean;
45
+ set focusable(value: boolean | string);
46
+ grab_focus(): boolean;
44
47
  _emit(eventName: string): void;
45
48
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
46
49
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -53,6 +53,9 @@ declare const AdwViewStack_base: (abstract new (...args: any[]) => {
53
53
  get_prev_sibling(): object | null;
54
54
  get_parent(): object | null;
55
55
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
56
+ get focusable(): boolean;
57
+ set focusable(value: boolean | string);
58
+ grab_focus(): boolean;
56
59
  _emit(eventName: string): void;
57
60
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
58
61
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -40,6 +40,9 @@ declare const AdwViewSwitcherBar_base: (abstract new (...args: any[]) => {
40
40
  get_prev_sibling(): object | null;
41
41
  get_parent(): object | null;
42
42
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
43
+ get focusable(): boolean;
44
+ set focusable(value: boolean | string);
45
+ grab_focus(): boolean;
43
46
  _emit(eventName: string): void;
44
47
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
45
48
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -42,6 +42,9 @@ declare const AdwWindowTitle_base: (abstract new (...args: any[]) => {
42
42
  get_prev_sibling(): object | null;
43
43
  get_parent(): object | null;
44
44
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
45
+ get focusable(): boolean;
46
+ set focusable(value: boolean | string);
47
+ grab_focus(): boolean;
45
48
  _emit(eventName: string): void;
46
49
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
47
50
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -41,6 +41,9 @@ declare const AdwWrapBox_base: (abstract new (...args: any[]) => {
41
41
  get_prev_sibling(): object | null;
42
42
  get_parent(): object | null;
43
43
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
44
+ get focusable(): boolean;
45
+ set focusable(value: boolean | string);
46
+ grab_focus(): boolean;
44
47
  _emit(eventName: string): void;
45
48
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
46
49
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -39,6 +39,9 @@ declare const AdwCarouselIndicatorBase_base: (abstract new (...args: any[]) => {
39
39
  get_prev_sibling(): object | null;
40
40
  get_parent(): object | null;
41
41
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
42
+ get focusable(): boolean;
43
+ set focusable(value: boolean | string);
44
+ grab_focus(): boolean;
42
45
  _emit(eventName: string): void;
43
46
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
44
47
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -39,6 +39,9 @@ declare const GtkActionBar_base: (abstract new (...args: any[]) => {
39
39
  get_prev_sibling(): object | null;
40
40
  get_parent(): object | null;
41
41
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
42
+ get focusable(): boolean;
43
+ set focusable(value: boolean | string);
44
+ grab_focus(): boolean;
42
45
  _emit(eventName: string): void;
43
46
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
44
47
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -44,6 +44,9 @@ declare const GtkButton_base: (abstract new (...args: any[]) => {
44
44
  get_prev_sibling(): object | null;
45
45
  get_parent(): object | null;
46
46
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
47
+ get focusable(): boolean;
48
+ set focusable(value: boolean | string);
49
+ grab_focus(): boolean;
47
50
  _emit(eventName: string): void;
48
51
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
49
52
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -53,6 +53,9 @@ declare const GtkDropDown_base: (abstract new (...args: any[]) => {
53
53
  get_prev_sibling(): object | null;
54
54
  get_parent(): object | null;
55
55
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
56
+ get focusable(): boolean;
57
+ set focusable(value: boolean | string);
58
+ grab_focus(): boolean;
56
59
  _emit(eventName: string): void;
57
60
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
58
61
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -51,6 +51,9 @@ declare const GtkEntry_base: (abstract new (...args: any[]) => {
51
51
  get_prev_sibling(): object | null;
52
52
  get_parent(): object | null;
53
53
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
54
+ get focusable(): boolean;
55
+ set focusable(value: boolean | string);
56
+ grab_focus(): boolean;
54
57
  _emit(eventName: string): void;
55
58
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
56
59
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -49,6 +49,9 @@ declare const GtkImage_base: (abstract new (...args: any[]) => {
49
49
  get_prev_sibling(): object | null;
50
50
  get_parent(): object | null;
51
51
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
+ get focusable(): boolean;
53
+ set focusable(value: boolean | string);
54
+ grab_focus(): boolean;
52
55
  _emit(eventName: string): void;
53
56
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
54
57
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -39,6 +39,9 @@ declare const GtkLabel_base: (abstract new (...args: any[]) => {
39
39
  get_prev_sibling(): object | null;
40
40
  get_parent(): object | null;
41
41
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
42
+ get focusable(): boolean;
43
+ set focusable(value: boolean | string);
44
+ grab_focus(): boolean;
42
45
  _emit(eventName: string): void;
43
46
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
44
47
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -124,6 +127,13 @@ export declare class GtkLabel extends GtkLabel_base {
124
127
  set selectable(raw: boolean | string);
125
128
  private _applySelectable;
126
129
  private _applyLines;
130
+ /**
131
+ * `Gtk.Label:justify`. Only `left` (`0`, GTK's default) is accepted: `textAlignment` is where
132
+ * `xalign` already paints the whole text, so a second alignment for the lines inside the block
133
+ * has no platform member to land on and is refused instead of silently dropped.
134
+ */
135
+ get justify(): number;
136
+ set justify(value: number | string);
127
137
  /**
128
138
  * `Gtk.Label:xalign` — where the text sits in the label's box, `0` the start and `1` the
129
139
  * end. Clamped to that range as `gtk_label_set_xalign` clamps it, and painted only at the
@@ -23,6 +23,7 @@ export declare class GtkMenuButton extends AdwImageButton {
23
23
  private _model;
24
24
  private _actions;
25
25
  private _menuTitle;
26
+ private _primary;
26
27
  /** The image button's own classes, which every `styleClasses` write keeps. */
27
28
  private readonly _baseClassName;
28
29
  private _styleClasses;
@@ -55,6 +56,12 @@ export declare class GtkMenuButton extends AdwImageButton {
55
56
  */
56
57
  get styleClasses(): string[];
57
58
  set styleClasses(value: string | null | undefined);
59
+ /**
60
+ * `GtkMenuButton:primary` — held and read back. What GTK adds on top is the F10 shortcut, and
61
+ * this port has no hardware-key route to a button, so the flag changes nothing on screen.
62
+ */
63
+ get primary(): boolean;
64
+ set primary(value: boolean | string);
58
65
  /** `gtk_widget_add_css_class`. A class the button already carries is a no-op. */
59
66
  add_css_class(name: string): void;
60
67
  /** `gtk_widget_remove_css_class`. A class it does not carry is a no-op. */
@@ -42,6 +42,9 @@ declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
42
42
  get_prev_sibling(): object | null;
43
43
  get_parent(): object | null;
44
44
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
45
+ get focusable(): boolean;
46
+ set focusable(value: boolean | string);
47
+ grab_focus(): boolean;
45
48
  _emit(eventName: string): void;
46
49
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
47
50
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -49,6 +49,9 @@ declare const GtkStack_base: (abstract new (...args: any[]) => {
49
49
  get_prev_sibling(): object | null;
50
50
  get_parent(): object | null;
51
51
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
+ get focusable(): boolean;
53
+ set focusable(value: boolean | string);
54
+ grab_focus(): boolean;
52
55
  _emit(eventName: string): void;
53
56
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
54
57
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -51,6 +51,9 @@ declare const GtkTextView_base: (abstract new (...args: any[]) => {
51
51
  get_prev_sibling(): object | null;
52
52
  get_parent(): object | null;
53
53
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
54
+ get focusable(): boolean;
55
+ set focusable(value: boolean | string);
56
+ grab_focus(): boolean;
54
57
  _emit(eventName: string): void;
55
58
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
56
59
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -75,6 +75,9 @@ export declare function withSignals<TBase extends ObservableConstructor>(Base: T
75
75
  get_prev_sibling(): object | null;
76
76
  get_parent(): object | null;
77
77
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
78
+ get focusable(): boolean;
79
+ set focusable(value: boolean | string);
80
+ grab_focus(): boolean;
78
81
  _emit(eventName: string): void;
79
82
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
80
83
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -48,6 +48,9 @@ declare const AdwSplitViewBase_base: (abstract new (...args: any[]) => {
48
48
  get_prev_sibling(): object | null;
49
49
  get_parent(): object | null;
50
50
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
51
+ get focusable(): boolean;
52
+ set focusable(value: boolean | string);
53
+ grab_focus(): boolean;
51
54
  _emit(eventName: string): void;
52
55
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
53
56
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;