@gjsify/adwaita-nativescript 0.53.0 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/lib/esm/builder/index.js +1 -1
  2. package/lib/esm/builder/template-classes.js +1 -0
  3. package/lib/esm/capabilities.js +1 -0
  4. package/lib/esm/index.js +1 -1
  5. package/lib/esm/namespace/adw.js +1 -1
  6. package/lib/esm/namespace/gtk.js +1 -1
  7. package/lib/esm/widgets/accent-theme.js +1 -1
  8. package/lib/esm/widgets/adw-about-dialog.js +1 -1
  9. package/lib/esm/widgets/adw-accent.js +1 -1
  10. package/lib/esm/widgets/adw-alert-dialog.js +1 -1
  11. package/lib/esm/widgets/adw-application-window.js +1 -0
  12. package/lib/esm/widgets/adw-avatar.js +1 -1
  13. package/lib/esm/widgets/adw-banner.js +1 -1
  14. package/lib/esm/widgets/adw-bin.js +1 -0
  15. package/lib/esm/widgets/adw-button-content.js +1 -1
  16. package/lib/esm/widgets/adw-button-row.js +1 -1
  17. package/lib/esm/widgets/adw-combo-row.js +1 -1
  18. package/lib/esm/widgets/adw-data-grid.js +1 -1
  19. package/lib/esm/widgets/adw-dialog.js +1 -0
  20. package/lib/esm/widgets/adw-entry-row.js +1 -1
  21. package/lib/esm/widgets/adw-expander-row.js +1 -1
  22. package/lib/esm/widgets/adw-navigation-view.js +1 -1
  23. package/lib/esm/widgets/adw-slider-row.js +1 -1
  24. package/lib/esm/widgets/adw-spin-row.js +1 -1
  25. package/lib/esm/widgets/adw-spinner.js +1 -1
  26. package/lib/esm/widgets/adw-split-button.js +1 -1
  27. package/lib/esm/widgets/adw-status-page.js +1 -1
  28. package/lib/esm/widgets/adw-switch-row.js +1 -1
  29. package/lib/esm/widgets/adw-tab-view.js +1 -1
  30. package/lib/esm/widgets/adw-toast-overlay.js +1 -1
  31. package/lib/esm/widgets/adw-toggle-group.js +1 -1
  32. package/lib/esm/widgets/adw-toolbar-view.js +1 -1
  33. package/lib/esm/widgets/adw-view-stack.js +1 -1
  34. package/lib/esm/widgets/adw-view-switcher-bar.js +1 -1
  35. package/lib/esm/widgets/adw-window.js +1 -0
  36. package/lib/esm/widgets/adw-wrap-box.js +1 -1
  37. package/lib/esm/widgets/box-layout.js +1 -1
  38. package/lib/esm/widgets/breakpoint.js +1 -1
  39. package/lib/esm/widgets/grid-state.js +1 -0
  40. package/lib/esm/widgets/gtk-box.js +1 -1
  41. package/lib/esm/widgets/gtk-button.js +1 -1
  42. package/lib/esm/widgets/gtk-check-button.js +1 -0
  43. package/lib/esm/widgets/gtk-drawing-area.js +1 -0
  44. package/lib/esm/widgets/gtk-drop-down.js +1 -1
  45. package/lib/esm/widgets/gtk-entry.js +1 -1
  46. package/lib/esm/widgets/gtk-frame.js +1 -0
  47. package/lib/esm/widgets/gtk-grid.js +1 -0
  48. package/lib/esm/widgets/gtk-label.js +1 -1
  49. package/lib/esm/widgets/gtk-list-box.js +1 -0
  50. package/lib/esm/widgets/gtk-menu-button.js +1 -1
  51. package/lib/esm/widgets/gtk-overlay.js +1 -0
  52. package/lib/esm/widgets/gtk-revealer.js +1 -0
  53. package/lib/esm/widgets/gtk-scrolled-window.js +1 -0
  54. package/lib/esm/widgets/gtk-separator.js +1 -0
  55. package/lib/esm/widgets/gtk-stack.js +1 -0
  56. package/lib/esm/widgets/gtk-text-view.js +1 -0
  57. package/lib/esm/widgets/gtk-toggle-button.js +1 -0
  58. package/lib/esm/widgets/host-insets.android.js +1 -1
  59. package/lib/esm/widgets/icon-path.js +1 -1
  60. package/lib/esm/widgets/icon-theme.js +1 -1
  61. package/lib/esm/widgets/index.js +1 -1
  62. package/lib/esm/widgets/list-box-state.js +1 -0
  63. package/lib/esm/widgets/ns-length.js +1 -0
  64. package/lib/esm/widgets/revealer-state.js +1 -0
  65. package/lib/esm/widgets/row-state.js +1 -1
  66. package/lib/esm/widgets/scrolled-window-policy.js +1 -0
  67. package/lib/esm/widgets/single-child-base.js +1 -0
  68. package/lib/esm/widgets/stack-page.js +1 -0
  69. package/lib/esm/widgets/style-classes.js +1 -1
  70. package/lib/esm/widgets/styled-layout-base.js +1 -0
  71. package/lib/esm/widgets/system-bars-source.android.js +1 -0
  72. package/lib/esm/widgets/system-bars-source.ios.js +1 -0
  73. package/lib/esm/widgets/system-bars-source.js +1 -0
  74. package/lib/esm/widgets/system-bars.js +1 -0
  75. package/lib/esm/widgets/transition-type.js +1 -0
  76. package/lib/esm/widgets/view-switcher-base.js +1 -1
  77. package/lib/esm/widgets/widget-layout.js +1 -1
  78. package/lib/esm/widgets/window-base.js +1 -0
  79. package/lib/esm/widgets/window-state.js +1 -0
  80. package/lib/types/builder/index.d.ts +20 -3
  81. package/lib/types/builder/template-classes.d.ts +13 -0
  82. package/lib/types/capabilities.d.ts +2 -0
  83. package/lib/types/construct-vectors.spec.d.ts +1 -0
  84. package/lib/types/containers.spec.d.ts +2 -0
  85. package/lib/types/grid-layout.spec.d.ts +1 -0
  86. package/lib/types/grid-state.spec.d.ts +2 -0
  87. package/lib/types/gtk-box.spec.d.ts +1 -0
  88. package/lib/types/gtk-controls.spec.d.ts +1 -0
  89. package/lib/types/gtk-grid.spec.d.ts +1 -0
  90. package/lib/types/gtk-list-box.spec.d.ts +1 -0
  91. package/lib/types/gtk-stack.spec.d.ts +2 -0
  92. package/lib/types/gtk-toggle-button.spec.d.ts +2 -0
  93. package/lib/types/index.d.ts +1 -1
  94. package/lib/types/list-box-state.spec.d.ts +2 -0
  95. package/lib/types/namespace/adw.d.ts +4 -0
  96. package/lib/types/namespace/gtk.d.ts +13 -0
  97. package/lib/types/ns-length.spec.d.ts +2 -0
  98. package/lib/types/revealer-state.spec.d.ts +2 -0
  99. package/lib/types/scrolled-window-policy.spec.d.ts +2 -0
  100. package/lib/types/system-bars.spec.d.ts +2 -0
  101. package/lib/types/testing/ns-core.d.mts +44 -0
  102. package/lib/types/transition-type.spec.d.ts +2 -0
  103. package/lib/types/widget-base.spec.d.ts +1 -0
  104. package/lib/types/widgets/adw-about-dialog.d.ts +10 -0
  105. package/lib/types/widgets/adw-action-row.d.ts +10 -0
  106. package/lib/types/widgets/adw-alert-dialog.d.ts +10 -0
  107. package/lib/types/widgets/adw-application-window.d.ts +5 -0
  108. package/lib/types/widgets/adw-avatar.d.ts +10 -0
  109. package/lib/types/widgets/adw-banner.d.ts +10 -0
  110. package/lib/types/widgets/adw-bin.d.ts +7 -0
  111. package/lib/types/widgets/adw-bottom-sheet.d.ts +10 -0
  112. package/lib/types/widgets/adw-button-content.d.ts +10 -0
  113. package/lib/types/widgets/adw-carousel.d.ts +10 -0
  114. package/lib/types/widgets/adw-clamp.d.ts +10 -0
  115. package/lib/types/widgets/adw-data-grid.d.ts +10 -0
  116. package/lib/types/widgets/adw-dialog.d.ts +62 -0
  117. package/lib/types/widgets/adw-header-bar.d.ts +10 -0
  118. package/lib/types/widgets/adw-image-button.d.ts +10 -0
  119. package/lib/types/widgets/adw-navigation-page.d.ts +10 -0
  120. package/lib/types/widgets/adw-navigation-view.d.ts +10 -0
  121. package/lib/types/widgets/adw-preferences-dialog.d.ts +10 -0
  122. package/lib/types/widgets/adw-preferences-group.d.ts +10 -0
  123. package/lib/types/widgets/adw-preferences-page.d.ts +10 -0
  124. package/lib/types/widgets/adw-shortcut-label.d.ts +10 -0
  125. package/lib/types/widgets/adw-sidebar.d.ts +10 -0
  126. package/lib/types/widgets/adw-slider-row.d.ts +10 -0
  127. package/lib/types/widgets/adw-spinner.d.ts +10 -0
  128. package/lib/types/widgets/adw-split-button.d.ts +10 -0
  129. package/lib/types/widgets/adw-status-page.d.ts +10 -0
  130. package/lib/types/widgets/adw-tab-view.d.ts +10 -0
  131. package/lib/types/widgets/adw-toast-overlay.d.ts +16 -2
  132. package/lib/types/widgets/adw-toggle-group.d.ts +10 -0
  133. package/lib/types/widgets/adw-toggle.d.ts +10 -0
  134. package/lib/types/widgets/adw-toolbar-view.d.ts +21 -0
  135. package/lib/types/widgets/adw-view-stack.d.ts +23 -0
  136. package/lib/types/widgets/adw-view-switcher-bar.d.ts +10 -0
  137. package/lib/types/widgets/adw-window-title.d.ts +10 -0
  138. package/lib/types/widgets/adw-window.d.ts +5 -0
  139. package/lib/types/widgets/adw-wrap-box.d.ts +10 -0
  140. package/lib/types/widgets/box-layout.d.ts +19 -5
  141. package/lib/types/widgets/breakpoint.d.ts +7 -1
  142. package/lib/types/widgets/carousel-indicator-base.d.ts +10 -0
  143. package/lib/types/widgets/grid-state.d.ts +34 -0
  144. package/lib/types/widgets/gtk-action-bar.d.ts +10 -0
  145. package/lib/types/widgets/gtk-box.d.ts +27 -52
  146. package/lib/types/widgets/gtk-button.d.ts +20 -0
  147. package/lib/types/widgets/gtk-check-button.d.ts +51 -0
  148. package/lib/types/widgets/gtk-drawing-area.d.ts +19 -0
  149. package/lib/types/widgets/gtk-drop-down.d.ts +10 -0
  150. package/lib/types/widgets/gtk-entry.d.ts +10 -0
  151. package/lib/types/widgets/gtk-frame.d.ts +25 -0
  152. package/lib/types/widgets/gtk-grid.d.ts +57 -0
  153. package/lib/types/widgets/gtk-image.d.ts +10 -0
  154. package/lib/types/widgets/gtk-label.d.ts +10 -0
  155. package/lib/types/widgets/gtk-list-box.d.ts +73 -0
  156. package/lib/types/widgets/gtk-overlay.d.ts +17 -0
  157. package/lib/types/widgets/gtk-revealer.d.ts +30 -0
  158. package/lib/types/widgets/gtk-scrolled-window.d.ts +25 -0
  159. package/lib/types/widgets/gtk-separator.d.ts +11 -0
  160. package/lib/types/widgets/gtk-stack.d.ts +124 -0
  161. package/lib/types/widgets/gtk-text-view.d.ts +63 -0
  162. package/lib/types/widgets/gtk-toggle-button.d.ts +33 -0
  163. package/lib/types/widgets/index.d.ts +40 -2
  164. package/lib/types/widgets/list-box-state.d.ts +19 -0
  165. package/lib/types/widgets/ns-length.d.ts +10 -0
  166. package/lib/types/widgets/revealer-state.d.ts +7 -0
  167. package/lib/types/widgets/row-state.d.ts +6 -0
  168. package/lib/types/widgets/scrolled-window-policy.d.ts +17 -0
  169. package/lib/types/widgets/signals.d.ts +10 -0
  170. package/lib/types/widgets/single-child-base.d.ts +22 -0
  171. package/lib/types/widgets/split-view-base.d.ts +10 -0
  172. package/lib/types/widgets/stack-page.d.ts +93 -0
  173. package/lib/types/widgets/style-classes.d.ts +28 -0
  174. package/lib/types/widgets/styled-layout-base.d.ts +63 -0
  175. package/lib/types/widgets/system-bars-source.android.d.ts +2 -0
  176. package/lib/types/widgets/system-bars-source.d.ts +2 -0
  177. package/lib/types/widgets/system-bars-source.ios.d.ts +2 -0
  178. package/lib/types/widgets/system-bars.d.ts +71 -0
  179. package/lib/types/widgets/transition-type.d.ts +13 -0
  180. package/lib/types/widgets/view-stack-page.d.ts +10 -0
  181. package/lib/types/widgets/view-switcher-base.d.ts +10 -0
  182. package/lib/types/widgets/widget-layout.d.ts +23 -0
  183. package/lib/types/widgets/window-base.d.ts +41 -0
  184. package/lib/types/widgets/window-state.d.ts +37 -0
  185. package/lib/types/window-roots.spec.d.ts +1 -0
  186. package/lib/types/window-state.spec.d.ts +2 -0
  187. package/package.json +13 -9
  188. package/src/theme/adwaita.css +273 -40
@@ -17,6 +17,16 @@ declare const AdwPreferencesGroup_base: (abstract new (...args: any[]) => {
17
17
  set marginStart(value: number | string);
18
18
  get marginEnd(): number;
19
19
  set marginEnd(value: number | string);
20
+ get visible(): boolean;
21
+ set visible(value: boolean | string);
22
+ get sensitive(): boolean;
23
+ set sensitive(value: boolean | string);
24
+ get name(): string;
25
+ set name(value: string | null);
26
+ get widthRequest(): number;
27
+ set widthRequest(value: number | string);
28
+ get heightRequest(): number;
29
+ set heightRequest(value: number | string);
20
30
  _emit(eventName: string): void;
21
31
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
32
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -17,6 +17,16 @@ declare const AdwPreferencesPage_base: (abstract new (...args: any[]) => {
17
17
  set marginStart(value: number | string);
18
18
  get marginEnd(): number;
19
19
  set marginEnd(value: number | string);
20
+ get visible(): boolean;
21
+ set visible(value: boolean | string);
22
+ get sensitive(): boolean;
23
+ set sensitive(value: boolean | string);
24
+ get name(): string;
25
+ set name(value: string | null);
26
+ get widthRequest(): number;
27
+ set widthRequest(value: number | string);
28
+ get heightRequest(): number;
29
+ set heightRequest(value: number | string);
20
30
  _emit(eventName: string): void;
21
31
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
32
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -15,6 +15,16 @@ declare const AdwShortcutLabel_base: (abstract new (...args: any[]) => {
15
15
  set marginStart(value: number | string);
16
16
  get marginEnd(): number;
17
17
  set marginEnd(value: number | string);
18
+ get visible(): boolean;
19
+ set visible(value: boolean | string);
20
+ get sensitive(): boolean;
21
+ set sensitive(value: boolean | string);
22
+ get name(): string;
23
+ set name(value: string | null);
24
+ get widthRequest(): number;
25
+ set widthRequest(value: number | string);
26
+ get heightRequest(): number;
27
+ set heightRequest(value: number | string);
18
28
  _emit(eventName: string): void;
19
29
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
20
30
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -41,6 +41,16 @@ declare const AdwSidebar_base: (abstract new (...args: any[]) => {
41
41
  set marginStart(value: number | string);
42
42
  get marginEnd(): number;
43
43
  set marginEnd(value: number | string);
44
+ get visible(): boolean;
45
+ set visible(value: boolean | string);
46
+ get sensitive(): boolean;
47
+ set sensitive(value: boolean | string);
48
+ get name(): string;
49
+ set name(value: string | null);
50
+ get widthRequest(): number;
51
+ set widthRequest(value: number | string);
52
+ get heightRequest(): number;
53
+ set heightRequest(value: number | string);
44
54
  _emit(eventName: string): void;
45
55
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
46
56
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -23,6 +23,16 @@ declare const AdwSliderRow_base: (abstract new (...args: any[]) => {
23
23
  set marginStart(value: number | string);
24
24
  get marginEnd(): number;
25
25
  set marginEnd(value: number | string);
26
+ get visible(): boolean;
27
+ set visible(value: boolean | string);
28
+ get sensitive(): boolean;
29
+ set sensitive(value: boolean | string);
30
+ get name(): string;
31
+ set name(value: string | null);
32
+ get widthRequest(): number;
33
+ set widthRequest(value: number | string);
34
+ get heightRequest(): number;
35
+ set heightRequest(value: number | string);
26
36
  _emit(eventName: string): void;
27
37
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
28
38
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -17,6 +17,16 @@ declare const AdwSpinner_base: (abstract new (...args: any[]) => {
17
17
  set marginStart(value: number | string);
18
18
  get marginEnd(): number;
19
19
  set marginEnd(value: number | string);
20
+ get visible(): boolean;
21
+ set visible(value: boolean | string);
22
+ get sensitive(): boolean;
23
+ set sensitive(value: boolean | string);
24
+ get name(): string;
25
+ set name(value: string | null);
26
+ get widthRequest(): number;
27
+ set widthRequest(value: number | string);
28
+ get heightRequest(): number;
29
+ set heightRequest(value: number | string);
20
30
  _emit(eventName: string): void;
21
31
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
32
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -36,6 +36,16 @@ declare const AdwSplitButton_base: (abstract new (...args: any[]) => {
36
36
  set marginStart(value: number | string);
37
37
  get marginEnd(): number;
38
38
  set marginEnd(value: number | string);
39
+ get visible(): boolean;
40
+ set visible(value: boolean | string);
41
+ get sensitive(): boolean;
42
+ set sensitive(value: boolean | string);
43
+ get name(): string;
44
+ set name(value: string | null);
45
+ get widthRequest(): number;
46
+ set widthRequest(value: number | string);
47
+ get heightRequest(): number;
48
+ set heightRequest(value: number | string);
39
49
  _emit(eventName: string): void;
40
50
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
41
51
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -17,6 +17,16 @@ declare const AdwStatusPage_base: (abstract new (...args: any[]) => {
17
17
  set marginStart(value: number | string);
18
18
  get marginEnd(): number;
19
19
  set marginEnd(value: number | string);
20
+ get visible(): boolean;
21
+ set visible(value: boolean | string);
22
+ get sensitive(): boolean;
23
+ set sensitive(value: boolean | string);
24
+ get name(): string;
25
+ set name(value: string | null);
26
+ get widthRequest(): number;
27
+ set widthRequest(value: number | string);
28
+ get heightRequest(): number;
29
+ set heightRequest(value: number | string);
20
30
  _emit(eventName: string): void;
21
31
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
32
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -38,6 +38,16 @@ declare const AdwTabView_base: (abstract new (...args: any[]) => {
38
38
  set marginStart(value: number | string);
39
39
  get marginEnd(): number;
40
40
  set marginEnd(value: number | string);
41
+ get visible(): boolean;
42
+ set visible(value: boolean | string);
43
+ get sensitive(): boolean;
44
+ set sensitive(value: boolean | string);
45
+ get name(): string;
46
+ set name(value: string | null);
47
+ get widthRequest(): number;
48
+ set widthRequest(value: number | string);
49
+ get heightRequest(): number;
50
+ set heightRequest(value: number | string);
41
51
  _emit(eventName: string): void;
42
52
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
43
53
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -22,6 +22,16 @@ declare const AdwToastOverlay_base: (abstract new (...args: any[]) => {
22
22
  set marginStart(value: number | string);
23
23
  get marginEnd(): number;
24
24
  set marginEnd(value: number | string);
25
+ get visible(): boolean;
26
+ set visible(value: boolean | string);
27
+ get sensitive(): boolean;
28
+ set sensitive(value: boolean | string);
29
+ get name(): string;
30
+ set name(value: string | null);
31
+ get widthRequest(): number;
32
+ set widthRequest(value: number | string);
33
+ get heightRequest(): number;
34
+ set heightRequest(value: number | string);
25
35
  _emit(eventName: string): void;
26
36
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
27
37
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -59,6 +69,10 @@ export declare class AdwToastOverlay extends AdwToastOverlay_base {
59
69
  dismiss(): void;
60
70
  /** Mount `toast` as the visible strip — the NS render half of the queue's `onShow`. */
61
71
  private _renderStrip;
62
- /** Whether a toast is currently shown. */
63
- get visible(): boolean;
72
+ /**
73
+ * Whether a toast is currently shown. Not `visible`: that is `GtkWidget:visible`, every
74
+ * widget's own show/hide switch (`widget-layout.ts`), and a read-only getter here would
75
+ * have taken its setter away from this class.
76
+ */
77
+ get toastShowing(): boolean;
64
78
  }
@@ -36,6 +36,16 @@ declare const AdwToggleGroup_base: (abstract new (...args: any[]) => {
36
36
  set marginStart(value: number | string);
37
37
  get marginEnd(): number;
38
38
  set marginEnd(value: number | string);
39
+ get visible(): boolean;
40
+ set visible(value: boolean | string);
41
+ get sensitive(): boolean;
42
+ set sensitive(value: boolean | string);
43
+ get name(): string;
44
+ set name(value: string | null);
45
+ get widthRequest(): number;
46
+ set widthRequest(value: number | string);
47
+ get heightRequest(): number;
48
+ set heightRequest(value: number | string);
39
49
  _emit(eventName: string): void;
40
50
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
41
51
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -15,6 +15,16 @@ declare const AdwToggle_base: (abstract new (...args: any[]) => {
15
15
  set marginStart(value: number | string);
16
16
  get marginEnd(): number;
17
17
  set marginEnd(value: number | string);
18
+ get visible(): boolean;
19
+ set visible(value: boolean | string);
20
+ get sensitive(): boolean;
21
+ set sensitive(value: boolean | string);
22
+ get name(): string;
23
+ set name(value: string | null);
24
+ get widthRequest(): number;
25
+ set widthRequest(value: number | string);
26
+ get heightRequest(): number;
27
+ set heightRequest(value: number | string);
18
28
  _emit(eventName: string): void;
19
29
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
20
30
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -1,6 +1,7 @@
1
1
  import type { View } from '@nativescript/core';
2
2
  import { GridLayout, StackLayout } from '@nativescript/core';
3
3
  import { type AdwToolbarStyle } from './chrome.js';
4
+ import { type SystemBarEdges } from './system-bars.js';
4
5
  import { type ConstructProps } from './construct-props.js';
5
6
  declare const AdwToolbarView_base: (abstract new (...args: any[]) => {
6
7
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => void): number;
@@ -17,6 +18,16 @@ declare const AdwToolbarView_base: (abstract new (...args: any[]) => {
17
18
  set marginStart(value: number | string);
18
19
  get marginEnd(): number;
19
20
  set marginEnd(value: number | string);
21
+ get visible(): boolean;
22
+ set visible(value: boolean | string);
23
+ get sensitive(): boolean;
24
+ set sensitive(value: boolean | string);
25
+ get name(): string;
26
+ set name(value: string | null);
27
+ get widthRequest(): number;
28
+ set widthRequest(value: number | string);
29
+ get heightRequest(): number;
30
+ set heightRequest(value: number | string);
20
31
  _emit(eventName: string): void;
21
32
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
33
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -40,6 +51,10 @@ export declare class AdwToolbarView extends AdwToolbarView_base {
40
51
  private _topBarCount;
41
52
  private _bottomBarCount;
42
53
  private _detachInsets;
54
+ private _detachBars;
55
+ private _detachConfig;
56
+ /** Per-view override of which edges pay; `null` follows `configureSystemBars`. */
57
+ private _systemInsets;
43
58
  constructor(props?: ConstructProps<AdwToolbarView>);
44
59
  /** Append a widget (e.g. an {@link AdwHeaderBar}) to the top-bar slot — `adw_toolbar_view_add_top_bar`. */
45
60
  add_top_bar(view: View): void;
@@ -71,6 +86,12 @@ export declare class AdwToolbarView extends AdwToolbarView_base {
71
86
  /** The bottom-bar slot container. */
72
87
  get bottomBar(): StackLayout;
73
88
  /** `Adw.ToolbarView:top-bar-style` — `flat` (default), `raised` or `raised-border`. */
89
+ /**
90
+ * Which edges pay for their system bar with padding. `true` / `false` for both, or
91
+ * `{ top, bottom }`; `null` (the default) follows `configureSystemBars({ insets })`.
92
+ */
93
+ get systemInsets(): boolean | Partial<SystemBarEdges> | null;
94
+ set systemInsets(value: boolean | Partial<SystemBarEdges> | string | null);
74
95
  get topBarStyle(): AdwToolbarStyle;
75
96
  set topBarStyle(value: AdwToolbarStyle);
76
97
  /** `Adw.ToolbarView:bottom-bar-style` — `flat` (default), `raised` or `raised-border`. */
@@ -28,6 +28,16 @@ declare const AdwViewStack_base: (abstract new (...args: any[]) => {
28
28
  set marginStart(value: number | string);
29
29
  get marginEnd(): number;
30
30
  set marginEnd(value: number | string);
31
+ get visible(): boolean;
32
+ set visible(value: boolean | string);
33
+ get sensitive(): boolean;
34
+ set sensitive(value: boolean | string);
35
+ get name(): string;
36
+ set name(value: string | null);
37
+ get widthRequest(): number;
38
+ set widthRequest(value: number | string);
39
+ get heightRequest(): number;
40
+ set heightRequest(value: number | string);
31
41
  _emit(eventName: string): void;
32
42
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
33
43
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -44,6 +54,13 @@ export declare class AdwViewStack extends AdwViewStack_base {
44
54
  */
45
55
  static readonly builderSlots: readonly string[];
46
56
  private readonly _state;
57
+ /**
58
+ * The SVG-source icons pages were added with, by content view. The headless core
59
+ * normalises an icon to a GTK NAME and turns anything that is not one token into
60
+ * `''` — an SVG document included — so a switcher reading `page.icon` drew
61
+ * `image-missing` for every page whose icon was handed in as source.
62
+ */
63
+ private readonly _sourceIcons;
47
64
  constructor(props?: ConstructProps<AdwViewStack>);
48
65
  /**
49
66
  * Register a page. It becomes visible when nothing is selected yet — and,
@@ -62,6 +79,12 @@ export declare class AdwViewStack extends AdwViewStack_base {
62
79
  * beside the pages, shown whatever the selection said.
63
80
  */
64
81
  _addChildFromBuilder(_name: string, view: View | AdwViewStackPage): void;
82
+ private _rememberSourceIcon;
83
+ /**
84
+ * The icon each page carries as a switcher button shows it, in page order: the SVG
85
+ * source it was added with, else the normalised name (`''` for none).
86
+ */
87
+ pageIcons(): string[];
65
88
  /** Convenience alias matching `Adw.ViewStack.add_titled`. */
66
89
  add_titled(content: View, name: string, title: string): AdwViewStackPageInfo;
67
90
  /**
@@ -17,6 +17,16 @@ declare const AdwViewSwitcherBar_base: (abstract new (...args: any[]) => {
17
17
  set marginStart(value: number | string);
18
18
  get marginEnd(): number;
19
19
  set marginEnd(value: number | string);
20
+ get visible(): boolean;
21
+ set visible(value: boolean | string);
22
+ get sensitive(): boolean;
23
+ set sensitive(value: boolean | string);
24
+ get name(): string;
25
+ set name(value: string | null);
26
+ get widthRequest(): number;
27
+ set widthRequest(value: number | string);
28
+ get heightRequest(): number;
29
+ set heightRequest(value: number | string);
20
30
  _emit(eventName: string): void;
21
31
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
32
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -19,6 +19,16 @@ declare const AdwWindowTitle_base: (abstract new (...args: any[]) => {
19
19
  set marginStart(value: number | string);
20
20
  get marginEnd(): number;
21
21
  set marginEnd(value: number | string);
22
+ get visible(): boolean;
23
+ set visible(value: boolean | string);
24
+ get sensitive(): boolean;
25
+ set sensitive(value: boolean | string);
26
+ get name(): string;
27
+ set name(value: string | null);
28
+ get widthRequest(): number;
29
+ set widthRequest(value: number | string);
30
+ get heightRequest(): number;
31
+ set heightRequest(value: number | string);
22
32
  _emit(eventName: string): void;
23
33
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
24
34
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -0,0 +1,5 @@
1
+ import { type ConstructProps } from './construct-props.js';
2
+ import { AdwWindowBase } from './window-base.js';
3
+ export declare class AdwWindow extends AdwWindowBase {
4
+ constructor(props?: ConstructProps<AdwWindow>);
5
+ }
@@ -18,6 +18,16 @@ declare const AdwWrapBox_base: (abstract new (...args: any[]) => {
18
18
  set marginStart(value: number | string);
19
19
  get marginEnd(): number;
20
20
  set marginEnd(value: number | string);
21
+ get visible(): boolean;
22
+ set visible(value: boolean | string);
23
+ get sensitive(): boolean;
24
+ set sensitive(value: boolean | string);
25
+ get name(): string;
26
+ set name(value: string | null);
27
+ get widthRequest(): number;
28
+ set widthRequest(value: number | string);
29
+ get heightRequest(): number;
30
+ set heightRequest(value: number | string);
21
31
  _emit(eventName: string): void;
22
32
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
23
33
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -3,14 +3,28 @@ export { DEFAULT_BOX_SPACING, normalizeBoxSpacing };
3
3
  export type { BoxOrientation };
4
4
  /** Whether writing `next` over `current` is a change the box must push to its children. */
5
5
  export declare function boxSpacingChanges(current: number, next: unknown): boolean;
6
+ /** One track of the box's main axis: how the `GridLayout` is told to size it. */
7
+ export interface BoxTrack {
8
+ unit: 'auto' | 'star' | 'pixel';
9
+ value: number;
10
+ }
6
11
  /**
7
- * The margin shorthand that gives child `index` its share of the box's gap.
12
+ * The tracks along a box's main axis, for children whose expand flags are `expands`.
8
13
  *
9
- * `top right bottom left`, NativeScript's own order. The first child gets none: with N
10
- * children there are N−1 gaps, and putting the gap on the LEADING edge of every child but
11
- * the first is the only distribution that leaves the box's own bounds untouched.
14
+ * Child `i` lives in track `2 * i` ({@link boxChildTrack}) and a `pixel` gap track sits
15
+ * between every two children, so N children have N−1 gaps and the box's own bounds are
16
+ * untouched. A child that expands — or every child, when `homogeneous` — gets a `*` track and
17
+ * the spare space is shared between them equally, which is `gtk_box_distribute_extra_space`'s
18
+ * rule for equal weights; every other child is `auto`, its natural size.
19
+ *
20
+ * THE GAP IS A TRACK, NOT A MARGIN. This was the leading-edge margin of every child but the
21
+ * first, written with `view.set('margin', …)` — which REPLACED the child's own margin on all
22
+ * four edges, so a `margin-top: 12` authored on a child of a box vanished the moment the box
23
+ * adopted it. A track leaves the child's margins alone.
12
24
  */
13
- export declare function boxChildMargin(index: number, spacing: unknown, orientation: BoxOrientation): string;
25
+ export declare function boxTrackPlan(expands: readonly boolean[], spacing: unknown, homogeneous: boolean): BoxTrack[];
26
+ /** The track child `index` lives in — the even ones; the odd ones are the gaps. */
27
+ export declare function boxChildTrack(index: number): number;
14
28
  /**
15
29
  * Where the child list ends up after an `insert_child_after` / `reorder_child_after`, or
16
30
  * `null` where C would have hit a `g_return_if_fail`.
@@ -1,7 +1,13 @@
1
1
  import type { View } from '@nativescript/core';
2
- import type { AdwBreakpoint } from '@gjsify/adwaita-core';
2
+ import type { AdwBreakpoint, BreakpointSize } from '@gjsify/adwaita-core';
3
3
  export { AdwBreakpoint, evaluateBreakpointCondition, parseBreakpointCondition } from '@gjsify/adwaita-core';
4
4
  export type { AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from '@gjsify/adwaita-core';
5
+ /**
6
+ * The SIZE SOURCE both shapes share: the view's `layoutChanged` event reports its post-layout DIP
7
+ * size to `onSize`, with a `loaded` seed and an immediate read if the view is already laid out.
8
+ * Returns a dispose function that detaches the listeners.
9
+ */
10
+ export declare function observeViewSize(view: View, onSize: (size: BreakpointSize) => void): () => void;
5
11
  /**
6
12
  * Bind breakpoints to a view so they re-evaluate on every layout pass (the NS
7
13
  * stand-in for Adwaita's window-size signal): the view's `layoutChanged` event
@@ -16,6 +16,16 @@ declare const AdwCarouselIndicatorBase_base: (abstract new (...args: any[]) => {
16
16
  set marginStart(value: number | string);
17
17
  get marginEnd(): number;
18
18
  set marginEnd(value: number | string);
19
+ get visible(): boolean;
20
+ set visible(value: boolean | string);
21
+ get sensitive(): boolean;
22
+ set sensitive(value: boolean | string);
23
+ get name(): string;
24
+ set name(value: string | null);
25
+ get widthRequest(): number;
26
+ set widthRequest(value: number | string);
27
+ get heightRequest(): number;
28
+ set heightRequest(value: number | string);
19
29
  _emit(eventName: string): void;
20
30
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
21
31
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -0,0 +1,34 @@
1
+ /** Where one child sits: the four `GtkGridLayoutChild` properties. */
2
+ export interface GridPlacement {
3
+ column: number;
4
+ row: number;
5
+ columnSpan: number;
6
+ rowSpan: number;
7
+ }
8
+ /**
9
+ * A `row-spacing` / `column-spacing`: an integer in `0 … 65535`, or throw. The setter parses
10
+ * with `xmlNumber` (an attribute is always a string) and hands the result here with what was
11
+ * written; a blank attribute keeps what was there.
12
+ */
13
+ export declare function gridSpacing(parsed: number, written: unknown, current: number, property: string): number;
14
+ /**
15
+ * How many columns and rows the placements need — one past the furthest edge any child
16
+ * reaches, so a child at `column 3` makes four columns even when 0 … 2 are empty.
17
+ */
18
+ export declare function gridTrackCounts(placements: readonly GridPlacement[]): {
19
+ columns: number;
20
+ rows: number;
21
+ };
22
+ /**
23
+ * The gap a child at `placement` carries on its LEADING edges: the column gap unless it sits
24
+ * in the first column, the row gap unless it sits in the first row.
25
+ */
26
+ export declare function gridGap(placement: Pick<GridPlacement, 'column' | 'row'>, columnSpacing: number, rowSpacing: number): {
27
+ left: number;
28
+ top: number;
29
+ };
30
+ /** The child, if any, whose cells include `(column, row)` — `gtk_grid_get_child_at`. */
31
+ export declare function gridChildAt<Child>(children: readonly {
32
+ child: Child;
33
+ placement: GridPlacement;
34
+ }[], column: number, row: number): Child | null;
@@ -16,6 +16,16 @@ declare const GtkActionBar_base: (abstract new (...args: any[]) => {
16
16
  set marginStart(value: number | string);
17
17
  get marginEnd(): number;
18
18
  set marginEnd(value: number | string);
19
+ get visible(): boolean;
20
+ set visible(value: boolean | string);
21
+ get sensitive(): boolean;
22
+ set sensitive(value: boolean | string);
23
+ get name(): string;
24
+ set name(value: string | null);
25
+ get widthRequest(): number;
26
+ set widthRequest(value: number | string);
27
+ get heightRequest(): number;
28
+ set heightRequest(value: number | string);
19
29
  _emit(eventName: string): void;
20
30
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
21
31
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -1,33 +1,14 @@
1
- import { StackLayout, type View } from '@nativescript/core';
2
- import { DEFAULT_BOX_SPACING } from './box-layout.js';
1
+ import { type View } from '@nativescript/core';
2
+ import { DEFAULT_BOX_SPACING, type BoxOrientation } from './box-layout.js';
3
3
  import { type ConstructProps } from './construct-props.js';
4
+ import { AdwStyledLayoutBase } from './styled-layout-base.js';
4
5
  export { DEFAULT_BOX_SPACING };
5
- declare const GtkBox_base: (abstract new (...args: any[]) => {
6
- connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => void): number;
7
- disconnect(handlerId: number): void;
8
- get halign(): string;
9
- set halign(value: string | number);
10
- get valign(): string;
11
- set valign(value: string | number);
12
- get hexpand(): boolean;
13
- set hexpand(value: boolean | string);
14
- get vexpand(): boolean;
15
- set vexpand(value: boolean | string);
16
- get marginStart(): number;
17
- set marginStart(value: number | string);
18
- get marginEnd(): number;
19
- set marginEnd(value: number | string);
20
- _emit(eventName: string): void;
21
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
23
- notify<T extends import("@nativescript/core").EventData>(data: T): void;
24
- notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
25
- set(name: string, value: unknown): void;
26
- get(name: string): unknown;
27
- }) & typeof StackLayout;
28
- export declare class GtkBox extends GtkBox_base {
6
+ export declare class GtkBox extends AdwStyledLayoutBase {
29
7
  private _spacing;
30
- private _styleClasses;
8
+ private _orientation;
9
+ private _homogeneous;
10
+ private _trackKey;
11
+ private readonly _followers;
31
12
  constructor(props?: ConstructProps<GtkBox>);
32
13
  /** Append a child — `gtk_box_append`. */
33
14
  append(view: View): void;
@@ -37,12 +18,14 @@ export declare class GtkBox extends GtkBox_base {
37
18
  remove(view: View): void;
38
19
  /**
39
20
  * Every path a child can enter by — `append()`, a direct `addChild()`, and XML
40
- * inflation through `_addChildFromBuilder` — ends here, which is why the spacing is
41
- * applied here and not in `append()`. `AdwWrapBox` records the incident that rule
42
- * comes from: applied in `append()` only, a child declared in markup got no spacing
43
- * at all.
21
+ * inflation through `_addChildFromBuilder` — ends in one of these three, which is why
22
+ * the tracks are planned here and not in `append()`. `AdwWrapBox` records the incident
23
+ * that rule comes from: applied in `append()` only, a child declared in markup got no
24
+ * spacing at all.
44
25
  */
45
26
  addChild(view: View): void;
27
+ insertChild(child: View, atIndex: number): void;
28
+ removeChild(view: View): void;
46
29
  /**
47
30
  * `gtk_box_insert_child_after`.
48
31
  *
@@ -56,32 +39,24 @@ export declare class GtkBox extends GtkBox_base {
56
39
  /** `Gtk.Box:spacing` — the gap between children, in DIPs. Defaults to 0, as in C. */
57
40
  get spacing(): number;
58
41
  set spacing(value: number | string);
59
- /**
60
- * `GtkWidget:css-classes`, spelled `styleClasses` — the platform owns `cssClasses` as a
61
- * live `Set`, and taking that name is fatal inside the widget's own constructor
62
- * (`style-classes.ts`). From XML it is a space-separated list, which is what an
63
- * attribute can carry: `<gtk:Box styleClasses="card" />`.
64
- */
65
- get styleClasses(): string[];
66
- set styleClasses(value: string | null | undefined);
67
- /** `gtk_widget_add_css_class`. A class the box already carries is a no-op. */
68
- add_css_class(name: string): void;
69
- /** `gtk_widget_remove_css_class`. A class it does not carry is a no-op. */
70
- remove_css_class(name: string): void;
71
- /** `gtk_widget_has_css_class`. */
72
- has_css_class(name: string): boolean;
73
- /** `gtk_widget_get_css_classes` — the list, without the widget's own CSS name. */
74
- get_css_classes(): string[];
75
- /** `gtk_widget_set_css_classes` — REPLACES the list, as in C. */
76
- set_css_classes(names: readonly string[]): void;
77
- private _setClasses;
42
+ /** `Gtk.Orientable:orientation` — `horizontal` (the default) or `vertical`. */
43
+ get orientation(): BoxOrientation;
44
+ set orientation(value: BoxOrientation);
45
+ /** `Gtk.Box:homogeneous` — every child the same share of the axis (`*` tracks). */
46
+ get homogeneous(): boolean;
47
+ set homogeneous(value: boolean | string);
78
48
  private _childViews;
79
49
  private _applyOrder;
50
+ /** Re-plan when a child's `hexpand` / `vexpand` changes after it was added. */
51
+ private _follow;
52
+ private _unfollow;
80
53
  /**
81
- * Give every child its share of the gap.
54
+ * Give every child its track and the box the track list that matches.
82
55
  *
83
56
  * The WHOLE set, not just the newcomer: adding a second child changes the FIRST one's
84
- * answer too when the box is re-ordered, and a removal shifts every index after it.
57
+ * answer too when the box is re-ordered, and a removal shifts every index after it. The
58
+ * track list is rebuilt only when it differs, because re-adding every `ItemSpec` makes
59
+ * the platform re-measure.
85
60
  */
86
61
  private _applyChildren;
87
62
  }