@gjsify/adwaita-nativescript 0.64.1-next.240 → 0.64.1-next.243

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 (81) 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 +2 -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/native-tooltip.js +1 -1
  26. package/lib/esm/widgets/widget-layout.js +1 -1
  27. package/lib/types/canvas2d/native-canvas.d.ts +2 -1
  28. package/lib/types/canvas2d/native-canvas.ios.d.ts +2 -1
  29. package/lib/types/widgets/adw-about-dialog.d.ts +14 -3
  30. package/lib/types/widgets/adw-action-row.d.ts +10 -0
  31. package/lib/types/widgets/adw-alert-dialog.d.ts +3 -0
  32. package/lib/types/widgets/adw-avatar.d.ts +3 -0
  33. package/lib/types/widgets/adw-banner.d.ts +3 -0
  34. package/lib/types/widgets/adw-bottom-sheet.d.ts +3 -0
  35. package/lib/types/widgets/adw-button-content.d.ts +3 -0
  36. package/lib/types/widgets/adw-carousel.d.ts +3 -0
  37. package/lib/types/widgets/adw-clamp.d.ts +3 -0
  38. package/lib/types/widgets/adw-data-grid.d.ts +3 -0
  39. package/lib/types/widgets/adw-header-bar.d.ts +3 -0
  40. package/lib/types/widgets/adw-image-button.d.ts +3 -0
  41. package/lib/types/widgets/adw-navigation-page.d.ts +3 -0
  42. package/lib/types/widgets/adw-navigation-view.d.ts +5 -0
  43. package/lib/types/widgets/adw-preferences-dialog.d.ts +3 -0
  44. package/lib/types/widgets/adw-preferences-group.d.ts +3 -0
  45. package/lib/types/widgets/adw-preferences-page.d.ts +3 -0
  46. package/lib/types/widgets/adw-shortcut-label.d.ts +3 -0
  47. package/lib/types/widgets/adw-sidebar.d.ts +3 -0
  48. package/lib/types/widgets/adw-slider-row.d.ts +3 -0
  49. package/lib/types/widgets/adw-spinner.d.ts +3 -0
  50. package/lib/types/widgets/adw-split-button.d.ts +3 -0
  51. package/lib/types/widgets/adw-status-page.d.ts +3 -0
  52. package/lib/types/widgets/adw-switch-row.d.ts +2 -0
  53. package/lib/types/widgets/adw-tab-view.d.ts +3 -0
  54. package/lib/types/widgets/adw-toast-overlay.d.ts +3 -0
  55. package/lib/types/widgets/adw-toggle-group.d.ts +3 -0
  56. package/lib/types/widgets/adw-toggle.d.ts +3 -0
  57. package/lib/types/widgets/adw-toolbar-view.d.ts +3 -0
  58. package/lib/types/widgets/adw-view-stack.d.ts +3 -0
  59. package/lib/types/widgets/adw-view-switcher-bar.d.ts +3 -0
  60. package/lib/types/widgets/adw-window-title.d.ts +3 -0
  61. package/lib/types/widgets/adw-wrap-box.d.ts +3 -0
  62. package/lib/types/widgets/carousel-indicator-base.d.ts +3 -0
  63. package/lib/types/widgets/gtk-action-bar.d.ts +3 -0
  64. package/lib/types/widgets/gtk-button.d.ts +3 -0
  65. package/lib/types/widgets/gtk-drop-down.d.ts +3 -0
  66. package/lib/types/widgets/gtk-entry.d.ts +3 -0
  67. package/lib/types/widgets/gtk-image.d.ts +3 -0
  68. package/lib/types/widgets/gtk-label.d.ts +24 -1
  69. package/lib/types/widgets/gtk-menu-button.d.ts +7 -0
  70. package/lib/types/widgets/gtk-popover-menu.d.ts +3 -0
  71. package/lib/types/widgets/gtk-stack.d.ts +3 -0
  72. package/lib/types/widgets/gtk-text-view.d.ts +3 -0
  73. package/lib/types/widgets/native-tooltip.d.ts +2 -0
  74. package/lib/types/widgets/signals.d.ts +3 -0
  75. package/lib/types/widgets/split-view-base.d.ts +3 -0
  76. package/lib/types/widgets/stack-page.d.ts +3 -0
  77. package/lib/types/widgets/styled-layout-base.d.ts +3 -0
  78. package/lib/types/widgets/view-stack-page.d.ts +3 -0
  79. package/lib/types/widgets/view-switcher-base.d.ts +3 -0
  80. package/lib/types/widgets/widget-layout.d.ts +4 -0
  81. package/package.json +13 -13
@@ -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;
@@ -1,2 +1,4 @@
1
+ /** `Build.VERSION.SDK_INT`, or `Infinity` where there is no Android runtime (nothing to gate). */
2
+ export declare function androidApiLevel(): number;
1
3
  /** Push `text` onto the view's native tooltip, if the native view has one. Empty clears it. */
2
4
  export declare function applyNativeTooltip(view: object, text: string, apiLevel?: number): 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;
@@ -46,6 +46,9 @@ declare const GtkStackPage_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: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
51
54
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -38,6 +38,9 @@ declare const AdwStyledLayoutBase_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;
@@ -46,6 +46,9 @@ declare const AdwViewStackPage_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: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
51
54
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -50,6 +50,9 @@ declare const AdwViewSwitcherBase_base: (abstract new (...args: any[]) => {
50
50
  get_prev_sibling(): object | null;
51
51
  get_parent(): object | null;
52
52
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
53
+ get focusable(): boolean;
54
+ set focusable(value: boolean | string);
55
+ grab_focus(): boolean;
53
56
  _emit(eventName: string): void;
54
57
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
55
58
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -80,6 +80,10 @@ export declare abstract class GtkWidgetLayoutMembers {
80
80
  get_parent(): object | null;
81
81
  /** `gtk_widget_insert_action_group`: `null` removes the group of `prefix`. */
82
82
  insert_action_group(prefix: string, group: ActionGroupLike | null): void;
83
+ get focusable(): boolean;
84
+ set focusable(value: boolean | string);
85
+ /** `gtk_widget_grab_focus`: asks the platform to move focus here; answers whether it now holds it. */
86
+ grab_focus(): boolean;
83
87
  }
84
88
  /**
85
89
  * Give a `@nativescript/core` base GTK's widget layout properties.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/adwaita-nativescript",
3
- "version": "0.64.1-next.240",
3
+ "version": "0.64.1-next.243",
4
4
  "description": "Native Adwaita widgets for the NativeScript runtime — real NativeScript components (StackLayout/GridLayout/Switch/Label) styled like Libadwaita, not a webview",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -73,15 +73,15 @@
73
73
  "design-system"
74
74
  ],
75
75
  "dependencies": {
76
- "@gjsify/adwaita-core": "0.64.1-next.240",
77
- "@gjsify/adwaita-fonts": "0.64.1-next.240",
78
- "@gjsify/adwaita-icons": "0.64.1-next.240",
79
- "@gjsify/canvas2d-core": "0.64.1-next.240",
80
- "@gjsify/native-platform": "0.64.1-next.240"
76
+ "@gjsify/adwaita-core": "0.64.1-next.243",
77
+ "@gjsify/adwaita-fonts": "0.64.1-next.243",
78
+ "@gjsify/adwaita-icons": "0.64.1-next.243",
79
+ "@gjsify/canvas2d-core": "0.64.1-next.243",
80
+ "@gjsify/native-platform": "0.64.1-next.243"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@nativescript/core": "*",
84
- "@gjsify/app-settings": "0.64.1-next.240"
84
+ "@gjsify/app-settings": "0.64.1-next.243"
85
85
  },
86
86
  "peerDependenciesMeta": {
87
87
  "@nativescript/core": {
@@ -92,11 +92,11 @@
92
92
  }
93
93
  },
94
94
  "devDependencies": {
95
- "@gjsify/app-settings": "0.64.1-next.240",
96
- "@gjsify/blueprint": "0.64.1-next.240",
97
- "@gjsify/cli": "0.64.1-next.240",
98
- "@gjsify/unit": "0.64.1-next.240",
99
- "@gjsify/vite-plugin-blueprint": "0.64.1-next.240",
95
+ "@gjsify/app-settings": "0.64.1-next.243",
96
+ "@gjsify/blueprint": "0.64.1-next.243",
97
+ "@gjsify/cli": "0.64.1-next.243",
98
+ "@gjsify/unit": "0.64.1-next.243",
99
+ "@gjsify/vite-plugin-blueprint": "0.64.1-next.243",
100
100
  "@types/node": "^25.9.2",
101
101
  "typescript": "^6.0.3"
102
102
  },
@@ -126,5 +126,5 @@
126
126
  "url": "https://github.com/gjsify/gjsify/issues"
127
127
  },
128
128
  "homepage": "https://github.com/gjsify/gjsify/tree/main/packages/nativescript-bridge/adwaita#readme",
129
- "gitHead": "9cc65385593e615e921d7c3b2ceb31fd03e98e4b"
129
+ "gitHead": "f88c7b1074d454e211094963a9f4dc7d0982bf32"
130
130
  }