@gjsify/adwaita-nativescript 0.64.1 → 0.64.2-next.252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/index.js +1 -1
- package/lib/esm/namespace/adw.js +1 -1
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/widgets/adw-alert-dialog.js +1 -1
- package/lib/esm/widgets/adw-application-window.js +1 -1
- package/lib/esm/widgets/adw-toast-overlay.js +1 -1
- package/lib/esm/widgets/application.js +1 -1
- package/lib/esm/widgets/construct-props.js +1 -1
- package/lib/esm/widgets/gtk-window.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/namespace/adw.d.ts +1 -1
- package/lib/types/namespace/gtk.d.ts +1 -0
- package/lib/types/widgets/adw-about-dialog.d.ts +2 -0
- package/lib/types/widgets/adw-action-row.d.ts +2 -0
- package/lib/types/widgets/adw-alert-dialog.d.ts +29 -12
- package/lib/types/widgets/adw-application-window.d.ts +0 -3
- package/lib/types/widgets/adw-avatar.d.ts +2 -0
- package/lib/types/widgets/adw-banner.d.ts +2 -0
- package/lib/types/widgets/adw-bottom-sheet.d.ts +2 -0
- package/lib/types/widgets/adw-button-content.d.ts +2 -0
- package/lib/types/widgets/adw-carousel.d.ts +2 -0
- package/lib/types/widgets/adw-clamp.d.ts +2 -0
- package/lib/types/widgets/adw-data-grid.d.ts +2 -0
- package/lib/types/widgets/adw-header-bar.d.ts +2 -0
- package/lib/types/widgets/adw-image-button.d.ts +2 -0
- package/lib/types/widgets/adw-navigation-page.d.ts +2 -0
- package/lib/types/widgets/adw-navigation-view.d.ts +2 -0
- package/lib/types/widgets/adw-preferences-dialog.d.ts +2 -0
- package/lib/types/widgets/adw-preferences-group.d.ts +2 -0
- package/lib/types/widgets/adw-preferences-page.d.ts +2 -0
- package/lib/types/widgets/adw-shortcut-label.d.ts +2 -0
- package/lib/types/widgets/adw-sidebar.d.ts +2 -0
- package/lib/types/widgets/adw-slider-row.d.ts +2 -0
- package/lib/types/widgets/adw-spinner.d.ts +2 -0
- package/lib/types/widgets/adw-split-button.d.ts +2 -0
- package/lib/types/widgets/adw-status-page.d.ts +2 -0
- package/lib/types/widgets/adw-tab-view.d.ts +2 -0
- package/lib/types/widgets/adw-toast-overlay.d.ts +13 -16
- package/lib/types/widgets/adw-toggle-group.d.ts +2 -0
- package/lib/types/widgets/adw-toggle.d.ts +2 -0
- package/lib/types/widgets/adw-toolbar-view.d.ts +2 -0
- package/lib/types/widgets/adw-view-stack.d.ts +2 -0
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +2 -0
- package/lib/types/widgets/adw-window-title.d.ts +2 -0
- package/lib/types/widgets/adw-wrap-box.d.ts +2 -0
- package/lib/types/widgets/application.d.ts +2 -1
- package/lib/types/widgets/carousel-indicator-base.d.ts +2 -0
- package/lib/types/widgets/construct-props.d.ts +11 -2
- package/lib/types/widgets/gtk-action-bar.d.ts +2 -0
- package/lib/types/widgets/gtk-button.d.ts +2 -0
- package/lib/types/widgets/gtk-drop-down.d.ts +2 -0
- package/lib/types/widgets/gtk-entry.d.ts +2 -0
- package/lib/types/widgets/gtk-image.d.ts +2 -0
- package/lib/types/widgets/gtk-label.d.ts +2 -0
- package/lib/types/widgets/gtk-popover-menu.d.ts +2 -0
- package/lib/types/widgets/gtk-stack.d.ts +2 -0
- package/lib/types/widgets/gtk-text-view.d.ts +2 -0
- package/lib/types/widgets/gtk-window.d.ts +5 -0
- package/lib/types/widgets/index.d.ts +3 -3
- package/lib/types/widgets/signals.d.ts +2 -0
- package/lib/types/widgets/split-view-base.d.ts +2 -0
- package/lib/types/widgets/stack-page.d.ts +2 -0
- package/lib/types/widgets/styled-layout-base.d.ts +2 -0
- package/lib/types/widgets/view-stack-page.d.ts +2 -0
- package/lib/types/widgets/view-switcher-base.d.ts +2 -0
- package/lib/types/widgets/widget-layout.d.ts +4 -0
- package/package.json +14 -13
|
@@ -37,6 +37,8 @@ declare const AdwNavigationPage_base: (abstract new (...args: any[]) => {
|
|
|
37
37
|
set widthRequest(value: number | string);
|
|
38
38
|
get heightRequest(): number;
|
|
39
39
|
set heightRequest(value: number | string);
|
|
40
|
+
get_visible(): boolean;
|
|
41
|
+
set_visible(visible: boolean): void;
|
|
40
42
|
set_direction(direction: number): void;
|
|
41
43
|
get_direction(): number;
|
|
42
44
|
get_first_child(): object | null;
|
|
@@ -44,6 +44,8 @@ declare const AdwNavigationView_base: (abstract new (...args: any[]) => {
|
|
|
44
44
|
set widthRequest(value: number | string);
|
|
45
45
|
get heightRequest(): number;
|
|
46
46
|
set heightRequest(value: number | string);
|
|
47
|
+
get_visible(): boolean;
|
|
48
|
+
set_visible(visible: boolean): void;
|
|
47
49
|
set_direction(direction: number): void;
|
|
48
50
|
get_direction(): number;
|
|
49
51
|
get_first_child(): object | null;
|
|
@@ -35,6 +35,8 @@ declare const AdwPreferencesDialog_base: (abstract new (...args: any[]) => {
|
|
|
35
35
|
set widthRequest(value: number | string);
|
|
36
36
|
get heightRequest(): number;
|
|
37
37
|
set heightRequest(value: number | string);
|
|
38
|
+
get_visible(): boolean;
|
|
39
|
+
set_visible(visible: boolean): void;
|
|
38
40
|
set_direction(direction: number): void;
|
|
39
41
|
get_direction(): number;
|
|
40
42
|
get_first_child(): object | null;
|
|
@@ -32,6 +32,8 @@ declare const AdwPreferencesGroup_base: (abstract new (...args: any[]) => {
|
|
|
32
32
|
set widthRequest(value: number | string);
|
|
33
33
|
get heightRequest(): number;
|
|
34
34
|
set heightRequest(value: number | string);
|
|
35
|
+
get_visible(): boolean;
|
|
36
|
+
set_visible(visible: boolean): void;
|
|
35
37
|
set_direction(direction: number): void;
|
|
36
38
|
get_direction(): number;
|
|
37
39
|
get_first_child(): object | null;
|
|
@@ -32,6 +32,8 @@ declare const AdwPreferencesPage_base: (abstract new (...args: any[]) => {
|
|
|
32
32
|
set widthRequest(value: number | string);
|
|
33
33
|
get heightRequest(): number;
|
|
34
34
|
set heightRequest(value: number | string);
|
|
35
|
+
get_visible(): boolean;
|
|
36
|
+
set_visible(visible: boolean): void;
|
|
35
37
|
set_direction(direction: number): void;
|
|
36
38
|
get_direction(): number;
|
|
37
39
|
get_first_child(): object | null;
|
|
@@ -30,6 +30,8 @@ declare const AdwShortcutLabel_base: (abstract new (...args: any[]) => {
|
|
|
30
30
|
set widthRequest(value: number | string);
|
|
31
31
|
get heightRequest(): number;
|
|
32
32
|
set heightRequest(value: number | string);
|
|
33
|
+
get_visible(): boolean;
|
|
34
|
+
set_visible(visible: boolean): void;
|
|
33
35
|
set_direction(direction: number): void;
|
|
34
36
|
get_direction(): number;
|
|
35
37
|
get_first_child(): object | null;
|
|
@@ -56,6 +56,8 @@ declare const AdwSidebar_base: (abstract new (...args: any[]) => {
|
|
|
56
56
|
set widthRequest(value: number | string);
|
|
57
57
|
get heightRequest(): number;
|
|
58
58
|
set heightRequest(value: number | string);
|
|
59
|
+
get_visible(): boolean;
|
|
60
|
+
set_visible(visible: boolean): void;
|
|
59
61
|
set_direction(direction: number): void;
|
|
60
62
|
get_direction(): number;
|
|
61
63
|
get_first_child(): object | null;
|
|
@@ -38,6 +38,8 @@ declare const AdwSliderRow_base: (abstract new (...args: any[]) => {
|
|
|
38
38
|
set widthRequest(value: number | string);
|
|
39
39
|
get heightRequest(): number;
|
|
40
40
|
set heightRequest(value: number | string);
|
|
41
|
+
get_visible(): boolean;
|
|
42
|
+
set_visible(visible: boolean): void;
|
|
41
43
|
set_direction(direction: number): void;
|
|
42
44
|
get_direction(): number;
|
|
43
45
|
get_first_child(): object | null;
|
|
@@ -32,6 +32,8 @@ declare const AdwSpinner_base: (abstract new (...args: any[]) => {
|
|
|
32
32
|
set widthRequest(value: number | string);
|
|
33
33
|
get heightRequest(): number;
|
|
34
34
|
set heightRequest(value: number | string);
|
|
35
|
+
get_visible(): boolean;
|
|
36
|
+
set_visible(visible: boolean): void;
|
|
35
37
|
set_direction(direction: number): void;
|
|
36
38
|
get_direction(): number;
|
|
37
39
|
get_first_child(): object | null;
|
|
@@ -53,6 +53,8 @@ declare const AdwSplitButton_base: (abstract new (...args: any[]) => {
|
|
|
53
53
|
set widthRequest(value: number | string);
|
|
54
54
|
get heightRequest(): number;
|
|
55
55
|
set heightRequest(value: number | string);
|
|
56
|
+
get_visible(): boolean;
|
|
57
|
+
set_visible(visible: boolean): void;
|
|
56
58
|
set_direction(direction: number): void;
|
|
57
59
|
get_direction(): number;
|
|
58
60
|
get_first_child(): object | null;
|
|
@@ -32,6 +32,8 @@ declare const AdwStatusPage_base: (abstract new (...args: any[]) => {
|
|
|
32
32
|
set widthRequest(value: number | string);
|
|
33
33
|
get heightRequest(): number;
|
|
34
34
|
set heightRequest(value: number | string);
|
|
35
|
+
get_visible(): boolean;
|
|
36
|
+
set_visible(visible: boolean): void;
|
|
35
37
|
set_direction(direction: number): void;
|
|
36
38
|
get_direction(): number;
|
|
37
39
|
get_first_child(): object | null;
|
|
@@ -53,6 +53,8 @@ declare const AdwTabView_base: (abstract new (...args: any[]) => {
|
|
|
53
53
|
set widthRequest(value: number | string);
|
|
54
54
|
get heightRequest(): number;
|
|
55
55
|
set heightRequest(value: number | string);
|
|
56
|
+
get_visible(): boolean;
|
|
57
|
+
set_visible(visible: boolean): void;
|
|
56
58
|
set_direction(direction: number): void;
|
|
57
59
|
get_direction(): number;
|
|
58
60
|
get_first_child(): object | null;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { View } from '@nativescript/core';
|
|
2
|
-
import { Button, GridLayout, Label
|
|
3
|
-
import {
|
|
4
|
-
import type { AdwToastOptions } from '@gjsify/adwaita-core';
|
|
2
|
+
import { Button, GridLayout, Label } from '@nativescript/core';
|
|
3
|
+
import type { Toast } from '@gjsify/adwaita-core';
|
|
5
4
|
import { type ConstructProps } from './construct-props.js';
|
|
6
5
|
export { AdwToast, AdwToastQueue, DEFAULT_TOAST_TIMEOUT } from '@gjsify/adwaita-core';
|
|
7
6
|
export type { AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, } from '@gjsify/adwaita-core';
|
|
8
|
-
/** Event name emitted when a toast's action button is tapped. */
|
|
9
|
-
export declare const TOAST_BUTTON_CLICKED = "toastButtonClicked";
|
|
10
7
|
declare const AdwToastOverlay_base: (abstract new (...args: any[]) => {
|
|
11
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
8
|
+
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
12
9
|
disconnect(handlerId: number): void;
|
|
13
10
|
emit(eventName: string, ...args: unknown[]): void;
|
|
14
11
|
get_property(name: string): unknown;
|
|
@@ -37,6 +34,8 @@ declare const AdwToastOverlay_base: (abstract new (...args: any[]) => {
|
|
|
37
34
|
set widthRequest(value: number | string);
|
|
38
35
|
get heightRequest(): number;
|
|
39
36
|
set heightRequest(value: number | string);
|
|
37
|
+
get_visible(): boolean;
|
|
38
|
+
set_visible(visible: boolean): void;
|
|
40
39
|
set_direction(direction: number): void;
|
|
41
40
|
get_direction(): number;
|
|
42
41
|
get_first_child(): object | null;
|
|
@@ -49,9 +48,9 @@ declare const AdwToastOverlay_base: (abstract new (...args: any[]) => {
|
|
|
49
48
|
set focusable(value: boolean | string);
|
|
50
49
|
grab_focus(): boolean;
|
|
51
50
|
_emit(eventName: string): void;
|
|
52
|
-
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
53
|
-
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
54
|
-
notify<T extends EventData>(data: T): void;
|
|
51
|
+
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
52
|
+
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
53
|
+
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
55
54
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
56
55
|
set(name: string, value: unknown): void;
|
|
57
56
|
get(name: string): unknown;
|
|
@@ -65,7 +64,7 @@ export declare class AdwToastOverlay extends AdwToastOverlay_base {
|
|
|
65
64
|
protected readonly _toastLabel: Label;
|
|
66
65
|
protected readonly _toastButton: Button;
|
|
67
66
|
private _hasButton;
|
|
68
|
-
/** The headless
|
|
67
|
+
/** The headless queue of `adw-toast-overlay.c` (ADR 0004). */
|
|
69
68
|
private readonly _queue;
|
|
70
69
|
constructor(props?: ConstructProps<AdwToastOverlay>);
|
|
71
70
|
/** Set (or replace) the always-visible content layer (under the toast) — `adw_toast_overlay_set_child`. */
|
|
@@ -78,12 +77,10 @@ export declare class AdwToastOverlay extends AdwToastOverlay_base {
|
|
|
78
77
|
* bag instead of a second statement.
|
|
79
78
|
*/
|
|
80
79
|
set child(view: View | null);
|
|
81
|
-
/**
|
|
82
|
-
add_toast(toast:
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
/** Dismiss the current toast immediately (advances to the next queued one). */
|
|
86
|
-
dismiss(): void;
|
|
80
|
+
/** `adw_toast_overlay_add_toast`: show `toast` now, or queue it by its priority. */
|
|
81
|
+
add_toast(toast: Toast): void;
|
|
82
|
+
/** `adw_toast_overlay_dismiss_all`: dismiss every queued toast, then the visible one. */
|
|
83
|
+
dismiss_all(): void;
|
|
87
84
|
/** Mount `toast` as the visible strip — the NS render half of the queue's `onShow`. */
|
|
88
85
|
private _renderStrip;
|
|
89
86
|
/**
|
|
@@ -51,6 +51,8 @@ declare const AdwToggleGroup_base: (abstract new (...args: any[]) => {
|
|
|
51
51
|
set widthRequest(value: number | string);
|
|
52
52
|
get heightRequest(): number;
|
|
53
53
|
set heightRequest(value: number | string);
|
|
54
|
+
get_visible(): boolean;
|
|
55
|
+
set_visible(visible: boolean): void;
|
|
54
56
|
set_direction(direction: number): void;
|
|
55
57
|
get_direction(): number;
|
|
56
58
|
get_first_child(): object | null;
|
|
@@ -30,6 +30,8 @@ declare const AdwToggle_base: (abstract new (...args: any[]) => {
|
|
|
30
30
|
set widthRequest(value: number | string);
|
|
31
31
|
get heightRequest(): number;
|
|
32
32
|
set heightRequest(value: number | string);
|
|
33
|
+
get_visible(): boolean;
|
|
34
|
+
set_visible(visible: boolean): void;
|
|
33
35
|
set_direction(direction: number): void;
|
|
34
36
|
get_direction(): number;
|
|
35
37
|
get_first_child(): object | null;
|
|
@@ -33,6 +33,8 @@ declare const AdwToolbarView_base: (abstract new (...args: any[]) => {
|
|
|
33
33
|
set widthRequest(value: number | string);
|
|
34
34
|
get heightRequest(): number;
|
|
35
35
|
set heightRequest(value: number | string);
|
|
36
|
+
get_visible(): boolean;
|
|
37
|
+
set_visible(visible: boolean): void;
|
|
36
38
|
set_direction(direction: number): void;
|
|
37
39
|
get_direction(): number;
|
|
38
40
|
get_first_child(): object | null;
|
|
@@ -45,6 +45,8 @@ declare const AdwViewStack_base: (abstract new (...args: any[]) => {
|
|
|
45
45
|
set widthRequest(value: number | string);
|
|
46
46
|
get heightRequest(): number;
|
|
47
47
|
set heightRequest(value: number | string);
|
|
48
|
+
get_visible(): boolean;
|
|
49
|
+
set_visible(visible: boolean): void;
|
|
48
50
|
set_direction(direction: number): void;
|
|
49
51
|
get_direction(): number;
|
|
50
52
|
get_first_child(): object | null;
|
|
@@ -32,6 +32,8 @@ declare const AdwViewSwitcherBar_base: (abstract new (...args: any[]) => {
|
|
|
32
32
|
set widthRequest(value: number | string);
|
|
33
33
|
get heightRequest(): number;
|
|
34
34
|
set heightRequest(value: number | string);
|
|
35
|
+
get_visible(): boolean;
|
|
36
|
+
set_visible(visible: boolean): void;
|
|
35
37
|
set_direction(direction: number): void;
|
|
36
38
|
get_direction(): number;
|
|
37
39
|
get_first_child(): object | null;
|
|
@@ -34,6 +34,8 @@ declare const AdwWindowTitle_base: (abstract new (...args: any[]) => {
|
|
|
34
34
|
set widthRequest(value: number | string);
|
|
35
35
|
get heightRequest(): number;
|
|
36
36
|
set heightRequest(value: number | string);
|
|
37
|
+
get_visible(): boolean;
|
|
38
|
+
set_visible(visible: boolean): void;
|
|
37
39
|
set_direction(direction: number): void;
|
|
38
40
|
get_direction(): number;
|
|
39
41
|
get_first_child(): object | null;
|
|
@@ -33,6 +33,8 @@ declare const AdwWrapBox_base: (abstract new (...args: any[]) => {
|
|
|
33
33
|
set widthRequest(value: number | string);
|
|
34
34
|
get heightRequest(): number;
|
|
35
35
|
set heightRequest(value: number | string);
|
|
36
|
+
get_visible(): boolean;
|
|
37
|
+
set_visible(visible: boolean): void;
|
|
36
38
|
set_direction(direction: number): void;
|
|
37
39
|
get_direction(): number;
|
|
38
40
|
get_first_child(): object | null;
|
|
@@ -10,8 +10,9 @@ export declare class GtkApplication extends GtkApplication_base {
|
|
|
10
10
|
export declare class AdwApplication extends GtkApplication {
|
|
11
11
|
static readonly GTypeName: string;
|
|
12
12
|
}
|
|
13
|
+
export declare const NOTIFY_APPLICATION = "notify::application";
|
|
13
14
|
/**
|
|
14
|
-
* `Gtk.Window:application` and
|
|
15
|
+
* `Gtk.Window:application`, `get_application()` and `set_application()` on a window class.
|
|
15
16
|
* Setting the property is `add_window`, as on GTK; setting it to `null` is `remove_window`.
|
|
16
17
|
*/
|
|
17
18
|
export declare function defineWindowApplication(proto: object): void;
|
|
@@ -31,6 +31,8 @@ declare const AdwCarouselIndicatorBase_base: (abstract new (...args: any[]) => {
|
|
|
31
31
|
set widthRequest(value: number | string);
|
|
32
32
|
get heightRequest(): number;
|
|
33
33
|
set heightRequest(value: number | string);
|
|
34
|
+
get_visible(): boolean;
|
|
35
|
+
set_visible(visible: boolean): void;
|
|
34
36
|
set_direction(direction: number): void;
|
|
35
37
|
get_direction(): number;
|
|
36
38
|
get_first_child(): object | null;
|
|
@@ -20,9 +20,18 @@ import { type ShadowedName } from './shadowed-properties.js';
|
|
|
20
20
|
* back only through `Shadowed`, typed as the class's own `set_<p>` takes it:
|
|
21
21
|
* `ConstructProps<AdwSplitButton, { direction: number }>`. The applier routes it to that verb.
|
|
22
22
|
*/
|
|
23
|
-
export type ConstructProps<T, Shadowed extends object = object> = Partial<{
|
|
23
|
+
export type ConstructProps<T, Shadowed extends object = object> = Partial<WithSnakeCase<{
|
|
24
24
|
[K in keyof T as T[K] extends (...args: never[]) => unknown ? never : K extends ShadowedName | keyof Shadowed ? never : K]: K extends EnumProp ? T[K] | number : K extends ValueProp ? T[K] | ValueProps[K & ValueProp] : T[K];
|
|
25
|
-
} & Shadowed
|
|
25
|
+
} & Shadowed>>;
|
|
26
|
+
/** `closeResponse` → `close_response`, the spelling {@link camelProperty} undoes. */
|
|
27
|
+
export type SnakeCase<S extends string> = S extends `${infer Head}${infer Rest}` ? `${Head extends Lowercase<Head> ? Head : `_${Lowercase<Head>}`}${SnakeCase<Rest>}` : S;
|
|
28
|
+
/**
|
|
29
|
+
* Every key of `Props` again under its snake_case twin, with the same value type — what a
|
|
30
|
+
* `@girs` `ConstructorProps` declares, and what {@link applyConstructProps} takes at runtime.
|
|
31
|
+
*/
|
|
32
|
+
export type WithSnakeCase<Props> = Props & {
|
|
33
|
+
[K in keyof Props as K extends string ? SnakeCase<K> : K]: Props[K];
|
|
34
|
+
};
|
|
26
35
|
/**
|
|
27
36
|
* The two properties whose SETTER takes a portable VALUE the getter does not hand back, and
|
|
28
37
|
* what each one accepts.
|
|
@@ -31,6 +31,8 @@ declare const GtkActionBar_base: (abstract new (...args: any[]) => {
|
|
|
31
31
|
set widthRequest(value: number | string);
|
|
32
32
|
get heightRequest(): number;
|
|
33
33
|
set heightRequest(value: number | string);
|
|
34
|
+
get_visible(): boolean;
|
|
35
|
+
set_visible(visible: boolean): void;
|
|
34
36
|
set_direction(direction: number): void;
|
|
35
37
|
get_direction(): number;
|
|
36
38
|
get_first_child(): object | null;
|
|
@@ -36,6 +36,8 @@ declare const GtkButton_base: (abstract new (...args: any[]) => {
|
|
|
36
36
|
set widthRequest(value: number | string);
|
|
37
37
|
get heightRequest(): number;
|
|
38
38
|
set heightRequest(value: number | string);
|
|
39
|
+
get_visible(): boolean;
|
|
40
|
+
set_visible(visible: boolean): void;
|
|
39
41
|
set_direction(direction: number): void;
|
|
40
42
|
get_direction(): number;
|
|
41
43
|
get_first_child(): object | null;
|
|
@@ -45,6 +45,8 @@ declare const GtkDropDown_base: (abstract new (...args: any[]) => {
|
|
|
45
45
|
set widthRequest(value: number | string);
|
|
46
46
|
get heightRequest(): number;
|
|
47
47
|
set heightRequest(value: number | string);
|
|
48
|
+
get_visible(): boolean;
|
|
49
|
+
set_visible(visible: boolean): void;
|
|
48
50
|
set_direction(direction: number): void;
|
|
49
51
|
get_direction(): number;
|
|
50
52
|
get_first_child(): object | null;
|
|
@@ -43,6 +43,8 @@ declare const GtkEntry_base: (abstract new (...args: any[]) => {
|
|
|
43
43
|
set widthRequest(value: number | string);
|
|
44
44
|
get heightRequest(): number;
|
|
45
45
|
set heightRequest(value: number | string);
|
|
46
|
+
get_visible(): boolean;
|
|
47
|
+
set_visible(visible: boolean): void;
|
|
46
48
|
set_direction(direction: number): void;
|
|
47
49
|
get_direction(): number;
|
|
48
50
|
get_first_child(): object | null;
|
|
@@ -41,6 +41,8 @@ declare const GtkImage_base: (abstract new (...args: any[]) => {
|
|
|
41
41
|
set widthRequest(value: number | string);
|
|
42
42
|
get heightRequest(): number;
|
|
43
43
|
set heightRequest(value: number | string);
|
|
44
|
+
get_visible(): boolean;
|
|
45
|
+
set_visible(visible: boolean): void;
|
|
44
46
|
set_direction(direction: number): void;
|
|
45
47
|
get_direction(): number;
|
|
46
48
|
get_first_child(): object | null;
|
|
@@ -31,6 +31,8 @@ declare const GtkLabel_base: (abstract new (...args: any[]) => {
|
|
|
31
31
|
set widthRequest(value: number | string);
|
|
32
32
|
get heightRequest(): number;
|
|
33
33
|
set heightRequest(value: number | string);
|
|
34
|
+
get_visible(): boolean;
|
|
35
|
+
set_visible(visible: boolean): void;
|
|
34
36
|
set_direction(direction: number): void;
|
|
35
37
|
get_direction(): number;
|
|
36
38
|
get_first_child(): object | null;
|
|
@@ -34,6 +34,8 @@ declare const GtkPopoverMenu_base: (abstract new (...args: any[]) => {
|
|
|
34
34
|
set widthRequest(value: number | string);
|
|
35
35
|
get heightRequest(): number;
|
|
36
36
|
set heightRequest(value: number | string);
|
|
37
|
+
get_visible(): boolean;
|
|
38
|
+
set_visible(visible: boolean): void;
|
|
37
39
|
set_direction(direction: number): void;
|
|
38
40
|
get_direction(): number;
|
|
39
41
|
get_first_child(): object | null;
|
|
@@ -41,6 +41,8 @@ declare const GtkStack_base: (abstract new (...args: any[]) => {
|
|
|
41
41
|
set widthRequest(value: number | string);
|
|
42
42
|
get heightRequest(): number;
|
|
43
43
|
set heightRequest(value: number | string);
|
|
44
|
+
get_visible(): boolean;
|
|
45
|
+
set_visible(visible: boolean): void;
|
|
44
46
|
set_direction(direction: number): void;
|
|
45
47
|
get_direction(): number;
|
|
46
48
|
get_first_child(): object | null;
|
|
@@ -43,6 +43,8 @@ declare const GtkTextView_base: (abstract new (...args: any[]) => {
|
|
|
43
43
|
set widthRequest(value: number | string);
|
|
44
44
|
get heightRequest(): number;
|
|
45
45
|
set heightRequest(value: number | string);
|
|
46
|
+
get_visible(): boolean;
|
|
47
|
+
set_visible(visible: boolean): void;
|
|
46
48
|
set_direction(direction: number): void;
|
|
47
49
|
get_direction(): number;
|
|
48
50
|
get_first_child(): object | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EventData, View } from '@nativescript/core';
|
|
2
|
+
import { type GtkApplication } from './application.js';
|
|
2
3
|
import { type ConstructProps } from './construct-props.js';
|
|
3
4
|
import { AdwSingleChildBase } from './single-child-base.js';
|
|
4
5
|
export declare const NOTIFY_IS_ACTIVE = "notify::is-active";
|
|
@@ -14,6 +15,10 @@ export declare class GtkWindow extends AdwSingleChildBase {
|
|
|
14
15
|
private readonly _closeRequest;
|
|
15
16
|
private _unwatchForeground;
|
|
16
17
|
private _unwatchBack;
|
|
18
|
+
/** `Gtk.Window:application`: setting it is `add_window` (ADR 0098), set by `defineWindowApplication`. */
|
|
19
|
+
application: GtkApplication | null;
|
|
20
|
+
get_application: () => GtkApplication | null;
|
|
21
|
+
set_application: (application: GtkApplication | null) => void;
|
|
17
22
|
constructor(props?: ConstructProps<GtkWindow>);
|
|
18
23
|
onLoaded(): void;
|
|
19
24
|
onUnloaded(): void;
|
|
@@ -135,10 +135,10 @@ export { AdwSidebarItem, AdwSidebarSection } from '../values/sidebar.js';
|
|
|
135
135
|
export type { AdwSidebarItemProps, AdwSidebarSectionProps } from '../values/sidebar.js';
|
|
136
136
|
export { AdwBottomSheet, bottomSheetPanel, CLOSE_ATTEMPT, NOTIFY_OPEN, SHEET_CLOSE } from './adw-bottom-sheet.js';
|
|
137
137
|
export type { NotifyOpenEventData } from './adw-bottom-sheet.js';
|
|
138
|
-
export { AdwToast, AdwToastOverlay, AdwToastQueue, DEFAULT_TOAST_TIMEOUT
|
|
138
|
+
export { AdwToast, AdwToastOverlay, AdwToastQueue, DEFAULT_TOAST_TIMEOUT } from './adw-toast-overlay.js';
|
|
139
139
|
export type { AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, } from './adw-toast-overlay.js';
|
|
140
|
-
export { AdwAlertDialog, AdwAlertResponses
|
|
141
|
-
export type { AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions,
|
|
140
|
+
export { AdwAlertDialog, AdwAlertResponses } from './adw-alert-dialog.js';
|
|
141
|
+
export type { AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, } from './adw-alert-dialog.js';
|
|
142
142
|
export { AdwAboutDialog, CLOSED as ABOUT_CLOSED } from './adw-about-dialog.js';
|
|
143
143
|
export { AdwPreferencesDialog, CLOSED as PREFERENCES_CLOSED } from './adw-preferences-dialog.js';
|
|
144
144
|
export { SimpleAction, SimpleActionGroup, activateWidgetAction, findActionGroup, insertActionGroup, } from './actions.js';
|
|
@@ -67,6 +67,8 @@ export declare function withSignals<TBase extends ObservableConstructor>(Base: T
|
|
|
67
67
|
set widthRequest(value: number | string);
|
|
68
68
|
get heightRequest(): number;
|
|
69
69
|
set heightRequest(value: number | string);
|
|
70
|
+
get_visible(): boolean;
|
|
71
|
+
set_visible(visible: boolean): void;
|
|
70
72
|
set_direction(direction: number): void;
|
|
71
73
|
get_direction(): number;
|
|
72
74
|
get_first_child(): object | null;
|
|
@@ -40,6 +40,8 @@ declare const AdwSplitViewBase_base: (abstract new (...args: any[]) => {
|
|
|
40
40
|
set widthRequest(value: number | string);
|
|
41
41
|
get heightRequest(): number;
|
|
42
42
|
set heightRequest(value: number | string);
|
|
43
|
+
get_visible(): boolean;
|
|
44
|
+
set_visible(visible: boolean): void;
|
|
43
45
|
set_direction(direction: number): void;
|
|
44
46
|
get_direction(): number;
|
|
45
47
|
get_first_child(): object | null;
|
|
@@ -38,6 +38,8 @@ declare const GtkStackPage_base: (abstract new (...args: any[]) => {
|
|
|
38
38
|
set widthRequest(value: number | string);
|
|
39
39
|
get heightRequest(): number;
|
|
40
40
|
set heightRequest(value: number | string);
|
|
41
|
+
get_visible(): boolean;
|
|
42
|
+
set_visible(visible: boolean): void;
|
|
41
43
|
set_direction(direction: number): void;
|
|
42
44
|
get_direction(): number;
|
|
43
45
|
get_first_child(): object | null;
|
|
@@ -30,6 +30,8 @@ declare const AdwStyledLayoutBase_base: (abstract new (...args: any[]) => {
|
|
|
30
30
|
set widthRequest(value: number | string);
|
|
31
31
|
get heightRequest(): number;
|
|
32
32
|
set heightRequest(value: number | string);
|
|
33
|
+
get_visible(): boolean;
|
|
34
|
+
set_visible(visible: boolean): void;
|
|
33
35
|
set_direction(direction: number): void;
|
|
34
36
|
get_direction(): number;
|
|
35
37
|
get_first_child(): object | null;
|
|
@@ -38,6 +38,8 @@ declare const AdwViewStackPage_base: (abstract new (...args: any[]) => {
|
|
|
38
38
|
set widthRequest(value: number | string);
|
|
39
39
|
get heightRequest(): number;
|
|
40
40
|
set heightRequest(value: number | string);
|
|
41
|
+
get_visible(): boolean;
|
|
42
|
+
set_visible(visible: boolean): void;
|
|
41
43
|
set_direction(direction: number): void;
|
|
42
44
|
get_direction(): number;
|
|
43
45
|
get_first_child(): object | null;
|
|
@@ -42,6 +42,8 @@ declare const AdwViewSwitcherBase_base: (abstract new (...args: any[]) => {
|
|
|
42
42
|
set widthRequest(value: number | string);
|
|
43
43
|
get heightRequest(): number;
|
|
44
44
|
set heightRequest(value: number | string);
|
|
45
|
+
get_visible(): boolean;
|
|
46
|
+
set_visible(visible: boolean): void;
|
|
45
47
|
set_direction(direction: number): void;
|
|
46
48
|
get_direction(): number;
|
|
47
49
|
get_first_child(): object | null;
|
|
@@ -69,6 +69,10 @@ export declare abstract class GtkWidgetLayoutMembers {
|
|
|
69
69
|
set widthRequest(value: number | string);
|
|
70
70
|
get heightRequest(): number;
|
|
71
71
|
set heightRequest(value: number | string);
|
|
72
|
+
/** `gtk_widget_get_visible`: the `visible` property. */
|
|
73
|
+
get_visible(): boolean;
|
|
74
|
+
/** `gtk_widget_set_visible`: the `visible` property. */
|
|
75
|
+
set_visible(visible: boolean): void;
|
|
72
76
|
/** `gtk_widget_set_direction`: written to the CSS `direction` a view resolves its margins by; NONE clears it. */
|
|
73
77
|
set_direction(direction: number): void;
|
|
74
78
|
/** `gtk_widget_get_direction`: LTR until set. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-nativescript",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.2-next.252",
|
|
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": "
|
|
77
|
-
"@gjsify/adwaita-fonts": "
|
|
78
|
-
"@gjsify/adwaita-icons": "
|
|
79
|
-
"@gjsify/canvas2d-core": "
|
|
80
|
-
"@gjsify/native-platform": "
|
|
76
|
+
"@gjsify/adwaita-core": "0.64.2-next.252",
|
|
77
|
+
"@gjsify/adwaita-fonts": "0.64.2-next.252",
|
|
78
|
+
"@gjsify/adwaita-icons": "0.64.2-next.252",
|
|
79
|
+
"@gjsify/canvas2d-core": "0.64.2-next.252",
|
|
80
|
+
"@gjsify/native-platform": "0.64.2-next.252"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@nativescript/core": "*",
|
|
84
|
-
"@gjsify/app-settings": "
|
|
84
|
+
"@gjsify/app-settings": "0.64.2-next.252"
|
|
85
85
|
},
|
|
86
86
|
"peerDependenciesMeta": {
|
|
87
87
|
"@nativescript/core": {
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@gjsify/app-settings": "
|
|
96
|
-
"@gjsify/blueprint": "
|
|
97
|
-
"@gjsify/cli": "
|
|
98
|
-
"@gjsify/unit": "
|
|
99
|
-
"@gjsify/vite-plugin-blueprint": "
|
|
95
|
+
"@gjsify/app-settings": "0.64.2-next.252",
|
|
96
|
+
"@gjsify/blueprint": "0.64.2-next.252",
|
|
97
|
+
"@gjsify/cli": "0.64.2-next.252",
|
|
98
|
+
"@gjsify/unit": "0.64.2-next.252",
|
|
99
|
+
"@gjsify/vite-plugin-blueprint": "0.64.2-next.252",
|
|
100
100
|
"@types/node": "^25.9.2",
|
|
101
101
|
"typescript": "^6.0.3"
|
|
102
102
|
},
|
|
@@ -125,5 +125,6 @@
|
|
|
125
125
|
"bugs": {
|
|
126
126
|
"url": "https://github.com/gjsify/gjsify/issues"
|
|
127
127
|
},
|
|
128
|
-
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/nativescript-bridge/adwaita#readme"
|
|
128
|
+
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/nativescript-bridge/adwaita#readme",
|
|
129
|
+
"gitHead": "3853c65f772d30460e3894ff08a6079a70d7b206"
|
|
129
130
|
}
|